2016년 10월 26일 수요일

ifconfig shows wrong MAC for ib0


Infiniband hardware address can be incorrect! Please read BUGS section in ifconfig(8).
infiniband A0:00:03:00:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00  txqueuelen 1024  (InfiniBand)

# man ifconfig
BUGS
       Ifconfig  uses  the  ioctl  access method to get the full address information, which limits hardware addresses to 8 bytes.  Because Infiniband hardware address has 20
       bytes, only the first 8 bytes are displayed correctly.  Please use ip link command from iproute2 package to display link layer  informations  including  the  hardware address


, Infiniband hardware address 20 bytes ifconfig 명령으로 표기할 수 없습니다. ifconfig 명령어가 아닌 iproute 패키지의 ip 명령어를 사용하거나 패치를 하면 된다.

※ 1Gb Ethernet의 Mac address는 6Bytes로 구성되어 있음
※ Infiniband는 20Bytes로 구성되어 있는데 8Bytes 이하 00으로 표시 됨!!

ex) ifconfig ib1
A0:00:03:00:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00

ex) ip a show ib1
a0:00:03:00:fe:80:00:00:00:00:00:00:00:02:c9:03:00:a2:fb:32

댓글 없음:

댓글 쓰기