Temat: Przejście na DSA
Witam,
po zakupie nowego routera, mam problem z poprawną konfiguracją VLAN w DSA.
W starej konfiguracji mój plik networks wyglądał tak:
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 'fdc4:1700:3fef::/48'
config interface 'lan'
option type 'bridge'
option igmp_snooping '1'
option ifname 'eth0.1'
option force_link '1'
option proto 'static'
option ipaddr '10.0.0.1'
option netmask '255.255.255.0'
option ip6assign '60'
option mtu '1492'
config interface 'wan'
option proto 'pppoe'
option ifname 'eth0.35'
option ipv6 'auto'
option username 'xxxxxxxx'
option password 'xxxxxxx'
option mtu '1508'
config interface 'ONT'
option ifname 'eth0.3'
option proto 'static'
option ipaddr '192.168.4.253'
option netmask '255.255.255.0'
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 '5 4 3 2 0t'
config switch_vlan
option device 'switch0'
option vlan '2'
option vid '35'
option ports '1t 0t'
config switch_vlan
option device 'switch0'
option vlan '3'
option vid '3'
option ports '1 0t'Jak widać mam utworzony interfejs ONT w celu kontroli sygnału optycznego odbieranego przez ONT huawei hg8010h.
I teraz pytanie, jak to zapisać w konfiguracji z DSA?
Tak?
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '10.0.0.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option device 'wan.35'
option proto 'pppoe'
option username 'cxxxxx
option password 'xxxxxx'
option mtu '1508'
config interface 'ONT'
option device 'wan'
option proto 'static'
option ipaddr '192.168.4.253'
option netmask '255.255.255.0'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'
config device
option type '8021q'
option ifname 'wan'
option vid '35'
option name 'wan.35'Pozdrawiam