[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Aliasing a NIC



> it on a Debian woody box running a 2.4.10 kernel.  I need to know what files
> to edit and what the format of the configuration.

I run potato and 2.4.x kernels.
You don't need anything special in the kernel anymore, just CONFIG_INET.
Have a look at linux-source/Documentation/networking/alias.txt.
Then, put something like the following in /etc/network/interfaces:

iface lo inet loopback

iface eth0 inet static
   address X.Y.Z.W0
   netmask 255.255.255.0
   network X.Y.Z.0
   broadcast X.Y.Z.255
   gateway X.Y.Z.1

iface eth0:0 inet static
   address X.Y.Z.W1
   netmask 255.255.255.0
   network X.Y.Z.0
   broadcast X.Y.Z.255
   up route add -host X.Y.Z.W1 dev eth0:0

-Igor Mozetic



Reply to: