Buonasera a tutti, stavo provando ad installare Openwrt su un Fritzbox 4040, l'installazione è riuscita ma se provo a configurare l'interfaccia wan con vlan 835 e pppoe con il mio numero come username e "timadsl" come password non riesce a negoziare.
Dal log questi sono gli errori:
Tue Aug 31 22:56:36 2021 daemon.warn pppd[1750]: Timeout waiting for PADO packets
Tue Aug 31 22:56:36 2021 daemon.err pppd[1750]: Unable to complete PPPoE Discovery
Tue Aug 31 22:56:36 2021 daemon.info pppd[1750]: Exit.
Tue Aug 31 22:56:36 2021 daemon.notice netifd: Interface 'wan' is now down
Tue Aug 31 22:56:37 2021 kern.info kernel: [ 42.181595] ess_edma c080000.edma eth1: Link is Down
Tue Aug 31 22:56:37 2021 daemon.notice netifd: Interface 'wan' is disabled
Tue Aug 31 22:56:37 2021 daemon.notice netifd: Interface 'wan' is enabled
Tue Aug 31 22:56:37 2021 daemon.notice netifd: Interface 'wan' is setting up now
Tue Aug 31 22:56:37 2021 daemon.notice netifd: VLAN 'eth1.835' link is down
Tue Aug 31 22:56:37 2021 daemon.notice netifd: Interface 'wan' has link connectivity loss
Tue Aug 31 22:56:37 2021 daemon.notice netifd: Network device 'eth1' link is down
Tue Aug 31 22:56:37 2021 daemon.notice netifd: Interface 'wan' is now down
Tue Aug 31 22:56:37 2021 daemon.notice netifd: Interface 'wan' is disabled
Tue Aug 31 22:56:37 2021 daemon.notice netifd: Interface 'wan' is enabled
Tue Aug 31 22:56:40 2021 kern.info kernel: [ 45.771970] ess_edma c080000.edma eth1: Link is Up - 1Gbps/Full - flow control off
Tue Aug 31 22:56:40 2021 kern.info kernel: [ 45.772701] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Tue Aug 31 22:56:40 2021 daemon.notice netifd: Network device 'eth1' link is up
Tue Aug 31 22:56:40 2021 kern.info kernel: [ 45.786906] IPv6: ADDRCONF(NETDEV_CHANGE): eth1.835: link becomes ready
Tue Aug 31 22:56:40 2021 daemon.notice netifd: VLAN 'eth1.835' link is up
Tue Aug 31 22:56:40 2021 daemon.notice netifd: Interface 'wan' has link connectivity
Tue Aug 31 22:56:40 2021 daemon.notice netifd: Interface 'wan' is setting up now
Tue Aug 31 22:56:40 2021 daemon.err insmod: module is already loaded - slhc
Tue Aug 31 22:56:40 2021 daemon.err insmod: module is already loaded - ppp_generic
Tue Aug 31 22:56:40 2021 daemon.err insmod: module is already loaded - pppox
Tue Aug 31 22:56:40 2021 daemon.err insmod: module is already loaded - pppoe
Tue Aug 31 22:56:40 2021 daemon.info pppd[1978]: Plugin rp-pppoe.so loaded.
Tue Aug 31 22:56:40 2021 daemon.info pppd[1978]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.8
Tue Aug 31 22:56:40 2021 daemon.notice pppd[1978]: pppd 2.4.8 started by root, uid 0
Tue Aug 31 22:56:40 2021 daemon.err pppd[1978]: Interface eth1.835 has MTU of 1400 -- should be at least 1500.
Tue Aug 31 22:56:40 2021 daemon.err pppd[1978]: This may cause serious connection problems.
Tue Aug 31 22:56:42 2021 daemon.warn dnsmasq[1783]: failed to create listening socket for fe80::2e3a:fdff:fe25:db71%eth1: Address in use
Tue Aug 31 22:56:47 2021 daemon.err uhttpd[1129]: luci: accepted login on / for root from 192.168.1.217
Tue Aug 31 22:56:55 2021 daemon.warn pppd[1978]: Timeout waiting for PADO packets
Tue Aug 31 22:56:55 2021 daemon.err pppd[1978]: Unable to complete PPPoE Discovery
Tue Aug 31 22:56:55 2021 daemon.info pppd[1978]: Exit.

