ich versuche, mit systemd-networkd die mac-adresse zu ändern.
Grundconfig ist ein ethernet-link (eth0) mit DSA-Port (wan)
per default scheint der dsa-port schon eine andere mac als der ethernet-link zu bekommen
Code: Alles auswählen
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc pfifo_fast state UP group default qlen 1000
link/ether 3a:69:cb:48:04:40 brd ff:ff:ff:ff:ff:ff
4: wan@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 26:6e:71:d4:c2:71 brd ff:ff:ff:ff:ff:ff
den aufwand muss ich treiben, da (nun beide Schnittstellen) wan/eth0 keine feste mac-adresse haben, somit kann ich auch nicht auf MACAddress matchen.
in der syslog sehe ich bei wan keine Fehler:
Code: Alles auswählen
Sep 13 07:42:15 bpi-r2 systemd-networkd[214]: wan: Link UP
Sep 13 07:42:15 bpi-r2 systemd-networkd[214]: wan.110: netdev ready
Sep 13 07:42:15 bpi-r2 systemd-networkd[214]: wan.140: netdev ready
Sep 13 07:42:15 bpi-r2 kernel: [ 7.335633] mt7530 mdio-bus:00 wan (uninitiali
zed): PHY [dsa-0.0:00] driver [Generic PHY] (irq=POLL)
Sep 13 07:42:15 bpi-r2 kernel: [ 12.290420] mt7530 mdio-bus:00 wan: configurin
g for phy/gmii link mode
Sep 13 07:42:15 bpi-r2 kernel: [ 12.297678] 8021q: adding VLAN 0 to HW filter
on device wan
Sep 13 07:42:16 bpi-r2 kernel: [ 16.500754] mt7530 mdio-bus:00 wan: Link is Up
- 1Gbps/Full - flow control rx/tx
Sep 13 07:42:16 bpi-r2 kernel: [ 16.508203] IPv6: ADDRCONF(NETDEV_CHANGE): wan
: link becomes ready
Sep 13 07:42:16 bpi-r2 systemd-networkd[214]: wan: Gained carrier
Sep 13 07:42:17 bpi-r2 systemd-networkd[214]: wan: Gained IPv6LL
Sep 13 07:42:20 bpi-r2 systemd-networkd[214]: wan: DHCPv4 address 192.168.0.143/
24 via 192.168.0.10
Code: Alles auswählen
Sep 13 07:34:53 bpi-r2 systemd-networkd[216]: eth0: Could not set MAC address, i
gnoring: Cannot assign requested address
Sep 13 07:34:53 bpi-r2 systemd-networkd[216]: eth0: Link UP
Sep 13 07:34:53 bpi-r2 systemd-networkd[216]: eth0: Gained carrier