On 1/22/19 4:00 PM, John David Anglin wrote: > On 2019-01-22 6:12 p.m., Andrew Lunn wrote: >> I just booted my espressobin with net-next. It is running Debian, and >> i have the following in /etc/network/interfaces >> >> source /etc/network/interfaces.d/* >> >> # The loopback network interface >> auto lo >> iface lo inet loopback >> >> # The primary network interface >> allow-hotplug wan >> iface wan inet dhcp >> pre-up ip link set eth0 up >> >> allow-hotplug lan0 >> iface lan0 inet static >> pre-up ip link set eth0 up >> address 10.42.42.42 >> netmask 255.255.255.0 >> >> my wan port got its IP address from DHCP. > Your configuration is different. I have the wan, lan0 and lan1 ports > configured as a bridge and they > don't get IP addresses. The only port that gets an IP is br0.
If you bridge all devices together that's expected. If you leave the network devices interfaces outside of the bridge, then they act as individual/standalone network ports, and that is where a DHCP client would be running. The point Andrew as trying to make is that if you make sure you always bring-up the DSA master network device, typically ethX first, and then the DSA network interfaces that are per-port, then you should not have any issues with link being UP/DOWN. Whether IP stack works is a different thing. -- Florian