Skip to contentSkip to conversation

net/ncsi: BMC gets incorrect ipv6 link-local address

DISCUSSION Tao Ren 2 participants 3 messages Sep 4, 2019 – Sep 6, 2019

lore
Share & tools
lore

Tao Ren

author
#0 lore raw

Hi,

I enabled NCSI_OEM_CMD_GET_MAC on my Yamp BMC to update BMC's MAC address while bringing up eth0, but I notice BMC's ipv6-link-local address may be derived from the old MAC address, which leads to DHCP failure when DHCPv6 server assigns IP based on ipv6 link local address.

Currently I workaround the issue by restarting BMC's eth0 interface (which refreshes ipv6 link local address based on the new MAC), but I'm looking for an "official" fix. For example, shall we notify network layer when BMC MAC address is updated?

Thanks,

Tao

#1 lore raw
Quoted 3 lines · Tao Ren

I enabled NCSI_OEM_CMD_GET_MAC on my Yamp BMC to update BMC's MAC address while bringing up eth0, but I notice BMC's ipv6-link-local address may be derived from the old MAC address, which leads to DHCP failure when DHCPv6 server assigns IP based on ipv6 link local address.

Currently I workaround the issue by restarting BMC's eth0 interface (which refreshes ipv6 link local address based on the new MAC), but I'm looking for an "official" fix. For example, shall we notify network layer when BMC MAC address is updated?

Tao and I had a look through the code and couldn't find an obvious call that we should change. The NCSI layer appears to be doing the correct thing.

I think the next step is to bring this up on the netdev mailing list.

Cheers,

Joel

author
#2 lore raw
Quoted 10 lines · Joel Stanley
Quoted 3 lines · Tao Ren

I enabled NCSI_OEM_CMD_GET_MAC on my Yamp BMC to update BMC's MAC address while bringing up eth0, but I notice BMC's ipv6-link-local address may be derived from the old MAC address, which leads to DHCP failure when DHCPv6 server assigns IP based on ipv6 link local address.

Currently I workaround the issue by restarting BMC's eth0 interface (which refreshes ipv6 link local address based on the new MAC), but I'm looking for an "official" fix. For example, shall we notify network layer when BMC MAC address is updated?

Tao and I had a look through the code and couldn't find an obvious call that we should change. The NCSI layer appears to be doing the correct thing.

Quoted 5 lines

I think the next step is to bring this up on the netdev mailing list.

Cheers,

Joel

Thank you Joel. I will post the question to netdev list later.

Cheers,

Tao