[PATCH v2 1/2] fff-network: Only use one Switch Port on Archer C7v2

Fabian Bläse fabian at blaese.de
Di Dez 3 18:43:33 CET 2019


Previously the TP-Link Archer C7v2 was configured to use
two Switch CPU Interfaces. One for Trunk (Client + Batman), one
for WAN.

As this setup is very uncommon in our firmware at the moment and does interfere
with the automatic CPU Port setup in layer3 variant, it is converted to a single
trunk port setup just like all of the other routers with integrated managed switches.

As eth0 is now used as the switchport, this change would require to setup
a different ETHMESHMAC if mac addresses would be shared between interfaces.

The device does seems to have 4 discrete mac addresses however, so the
explicit ETHMESHMAC setting is completely removed instead.

Signed-off-by: Fabian Bläse <fabian at blaese.de>
---
Changes in v2:
- Use correct SWITCHDEV (eth1) for CPU-Port (0t)
---
 src/packages/fff/fff-network/ar71xx/network.archer-c7-v2 | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/packages/fff/fff-network/ar71xx/network.archer-c7-v2 b/src/packages/fff/fff-network/ar71xx/network.archer-c7-v2
index 593bc2a..2328c3a 100644
--- a/src/packages/fff/fff-network/ar71xx/network.archer-c7-v2
+++ b/src/packages/fff/fff-network/ar71xx/network.archer-c7-v2
@@ -1,8 +1,7 @@
-WANDEV=eth0
+WANDEV=eth1
 SWITCHDEV=eth1
 CLIENT_PORTS="4 5 0t"
-WAN_PORTS="1 6"
+WAN_PORTS="1 0t"
 BATMAN_PORTS="2 3 0t"
 
-ETHMESHMAC=$(cat /sys/class/net/eth0/address)
 ROUTERMAC=$(cat /sys/class/net/eth1/address)
-- 
2.24.0



Mehr Informationen über die Mailingliste franken-dev