On Monday 11 December 2006 17:34, Leandro Melo de Sales wrote:
> # ifconfig eth0:0 192.168.1.3
> SIOCSIFADDR: File exists
> SIOCSIFFLAGS: Cannot assign requested address
>
> My /etc/conf.d/net is correct:
>
> config_eth0=( "192.168.1.2 netmask 255.255.255.0"
>               "192.168.1.3 netmask 255.255.255.0"
>               "192.168.1.6 netmask 255.255.255.0"
> )
> routes_eth0=( "default gw 192.168.1.1" )
>
> When I start /etc/init.d/net.eth0 (which is a sym link to net.lo)
> everything seems to be ok, but when I type ifconfig I can see just eth0
> interface. So, I tried to execute the ifconfig command listen above but I
> got that error. What is wrong?

You executed the ifconfig command above.

# ip addr list dev eth0

ifconfig can't assign multiple addresses to one interface, but iproute2 can.

-- 
Mike Williams

-- 
gentoo-user@gentoo.org mailing list

Reply via email to