Re: 2 IP's for 1 Ethernet

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

 



ksemat@wawa.eahd.or.ug wrote:

> ifconfig eth0 inet x.x.x.x. netmask x.x.x.x up
> ifconfig eth0:0 inet y.y.y.y netmask z.z.z.z up
> 
> You should have your kernel compiled with config_ip_alias or something
> similar....
> 
> Noah.
> 

In newer kernels (>=2.2) you can also use:

ip address add x.x.x.x/nn broadcast x.x.x.z dev eth0
ip address add y.y.y.y/nn broadcast y.y.y.z dev eth0

'ip' is part of 'iproute2' package.

best regards

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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