i tried to set mac-adress to the ethx, but it seems that this mac is not used for lanx/wan
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP gr
oup default qlen 1000
link/ether 02:01:02:03:04:00 brd ff:ff:ff:ff:ff:ff
inet6 fe80::1:2ff:fe03:400/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP gr
oup default qlen 1000
link/ether 02:01:02:03:04:03 brd ff:ff:ff:ff:ff:ff
inet6 fe80::1:2ff:fe03:403/64 scope link
valid_lft forever preferred_lft forever
4: wan@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP g
roup default qlen 1000
link/ether 86:58:49:d5:96:50 brd ff:ff:ff:ff:ff:ff
inet 192.168.50.1/24 brd 192.168.50.255 scope global wan
valid_lft forever preferred_lft forever
inet6 fe80::8458:49ff:fed5:9650/64 scope link
valid_lft forever preferred_lft forever
5: lan0@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
group default qlen 1000
link/ether 3a:93:89:61:25:cc brd ff:ff:ff:ff:ff:ff
inet 192.168.0.10/24 brd 192.168.0.255 scope global lan0
valid_lft forever preferred_lft forever
inet6 fe80::3893:89ff:fe61:25cc/64 scope link
valid_lft forever preferred_lft forever
6: lan1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master
br0 state LOWERLAYERDOWN group default qlen 1000
link/ether 3a:93:89:61:25:cc brd ff:ff:ff:ff:ff:ff
7: lan2@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master
br0 state LOWERLAYERDOWN group default qlen 1000
link/ether 3a:93:89:61:25:cc brd ff:ff:ff:ff:ff:ff
8: lan3@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
qlen 1000
link/ether 3a:93:89:61:25:cc brd ff:ff:ff:ff:ff:ff
11: br0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN g
roup default qlen 1000
link/ether 3a:93:89:61:25:cc brd ff:ff:ff:ff:ff:ff
inet 192.168.40.1/24 brd 192.168.40.255 scope global br0
valid_lft forever preferred_lft forever
lanx and wan getting own random macs…traffic itself works on wan…
if i set the mac on lan0 and wan it will be used, but only for these ports:
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP gr
oup default qlen 1000
link/ether aa:cf:60:36:70:5e brd ff:ff:ff:ff:ff:ff
inet6 fe80::a8cf:60ff:fe36:705e/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP gr
oup default qlen 1000
link/ether ba:1e:01:5a:05:0f brd ff:ff:ff:ff:ff:ff
inet6 fe80::b81e:1ff:fe5a:50f/64 scope link
valid_lft forever preferred_lft forever
4: wan@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP g
roup default qlen 1000
link/ether 02:01:02:03:04:03 brd ff:ff:ff:ff:ff:ff
inet 192.168.50.1/24 brd 192.168.50.255 scope global wan
valid_lft forever preferred_lft forever
inet6 fe80::1:2ff:fe03:403/64 scope link
valid_lft forever preferred_lft forever
5: lan0@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
group default qlen 1000
link/ether 02:01:02:03:04:00 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.10/24 brd 192.168.0.255 scope global lan0
valid_lft forever preferred_lft forever
inet6 fe80::1:2ff:fe03:400/64 scope link
valid_lft forever preferred_lft forever
6: lan1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master
br0 state LOWERLAYERDOWN group default qlen 1000
link/ether aa:cf:60:36:70:5e brd ff:ff:ff:ff:ff:ff
7: lan2@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master
br0 state LOWERLAYERDOWN group default qlen 1000
link/ether aa:cf:60:36:70:5e brd ff:ff:ff:ff:ff:ff
8: lan3@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
qlen 1000
link/ether aa:cf:60:36:70:5e brd ff:ff:ff:ff:ff:ff
do i need to set mac for each port separately?
i have the ability to set it for each port:
root@bpi-r2:~# ifconfig lan0
5: lan0@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
group default qlen 1000
link/ether 02:01:02:03:04:10 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.10/24 brd 192.168.0.255 scope global lan0
valid_lft forever preferred_lft forever
inet6 fe80::1:2ff:fe03:410/64 scope link
valid_lft forever preferred_lft forever
root@bpi-r2:~# ifconfig lan3
8: lan3@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
qlen 1000
link/ether 02:01:02:03:04:13 brd ff:ff:ff:ff:ff:ff