Title: RE: [plug] seconadary IP

You actually call this IP aliasing. Before you can add another layer 3 address, you have to recompile your kernel so that it will support IP aliasing. Assuming that you have already compiled your kernel, and that it has been booted already, you can try this;

ifconfig eth0:1 10.0.0.1 netmask 255.0.0.0 broadcast 10.255.255.255 up
ifconfig eth0:2 11.0.0.1 netmask 255.0.0.0 broadcast 10.255.255.255 up
ifconfig eth0:3 12.0.0.1 netmask 255.0.0.0 broadcast 10.255.255.255 up
ifconfig eth0:4 13.0.0.1 netmask 255.0.0.0 broadcast 10.255.255.255 up

With kernel 2.1.x, ip aliasing works fine with ipfwadm.
But with kernel, 2.2.x, ipchains behaves differently with ip aliasing, so beware.

you can shut off aliased ip by issuing the ff:
ifconfig eth0:1 down
ifconfig eth0:2 down
ifconfig eth0:3 down
ifconfig eth0:4 down

I guess, you know where to place so that everytime it starts, it will be activated.

Meron din akong nakita sa linuxconf para sa ip aliasing, but I have never used linuxconf, kapain mo na lang.

onie

Reply via email to