Temat: DSA VLANy orange

Witam config działa ale nie wiem dlaczego

opierając się na przykładzie ze strony eko.one.pl option ifname powinno być wan jednak jeżeli tak ustawię to nie nawiązuje połączenia z siecią, jeżeli zmienię wan na eth0 to wszystko działa

czy tak ma być czy to jest błąd, zastanawiam się czy zamiast option ifname nie powinno być option device

router to L-50 najnowsze wydanie z Luci  z eko.one.pl

to jest przykładowa konfiguracja z eko

 config interface 'wan'
        option proto 'dhcp'
        option device 'wan.35'

    config device
        option type '8021q'
        option ifname 'wan'
        option vid '35'
        option name 'wan.35'

to jest fragment mojego konfigu jaki teraz mam ustawiony i on działa

config device
        option name 'wan'
        option mtu '1508'

config device
    option name 'wan.35'    
    option type '8021q'
  #option ifname 'wan'
    option ifname 'eth0'
    option vid '35'
    option mtu '1508'



config interface 'wan'
    option device 'wan.35'
    option proto 'pppoe'
    option username 'xxxxxxxx@neostrada.pl'
    option password 'xxxxxxxx'
    option ipv6 '0'
    option mtu '1500'
    option peerdns '0'
    option pppd_options 'noipv6'
        list dns '1.1.1.1'
        list dns '1.0.0.1'

poniżej pełny config sekcji network


config interface 'loopback'
    option device 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'

config globals 'globals'
    option ula_prefix 'fd0f:8f82:f772::/48'
    option packet_steering '1'

config device
    option name 'br-lan'
    option type 'bridge'
    list ports 'lan1'
    list ports 'lan2'
    list ports 'lan3'
    list ports 'lan4'
    list ports 'lan5'
    list ports 'lan6'
    list ports 'lan7'
    list ports 'lan8'
    list ports 'dmz'

config device
        option name 'wan'
        option mtu '1508'

config device
    option name 'wan.35'    
    option type '8021q'
   #option ifname 'wan'
    option ifname 'eth0'
    option vid '35'
    option mtu '1508'

config interface 'lan'
    option device 'br-lan'
    option proto 'static'
    option ipaddr '192.168.5.1'
    option netmask '255.255.255.0'
    option ip6assign '60'

config interface 'wan'
    option device 'wan.35'
    option proto 'pppoe'
    option username 'xxxxxxxx@neostrada.pl'
    option password 'xxxxxxxx'
    option ipv6 '0'
    option mtu '1500'
    option peerdns '0'
    option pppd_options 'noipv6'
        list dns '1.1.1.1'
        list dns '1.0.0.1'

config interface 'wan6'
        option device 'wan.35'
        option proto 'pppoe'
        option username 'xxxxxxxx@neostrada.pl/ipv6'
        option password 'xxxxxxxx'
        option ipv6 '1'
        option mtu '1500'
        option pppd_options 'noip'
        option peerdns '0'

config interface 'wan6_6'
        option proto 'dhcpv6'
        option device '@wan6'
        option reqaddress 'try'
        option reqprefix 'auto'
        option norelease '1'
        option peerdns '0'
        list dns '2606:4700:4700::1111'
        list dns '2606:4700:4700::1001'

config interface 'tethering'
    option proto 'dhcp'
    option device 'usb0'

config interface 'HiLink'
    option proto 'dhcp'
    option device 'eth2'

2

Odp: DSA VLANy orange

L-50 ma interfejs wan jako "eth0" a nie "wan'. To normalnie że masz sobie konfigurację dostosować i normalnie jest to że w każdym routerze interfejsy mogą się inaczej nazywać. Więc dobrze zrobiłeś.

W dużej sporej większość dla routerów z DSA wan faktycznie nazywa się "wan". A akurat w modelu którym używasz wanem jest eth0.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.