RE:

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

 



First, compile the kernel with IP aliasing if req'd.  Kernel 2.4.x doesn't
seem to have that as a separate option - it "just works" now, but 2.2.x did
require that option compiled in.  Once running with your shiny new kernel,
activate aliases for your interface as follows:

ifconfig eth0 192.168.1.1
ifconfig eth0:0 192.168.1.2
ifconfig eth0:1 192.168.1.3
...

So eth0 is the interface, :0 and :1 are aliases on it.

Make ifcfg-eth0, ifcfg-eth0:0, ifcfg-eth0:1, etc files in
/etc/sysconfig/network-scripts to start the aliasing each boot.

Jon

> -----Original Message-----
> From: Dhananjay Kelkar [mailto:dmk@pspl.co.in]
> 
> Could you please tell me the procedure of settting up 2 IP addresses 
> for one physical host (one ethernet card) ? Is such a thing possible?
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux