This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
en:bpi-r2:network:start [2021/12/24 10:12] frank [permanent] |
en:bpi-r2:network:start [2022/06/09 16:48] (current) frank [permanent] |
||
---|---|---|---|
Line 173: | Line 173: | ||
[[: | [[: | ||
- | === second Ethernet lane (gmac) === | + | ==== second Ethernet lane (gmac) |
Needs kernel-patch for eth1 + aux interfaces (currently only in 5.15) | Needs kernel-patch for eth1 + aux interfaces (currently only in 5.15) | ||
Line 232: | Line 232: | ||
IPForward=yes | IPForward=yes | ||
+ | </ | ||
+ | === temporary way === | ||
+ | |||
+ | < | ||
+ | brdev=gmacbr | ||
+ | ip link add name $brdev type bridge | ||
+ | ip link set dev $brdev up | ||
+ | ip link set dev wan master $brdev | ||
+ | ip link set dev aux master $brdev | ||
+ | ip link set $brdev type bridge vlan_filtering 1 | ||
+ | ip a del 192.168.0.18/ | ||
+ | ip a add 192.168.0.18/ | ||
+ | ip link set eth1 up | ||
+ | bridge vlan add vid 100 dev wan pvid untagged | ||
+ | bridge vlan add vid 100 dev aux pvid untagged | ||
+ | bridge vlan del vid 1 dev aux | ||
+ | bridge vlan del vid 1 dev wan | ||
+ | ip link set aux up | ||
+ | ip link set wan up | ||
+ | </ | ||
+ | how to check | ||
+ | < | ||
+ | bridge vlan | ||
+ | ip a | ||
+ | ping 192.168.0.21 | ||
+ | ethtool -S eth1 #traffic on this gmac? | ||
+ | iperf3 -c 192.168.0.21 #throughput in one direction | ||
+ | iperf3 -c 192.168.0.21 -R #throughput in the other direction | ||
</ | </ | ||
==== temporary ==== | ==== temporary ==== |