Group: comp.os.linux.networking
From: Pascal Hambourg
Date: Thursday, March 06, 2008 5:14 AM
Subject: Re: ipv6 routing and neighbour discovery

D. Stussy a écrit :
> "Pascal Hambourg" wrote
>>
>>You mean *like* IPv4. An interface can have multiple IPv4 addresses. Do
>>not let ifconfig fool you.
>>
>>$ ip addr show dev eth0
>>2: eth0: mtu 1500 qdisc pfifo_fast qlen 1000
>> link/ether 00:e0:29:04:b6:61 brd ff:ff:ff:ff:ff:ff
>> inet 192.168.0.1/24 brd 192.168.0.255 scope global eth0
>> inet 192.168.100.1/24 brd 192.168.0.255 scope global eth0:0
>> inet6 2001:7a8:6d23:1::1/64 scope global
>> inet6 2002:d529:ad23:1::1/64 scope global
>> inet6 fe80::2e0:29ff:fe04:b661/64 scope link
>
> That doesn't work on my system. To assign a second IPv4, I have to use
> "eth0:1", "eth0:2", etc., i.e. a virtual extension interface.

What exactly doen't work ? What tools, what commands did you try ?
These work for me :

ip addr add

/ broadcast dev

or

ifconfig add
netmask broadcast

I repeat : do not let ifconfig fool you. It is an obsolete tool for
address configuration which is broken in several ways ; use the more
modern and versatile "ip" tool from the iproute package instead.
"eth0:0" and the like are not interfaces, even virtual, but merely
labels attached to IPv4 addresses. You can see those labels at the end
of the "inet" lines in the output of "ip addr show".

Safety Articles | Usenet Groups | Usenet News | Bluegrass