Modify

Opened 2 years ago

Last modified 2 years ago

#20919 new defect

Mac address should not change during boot on bridge interfaces.

Reported by: hanipouspilot@… Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: netifd macaddr bridge Cc:

Description

I have a DIR825b1. It has two interfaces eth1 (wan) and eth0 connected to switch. Eth1 and eth0 have different mac addresses.

I bridged eth1 with a switch port (eth0.2).

The problem is that during boot process eth1 goes up and starts sending dhcp requests with eth1 mac address, after that the bridge goes up and another mac address is set for 'br-wan' interface.

That confuses the ISP dhcp server.

A workaround is to set wan interface (bridge) to noauto and do ifup wan in /etc/rc.local. In this case dhcp requests are sent after the bridge is already up.

Another workaround is to manually setup mac address in /etc/config/network for the bridge interface that matches the eth1 original mac. In this case it does not change.

There is no such problem in old AA Openwrt without netifd.

Attachments (0)

Change History (1)

comment:1 Changed 2 years ago by Pilot6

I looked into netifd code and saw how the primary port is assigned.
It is really hard to make a good rule for it.

But what is obvious that udhcpc should not be started too early, before the bridge is fully set up. It does not matter which macaddr to use for the bridge, but it should not DHCPREQUEST before the address is assigned.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.