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

Christian Dresel fff at chrisi01.de
Mo Dez 9 15:35:12 CET 2019


hi

ich kanns leider aus Mangel an Geräten nicht testen, da es davor aber
sowieso kaputt war, kann es hier nur besser sein und ansich sieht es
plausibel aus.

Reviewed-by: Christian Dresel <fff at chrisi01.de>

Gruß

Christian

On 03.12.19 18:43, Fabian Bläse wrote:
> 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)
> 

-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 833 bytes
Beschreibung: OpenPGP digital signature
URL         : <https://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20191209/7fae210f/attachment.sig>


Mehr Informationen über die Mailingliste franken-dev