Sembrerebbe un timeout del PPPoE, giusto? Qualcuno ha già configurato tim sulla Openwrt e sa come risolvere?

edofullo ha aggiunto il tag TIM .

Come hai impostato la VLAN?
Va impostata così (il file è /etc/config/network)

config device 'waneth4'                                                        
        option type '8021q'                                                
        option name 'waneth4'                                                  
        option macaddr '[redacted]'                      
        option ifname 'eth4'       # questa è la porta fisica                                            
        option vid '835'                                                   
        option ipv6 '0'                                                        
                                                                           
config interface 'wan'                                                     
        option auto '1'                                                    
        option proto 'pppoe'                                               
        option demand '0'                                                  
        option username '[redacted]@00000.agcombo.unica'
        option password 'alicenewag'                                       
        option macaddr [redacted]'                                 
        option ipv6 '0'                                                    
        option peerdns '1'                                      
        option reqopts '1 3 6 15 26 33 42 51 121 249'                      
        option keepalive_adaptive '0'                           
        option dns_metric '0'                                              
        option ifname 'waneth4'   
```  

    Allora in precedenza avevo configurato la vlan come descritto sulla wiki di openwrt per il fritzbox 4040 e tutti i router che si basavano su questo SoC e appunto dà timeout sulla PPPoE

    config interface 'wan'
    	option ifname 'eth1.835'
    	option proto 'pppoe'
    	# impostazioni per TIM
    
    config switch
    	option name 'switch0'
    	option reset '1'
    	option enable_vlan '1'
    
    config switch_vlan
    	option device 'switch0'
    	option vlan '1'
    	option vid '1'
    	option ports '0 1 2 3 4'
    
    config switch_vlan
    	option device 'switch0'
    	option vlan '835'
    	option vid '835'
    	option ports '0t 5t'

    Ora ho impostato la vlan con il metodo 'classico' ma niente da fare, va sempre in timeout

      edofullo Ma sei sicuro che non sia la config per homeware?

      Andre_ock
      Io ho questa:

      
      config switch
              option name 'switch0'
              option reset '1'
              option enable_vlan '1'
      
      config switch_vlan
              option device 'switch0'
              option vlan '1'
              option vid '1'
              option ports '1 2 3t 6t'
      
      config switch_vlan
              option device 'switch0'
              option vlan '835'
              option vid '835'
              option ports '0t 4t 6t'
      
      config interface 'wan'
              option ifname 'eth0.835'
              option proto 'pppoe'
              option ipv6 'auto'
              option username 'adsl@alice6.it'
              option password 'adsl@alice6.it'
              option pppd_options 'noip'
      
      config interface 'wan4'
              option ifname 'eth0.835'
              option proto 'pppoe'
              option username 'timadsl'
              option ipv6 'auto'
              option password 'timadsl'

      Edit: MT7621

        Andre_ock

        Che versione di OpenWrt? DSA o Swconfig?

        Puoi postare il risultato del comando ifconfig?

        eutampieri

        19.07, se aggiornerai a 21.02 attento: dovrai riconfigurare da 0 perché il driver switch è cambiato in DSA...

          stemax97 eh già, avevo letto! Ma scusa, la LAN continuerebbe a funzionare? Eventualmente si potrebbe sistemare in failsafe mode?

            eutampieri

            No, perché cambia tutto.
            Ogni singola porta diventa interfaccia (lan1, lan2, lan3, lan4). Quindi il bridge si fa sulle quattro porte.
            Swconfig scompare proprio, come la sezione switch di Luci.
            C'è una mini guida carina sul forum di OpenWrt: https://forum.openwrt.org/t/mini-tutorial-for-dsa-network-config/96998

            Devi proprio installare senza tenere la configurazione e rifarla.

              Andre_ock Allora in precedenza avevo configurato la vlan come descritto sulla wiki di openwrt per il fritzbox 4040 e tutti i router che si basavano su questo SoC e appunto dà timeout sulla PPPoE

              A pardon, se l'hai visto sulla wiki quello è il metodo.

              Questo però tagga sullo switch interno, non sulla CPU e dipende dal supporto dello switch.

              Quella che ho scritto io invece tagga sulla CPU, dovrebbe essere un po' più compatibile, ma in realtà non è detto.

              https://openwrt.org/docs/guide-user/network/vlan/switch_configuration

              Prova a fare un tcpdump sull'interfaccia, vediamo cosa esce.

                edofullo Il metodo è riportato qui: OpenWRT wiki.
                Ho fatto il tcpdump sulla eth1:

                root@OpenWrt:~# killall tcpdump; tcpdump -n -i eth1
                killall: tcpdump: no process killed
                tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
                listening on eth1, link-type EN10MB (Ethernet), capture size 262144 bytes
                08:08:49.471345 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 4 group record(s), length 88
                08:08:49.481317 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48
                08:08:49.561377 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 4 group record(s), length 88
                08:08:49.732215 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48
                08:08:49.772141 IP6 :: > ff02::1:ff25:db71: ICMP6, neighbor solicitation, who has fe80::2e3a:fdff:fe25:db71, length 32
                08:08:49.782462 PPPoE PADI [Service-Name] [Host-Uniq 0x08130000]
                08:08:50.462383 IP6 :: > ff02::1:ff25:db71: ICMP6, neighbor solicitation, who has fe80::2e3a:fdff:fe25:db71, length 32
                08:08:50.781575 IP6 fe80::2e3a:fdff:fe25:db71 > ff02::16: HBH ICMP6, multicast listener report v2, 3 group record(s), length 68
                08:08:50.811483 IP6 fe80::2e3a:fdff:fe25:db71 > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
                08:08:51.031375 IP6 fe80::2e3a:fdff:fe25:db71 > ff02::16: HBH ICMP6, multicast listener report v2, 3 group record(s), length 68
                08:08:51.501807 IP6 fe80::2e3a:fdff:fe25:db71 > ff02::16: HBH ICMP6, multicast listener report v2, 4 group record(s), length 88
                08:08:51.541350 IP6 fe80::2e3a:fdff:fe25:db71 > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
                08:08:51.662078 IP6 fe80::2e3a:fdff:fe25:db71 > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
                08:08:52.381977 IP6 fe80::2e3a:fdff:fe25:db71 > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
                08:08:52.461385 IP6 fe80::2e3a:fdff:fe25:db71 > ff02::16: HBH ICMP6, multicast listener report v2, 4 group record(s), length 88
                08:08:54.788683 PPPoE PADI [Service-Name] [Host-Uniq 0x08130000]
                08:08:59.792229 PPPoE PADI [Service-Name] [Host-Uniq 0x08130000]
                tcpdump: pcap_loop: The interface went down
                17 packets captured
                17 packets received by filter
                0 packets dropped by kernel

                  Andre_ock

                  Prova con il flag -e che serve per vedere anche le info a layer2

                    stemax97
                    Sembra che la VLAN sia impostata a 835 correttamente, giusto?

                    root@OpenWrt:~# killall tcpdump; tcpdump -n -i eth1 -e
                    killall: tcpdump: no process killed
                    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
                    listening on eth1, link-type EN10MB (Ethernet), capture size 262144 bytes
                    09:22:29.828796 2c:3a:fd:25:db:71 > 33:33:00:00:00:16, ethertype 802.1Q (0x8100), length 114: vlan 835, p 0, ethertype IPv6, :: > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48
                    09:22:29.828927 2c:3a:fd:25:db:71 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 190: :: > ff02::16: HBH ICMP6, multicast listener report v2, 6 group record(s), length 128
                    09:22:29.949400 2c:3a:fd:25:db:71 > 33:33:ff:25:db:71, ethertype 802.1Q (0x8100), length 90: vlan 835, p 0, ethertype IPv6, :: > ff02::1:ff25:db71: ICMP6, neighbor solicitation, who has fe80::2e3a:fdff:fe25:db71, length 32
                    09:22:30.059775 2c:3a:fd:25:db:71 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 36: vlan 835, p 0, ethertype PPPoE D, PPPoE PADI [Service-Name] [Host-Uniq 0xB5260000]
                    09:22:30.189841 2c:3a:fd:25:db:71 > 33:33:ff:25:db:71, ethertype IPv6 (0x86dd), length 86: :: > ff02::1:ff25:db71: ICMP6, neighbor solicitation, who has fe80::2e3a:fdff:fe25:db71, length 32
                    09:22:30.289415 2c:3a:fd:25:db:71 > 33:33:00:00:00:16, ethertype 802.1Q (0x8100), length 114: vlan 835, p 0, ethertype IPv6, :: > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48
                    09:22:30.739428 2c:3a:fd:25:db:71 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 190: :: > ff02::16: HBH ICMP6, multicast listener report v2, 6 group record(s), length 128
                    09:22:30.980961 2c:3a:fd:25:db:71 > 33:33:00:00:00:16, ethertype 802.1Q (0x8100), length 134: vlan 835, p 0, ethertype IPv6, fe80::2e3a:fdff:fe25:db71 > ff02::16: HBH ICMP6, multicast listener report v2, 3 group record(s), length 68
                    09:22:31.008753 2c:3a:fd:25:db:71 > 33:33:00:00:00:16, ethertype 802.1Q (0x8100), length 94: vlan 835, p 0, ethertype IPv6, fe80::2e3a:fdff:fe25:db71 > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
                    09:22:31.179674 2c:3a:fd:25:db:71 > 33:33:00:00:00:16, ethertype 802.1Q (0x8100), length 94: vlan 835, p 0, ethertype IPv6, fe80::2e3a:fdff:fe25:db71 > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
                    09:22:31.219301 2c:3a:fd:25:db:71 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: fe80::2e3a:fdff:fe25:db71 > ff02::16: HBH ICMP6, multicast listener report v2, 4 group record(s), length 88
                    09:22:31.248888 2c:3a:fd:25:db:71 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: fe80::2e3a:fdff:fe25:db71 > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
                    09:22:31.258843 2c:3a:fd:25:db:71 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: fe80::2e3a:fdff:fe25:db71 > ff02::16: HBH ICMP6, multicast listener report v2, 4 group record(s), length 88
                    09:22:31.939408 2c:3a:fd:25:db:71 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: fe80::2e3a:fdff:fe25:db71 > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
                    09:22:32.019375 2c:3a:fd:25:db:71 > 33:33:00:00:00:16, ethertype 802.1Q (0x8100), length 134: vlan 835, p 0, ethertype IPv6, fe80::2e3a:fdff:fe25:db71 > ff02::16: HBH ICMP6, multicast listener report v2, 3 group record(s), length 68
                    09:22:35.069535 2c:3a:fd:25:db:71 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 36: vlan 835, p 0, ethertype PPPoE D, PPPoE PADI [Service-Name] [Host-Uniq 0xB5260000]
                    09:22:40.075696 2c:3a:fd:25:db:71 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 36: vlan 835, p 0, ethertype PPPoE D, PPPoE PADI [Service-Name] [Host-Uniq 0xB5260000]
                    tcpdump: pcap_loop: The interface went down
                    17 packets captured
                    17 packets received by filter
                    0 packets dropped by kernel

                      Andre_ock

                      Sì, sembra impostata (non sulla WAN6, ma tanto è inutile al momento).

                      Che versione di OpenWrt stai usando?

                        Andre_ock

                        Mmm, dovrebbe ancora usare swconfig secondo il forum di OpenWrt, quindi la sintassi è giusta. Ma domanda estemporanea, funzionava originalmente o tramite interfaccia ethernet del computer (dopo aver impostato la vlan)?

                          stemax97 Con Fritzos funziona tutto, la linea con uno zyxel vmg8825 sbloccato con firmware originale anche non ha problemi.

                          Ho risolto configurando la VLAN direttamente con swconfig

                          swconfig dev switch0 vlan 2 set ports '0t 5t'
                          swconfig dev switch0 vlan 2 set vid '835'
                          swconfig dev switch0 set apply 1

                          Informativa privacy - Informativa cookie - Termini e condizioni - Regolamento - Disclaimer - 🏳️‍🌈
                          P.I. IT16712091004 - info@fibraclick.it

                          ♻️ Il server di questo sito è alimentato al 100% con energia rinnovabile