MAC shown incorrectly in OFED 2.1? How to fix?

We updated from OFED 1.5.4.1 to Mellanox OFED 2.1 (everything on CentOS 6.3 64bit). The installation went smooth, but now ipconfig ib0 shows the same MAC (different from before) on all nodes:

HWaddr A0:00:01:00:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00. This leads to problems.

I don’t even know what to look for. The firmware still seems to have the correct values for the MAC:

mstflint -d 01:00.0 q

-W- Running quick query - Skipping full image integrity checks.

Image type: FS2

FW Version: 2.30.8000

Rom Info: type=PXE version=3.4.151 devid=4099 proto=VPI

Device ID: 4099

Description: Node Port1 Port2 Sys image

GUIDs: 0002c90300184420 0002c90300184421 0002c90300184422 0002c90300184423

MACs: 0002c9184420 0002c9184421

VSD:

PSID: MT_1060110018

How can we fix that?

Hi Skoerner,

ifconfig is obsolete according to Red Hat, also it shows the followng message when running it when IPoIB interfaces exists:

Ifconfig uses the ioctl access method to get the full address information, which limits hardware addresses to 8 bytes.

Because Infiniband address has 20 bytes, only the first 8 bytes are displayed correctly.

Ifconfig is obsolete! For replacement check ip.

here is an example of the “ip” command:

# ip addr show

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

inet 127.0.0.1/8 scope host lo

inet6 ::1/128 scope host

valid_lft forever preferred_lft forever

2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000

link/ether 98:4b:e1:73:a2:c8 brd ff:ff:ff:ff:ff:ff

inet 10.7.54.108/24 brd 10.7.54.255 scope global eth1

inet6 fe80::9a4b:e1ff:fe73:a2c8/64 scope link

valid_lft forever preferred_lft forever

3: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000

link/ether 98:4b:e1:73:a2:c9 brd ff:ff:ff:ff:ff:ff

4: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN qlen 1000

link/ether 00:02:c9:0b:4d:41 brd ff:ff:ff:ff:ff:ff

inet 20.20.20.8/24 brd 20.20.20.255 scope global eth0

5: ib0: <BROADCAST,MULTICAST> mtu 4092 qdisc noop state DOWN qlen 1024

link/infiniband a0:00:01:20:fe:80:00:00:00:00:00:00:00:02:c9:03:00:0b:4d:41 brd 00:ff:ff:ff:ff:12:40:1b:ff:ff:00:00:00:00:00:00:ff:ff:ff:ff

Hi Eddie,

I see. The OFED 1.5.4 somehow tweaked the order of the ADDR bytes, so the last bytes showed up first. The 2.1 stack does not do that anymore, so the MAC seem duplicate.

However: Your suggestion to use ip instead of ifconfig fixed the problem.

Thanks!

Sebastian