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

Re: virtual interfaces



On Mon, Dec 06, 2004 at 12:10:43AM -0500, Adam Aube wrote:
> > dedicated-deb-17boom:/etc/apache2# ifconfig
> > eth0      Link encap:Ethernet  HWaddr 00:01:29:94:A2:1B
> >           inet addr:'mainIP'  Bcast:'mainIPfragment'.255 
> 
> > eth0:0    Link encap:Ethernet  HWaddr 00:01:29:94:A2:1B
> >           inet addr:'anotherIP'  Bcast:'mainIPfragment'.255 
> 
> Here's the problem - eth0 and eth0:0 are identical, so you have defined the
> interface twice.

really?  I can bind eth0 and eth0:0 to different IPs on my 2.4 box no problem.

this website:

  http://pachome1.pacific.net.sg/~harish/linuxipalias.html

says that eth0:0 and eth0:1 are different from eth0:

> /sbin/ifconfig lo 127.0.0.1
> /sbin/ifconfig eth0 up
> /sbin/ifconfig eth0 172.16.3.1 
> /sbin/ifconfig eth0:0 172.16.3.10
> /sbin/ifconfig eth0:1 172.16.3.100
> 
> 172.16.3.1 is the main IP #, while .10 and .100 are the aliases. The magic is
> the eth0:x where x=0,1,2,...n for the different IP #s. The main IP # does not
> need to be aliased.

Don't tell me they changed this behaviour in 2.6 or something??


Sam



Reply to: