[LiSA-Devel] Comportament ciudat la show pentru bonding

Radu Rendec radu.rendec at ines.ro
Thu May 21 00:17:34 EEST 2009


On Wed, 2009-05-20 at 14:08 +0300, Constantin Blanariu wrote:
> Am creat o interfata bonding, bond0, separat de CLI și am făcut
> enslave la eth3 (am integrat interfata eth3 in canal).
> Daca intru în CLI și dau sh int netdev bond0 îmi spune: Command
> rejected: ioctl() failed (22 - Invalid argument)
> 
> Dupa ce dau interface netdev bond0 și apoi iarași dau show interface
> netdev bond0 imi spune:
> Command rejected: interface bond0 not in switch
> 
> De ce s-ar intampla asa ?

Probabil ca raspunsul este tot in partea de compilare / sa fii
up-to-date cu ce s-a mai intamplat in tree-ul principal. Eu nu am reusit
sa replic ce ai descris tu (desi nu sunt sigur ca am facut exact la fel
si oricum sunt pe alta masina):

[root at tiny cli]# ifconfig eth2 up
[root at tiny cli]# modprobe bonding
[root at tiny cli]# ifconfig bond0 192.168.1.1 netmask 255.255.255.0
[root at tiny cli]# ifenslave bond0 eth2
[root at tiny cli]# ./swcli 
tiny.rendec.ines.ro#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
tiny.rendec.ines.ro(config)#interface netdev bond0
WARNING: failed to enable cdp on interface bond0 : Illegal seek
tiny.rendec.ines.ro(config-if)#^Z
tiny.rendec.ines.ro#sh int netdev bond0
Interface bond0, type=1, index=5
        Link detected: yes
        Interface status: up
        Hardware address: 00:01:02:b3:65:cb
        Permanent address: 00:00:00:00:00:00
        MTU: 1500
        Driver: bonding, version: 3.5.0, fw_version: 2, bus: 
ETHTOOL_GSTRINGS failed: Operation not supported
tiny.rendec.ines.ro#

Este normal sa nu functioneze "show interface" *inainte* sa adaugi
interfata explicit in switch din cli, totusi eroarea ar trebui sa fie
alta:

tiny.rendec.ines.ro(config)#no interface netdev bond0
WARNING: failed to disable cdp on interface bond0: Illegal seek
tiny.rendec.ines.ro(config)#^Z
tiny.rendec.ines.ro#sh int netdev bond0
Command rejected: interface bond0 not in switch
tiny.rendec.ines.ro#

Totusi cred ca va functiona asemanator si la tine daca refaci testele
acum, dupa ce ai recompilat.

Radu

P.S. La multi ani! (e deja 21)




More information about the LiSA-Devel mailing list