User Tools

Site Tools



en:bpi-r2:network:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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:
 [[:linux:systemd]] [[:linux:systemd]]
  
-=== 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
 +</code>
 +=== temporary way ===
 +
 +<code>
 +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/24 dev wan #remove ip from original interface
 +ip a add 192.168.0.18/24 dev eth1
 +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
 +</code>
 +how to check
 +<code>
 +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
 </code> </code>
 ==== temporary ==== ==== temporary ====
en/bpi-r2/network/start.txt · Last modified: 2022/06/09 16:48 by frank