On Wed, Dec 16, 2009 at 09:00:52PM +0100, Papp Tamas wrote:

> > # ip addr add 192.168.1.1/24 brd 192.168.1.255 dev eth1
> > # ip addr add 192.168.2.1/24 brd 192.168.2.255 dev eth1
> > # ip addr add 192.168.3.1/24 brd 192.168.3.255 dev eth1
> > # ip addr show eth1
> > 2: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast 
> > state DOWN qlen 1000
> >     link/ether 00:de:ad:be:ef:01 brd ff:ff:ff:ff:ff:ff
> >     inet 192.168.1.1/24 brd 192.168.1.255 scope global eth1
> >     inet 192.168.2.1/24 brd 192.168.2.255 scope global eth1
> >     inet 192.168.3.1/24 brd 192.168.3.255 scope global eth1
> 
> De a gyakorlatban ezzel ugyanott vagy, nem?

# ifconfig eth1:1 192.168.4.1 netmask 255.255.255.0
# ip addr add 192.168.5.1/24 brd 192.168.5.255 label eth1:foobar dev eth1
# ip addr show eth1
2: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state 
DOWN qlen 1000
    link/ether 00:de:ad:be:ef:01 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global eth1
    inet 192.168.2.1/24 brd 192.168.2.255 scope global eth1
    inet 192.168.3.1/24 brd 192.168.3.255 scope global eth1
    inet 192.168.4.1/24 brd 192.168.4.255 scope global eth1:1
    inet 192.168.5.1/24 brd 192.168.5.255 scope global eth1:foobar

Magyarul a regi stilusu ifconfig kegyesen hazudik neked, mert a kernelen
belul nincs onallo eth1:1 ill. eth1:foobar interface; az ip pedig a
valosagot mutatja.

Gabor

-- 
     ---------------------------------------------------------
     MTA SZTAKI Computer and Automation Research Institute
                Hungarian Academy of Sciences
     ---------------------------------------------------------
_________________________________________________
linux lista      -      [email protected]
http://mlf2.linux.rulez.org/mailman/listinfo/linux

válasz