[Berlin-wireless] TP-Link CPE210 v1.0 mit Berliner Hedy 1.0.6 (port switch) - Github-Issue 292

Sven Roederer freifunk at it-solutions.geroedel.de
Do Jun 18 21:34:24 CEST 2020


DAniel,

schade, dass es so fatal nicht funktioniert hat.
Aber ich danke für den unabhängigen Test. Ein paar Kommentare gibt'S inline ...


Am 18.06.20 um 00:51 schrieb Daniel Stobbe:
> 
> Ich hab es mal mit dem Script versucht:
>  - CPE210 reseted
>  - Passwort gesetzt & wizard durchgespielt (mitmachen und internet teilen)
>  - ssh roo login und dann das:
> 
> */# cat /etc/config/network*
> 
> config interface 'loopback'
> option ifname 'lo'
> option proto 'static'
> option ipaddr '127.0.0.1'
> option netmask '255.0.0.0'
> 
> config globals 'globals'
> option ula_prefix 'fd48:8113:eebd::/48'
> 
> config interface 'lan'
> option type 'bridge'
> option ifname 'eth0.1'
> option proto 'static'
> option netmask '255.255.255.0'
> option ip6assign '60'
> option ipaddr '192.168.42.1'
> 

Hast du die Datei nach dem durchlaufen des Wizards ausgegeben oder davor?
nach dem Wizard sollte die "lan" section eigentlich nicht mehr vorhanden
sein.
Aber das nur am Rande des eigentlichen Problems.

> config interface 'wan'
> option ifname 'eth0.2'
> option proto 'dhcp'
> option peerdns '0'
> option type 'bridge'
> 
> config interface 'wan6'
> option ifname 'eth0.2'
> option proto 'dhcpv6'
> option peerdns '0'
> 
> config switch
> option name 'switch0'
> option reset '1'
> option enable_vlan '1'
> 
> config switch_vlan
> option device 'switch0'
> option vlan '1'
> option ports '5 0t'
> 
> config switch_vlan
> option device 'switch0'
> option vlan '2'
> option ports '4 0t'
> 
Die VLAN-config deckt sich jedenfalls mit dem, was ich von einem normalen
CPR210v1 erwarte.
Switch-port 4 in einem VLAN, Switch-port 5 in einem anderen VLAN.

> ...


> /tmp# ./sharenet-switch.sh
> usage ./sharenet-switch.sh -c [commit]
> share my internet - set WAN to PoE-port
> cpe210
> cpe210 - found swapping switch ports
> checking interface cfg081ec7
>  vlan "1" has ports "5 0t"
> ./sharenet-switch.sh: eval: line 1: _option_contains_: not found

In der Tat wird die Funktion "_option_contains_" nirgends definiert, was
zu einer ungeplanten Netzwerk-konfiguration führt. Da hab ich wohl was
beim kopieren vergessen.

>  -> not found
> checking interface cfg0a1ec7
>  vlan "2" has ports "4 0t"
> ./sharenet-switch.sh: eval: line 1: _option_contains_: not found
>  -> not found
> checking interface cfg081ec7
>  vlan "1" has ports "5 0t"
> ./sharenet-switch.sh: eval: line 1: _option_contains_: not found
>  -> not found
> checking interface cfg0a1ec7
>  vlan "2" has ports "4 0t"
> ./sharenet-switch.sh: eval: line 1: _option_contains_: not found
>  -> not found
> ---
> found port 4 in config-section "cfg0a1ec7 cfg081ec7 "
> found port 5 in config-section "cfg0a1ec7 cfg081ec7 "
> ---
> change section cfg0a1ec7
>  current ports: 4 0t
>   replacing 4 with 5
> change section cfg081ec7
>  current ports: 5 0t
>   replacing 4 with 5
> change section cfg0a1ec7
>  current ports: 4 0t
>   replacing 5 with
> change section cfg081ec7
>  current ports: 4 0t
>   replacing 5 with
> uci dont commit network


> packet_write_wait: Connection to 192.168.11.186 port 22: Broken pipe
> 
> [Gerät neu gestartet aber war dann nicht mehr pingbar, obwohl noch beide LAN Ports mit LAN Kabel bestückt, testweise auch mal mit entferntem 2ten Kabel - aber auch nichts]
> 

Durch die fehlende Funktion wurden scheinbar alle LAN-ports des internen
switch auf jeweils beide VLANs zugewiesen. Mag sein, dass der Switch diese
Konfiguration (verständlicherweise) abgewiesen hat und jetzt irgendwie
eingestellt ist.
Evtl. ist das Gerät noch per IPv6 erreichbar.
"ping6 -I<interface deines PCs> ff02::1" Wenn du deinen Rechner, ggf. via switch,
nur mit der CPE verbunden hast, solltest du 2 ping-replies gekommen. Die Adresse
des 2. sollte zu deiner CPe gehören und du kannst i.d.R ssh nutzen.


Gruss Sven



Mehr Informationen über die Mailingliste Berlin