I have this configuration:
ifstatus wan_6
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": true,
"uptime": 489356,
"l3_device": "pppoe-wan",
"proto": "dhcpv6",
"device": "pppoe-wan",
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
],
"ipv6-address": [
{
"address": "2a02:xxx:xxx:ffff::bc19:xxxx",
"mask": 128
}
],
"ipv6-prefix": [
{
"address": "2a02:xxx:xxxx:xxx::",
"mask": 56,
"class": "wan_6",
"assigned": {
"lan": {
"address": "2a02:xxxx:xxxx:xxxx::",
"mask": 64
},
"lan_10": {
"address": "2a02:xxxx:xxxx:xxxx::",
"mask": 64
}
}
}
],
"ipv6-prefix-assignment": [
],
"route": [
{
"target": "::",
"mask": 0,
"nexthop": "fe80::1",
"metric": 512,
"valid": 1689,
"source": "2a02:xxxx:xxxx:xxxx::/56"
},
{
"target": "::",
"mask": 0,
"nexthop": "fe80::1",
"metric": 512,
"valid": 1689,
"source": "2a02:xxxx:xxxx:xxxx::bc19:xxxx/128"
}
],
"dns-server": [
"2a02:xxxx:xxxx:3::1",
"2a02:xxxx:xxxx:8::1"
],
"dns-search": [
],
"neighbors": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
]
},
"data": {
"passthru": "001700202a022f0c8000000300000000000000012a022f0c800000080000000000000001",
"zone": "wan"
}
}
~ # cat /etc/config/network
config interface ‘loopback’
option device ‘lo’
option proto ‘static’
option ipaddr ‘127.0.0.1’
option netmask ‘255.0.0.0’
config device
option name ‘eth4’
option mtu ‘1500’
config interface ‘wan2’
option ifname ‘eth4’
option metric ‘190’
option dns_metric ‘190’
option proto ‘dhcp’
option norelease ‘1’
option peerdns ‘1’
config device
option type ‘8021q’
option ifname ‘eth2’
option vid ‘10’
option name ‘eth2.10’
option mtu ‘1500’
config device
option type ‘8021q’
option ifname ‘eth1’
option vid ‘10’
option name ‘eth1.10’
option mtu ‘1500’
config device
option type ‘8021q’
option ifname ‘eth0’
option vid ‘10’
option name ‘eth0.10’
option mtu ‘1500’
config device
option type ‘8021q’
option ifname ‘eth5’
option vid ‘10’
option name ‘eth5.10’
option mtu ‘1500’
config device
option name ‘br-lan’
option type ‘bridge’
option mtu ‘1500’
option stp ‘0’
option igmp_snooping ‘0’
option ports ‘eth2 eth1 eth0 eth5’
config interface ‘lan’
option ifname ‘br-lan’
option proto ‘static’
option ipaddr ‘192.168.1.1/24’
option ip6assign ‘64’
option multicast_querier ‘0’
option igmp_snooping ‘0’
option force_link ‘1’
option ip6hint ‘10’
config device
option name ‘br-lan_10’
option type ‘bridge’
option mtu ‘1500’
option stp ‘0’
option igmp_snooping ‘0’
option ports ‘eth2.10 eth1.10 eth0.10 eth5.10’
config interface ‘lan_10’
option ifname ‘br-lan_10’
option proto ‘static’
option ipaddr ‘192.168.10.1/24’
option ip6assign ‘64’
option multicast_querier ‘0’
option igmp_snooping ‘0’
option force_link ‘1’
option ip6hint ‘cd’
config interface ‘wan’
option proto ‘pppoe’
option device ‘eth3’
option username ‘xx’
option password ‘xx’
option peerdns ‘1’
option metric ‘200’
option dns_metric ‘200’
config interface ‘xfrm0’
option proto ‘xfrm’
option mtu ‘1380’
option ifid ‘30’
option tunlink ‘lan’
config route
option target ‘192.168.100.0/24’
option interface ‘xfrm0’
option type ‘unicast’
config interface ‘vpn0’
option ifname ‘ppp0’
option proto ‘none’
option auto ‘1’
config interface ‘vpn1’
option ifname ‘ppp1’
option proto ‘none’
option auto ‘1’
config interface ‘vpn2’
option ifname ‘ppp2’
option proto ‘none’
option auto ‘1’
config interface ‘vpn3’
option ifname ‘ppp3’
option proto ‘none’
option auto ‘1’
config interface ‘vpn4’
option ifname ‘ppp4’
option proto ‘none’
option auto ‘1’
config interface ‘vpn5’
option ifname ‘ppp5’
option proto ‘none’
option auto ‘1’
config interface ‘vpn6’
option ifname ‘ppp6’
option proto ‘none’
option auto ‘1’
config interface ‘vpn7’
option ifname ‘ppp7’
option proto ‘none’
option auto ‘1’
config interface ‘vpn8’
option ifname ‘ppp8’
option proto ‘none’
option auto ‘1’
config interface ‘vpn9’
option ifname ‘ppp9’
option proto ‘none’
option auto ‘1’
config interface ‘vpn10’
option ifname ‘ppp10’
option proto ‘none’
option auto ‘1’
config interface ‘vpn11’
option ifname ‘ppp11’
option proto ‘none’
option auto ‘1’
config interface ‘vpn12’
option ifname ‘ppp12’
option proto ‘none’
option auto ‘1’
config interface ‘vpn13’
option ifname ‘ppp13’
option proto ‘none’
option auto ‘1’
config interface ‘vpn14’
option ifname ‘ppp14’
option proto ‘none’
option auto ‘1’
config interface ‘vpn15’
option ifname ‘ppp15’
option proto ‘none’
option auto ‘1’
~ # cat /etc/config/dhcp
config dnsmasq
list domain ‘localdomain,192.168.1.1/24’
list domain ‘localdomain,192.168.10.1/24’
option domainneeded ‘1’
option boguspriv ‘1’
option filterwin2k ‘0’
option localise_queries ‘1’
option rebind_localhost ‘1’
option expandhosts ‘1’
option nonegcache ‘0’
option authoritative ‘1’
option readethers ‘1’
option resolvfile ‘/tmp/resolv.conf.d/resolv.conf.auto’
option nonwildcard ‘1’
option localservice ‘0’
option ednspacket_max ‘1232’
option rebind_protection ‘0’
option cachesize ‘10000’
option dnsforwardmax ‘1000’
option dhcpleasemax ‘10000’
option allservers ‘1’
option noresolv ‘0’
option logqueries ‘0’
option sequential_ip ‘1’
option interface ’ br-lan br-lan_10’
option leasefile ‘/cfg/dhcp.leases’
option localuse ‘1’
option rebind_domain ‘/https://manage.alta.inc/’
list server ‘127.0.0.1#5053’
list server ‘127.0.0.1#5054’
list server ‘127.0.0.1#5055’
config dhcp ‘lan’
option interface ‘lan’
option dhcpv4 ‘server’
option force ‘1’
option dhcpv6 ‘server’
option ra ‘server’
option ra_slaac ‘1’
option start ‘20’
option limit ‘233’
option leasetime ‘86400s’
list dhcp_option ‘15,localdomain’
list dhcp_option ‘option:dns-server,192.168.1.200’
config host
option ip ‘192.168.1.200’
option mac ‘00:e2:69:59:1f:52’
option name ‘MiniSrv’
option dns ‘1’
config host
option ip ‘ignore’
option mac ‘26:d8:96:04:cf:7c’
config host
option ip ‘ignore’
option mac ‘0e:0d:20:15:8f:62’
config host
option ip ‘ignore’
option mac ‘be:b9:23:84:37:38’
config host
option ip ‘ignore’
option mac ‘bc:b9:23:81:37:3a’
config host
option ip ‘ignore’
option mac ‘bc:b9:23:81:37:39’
config host
option ip ‘ignore’
option mac ‘be:b9:23:83:37:38’
config host
option ip ‘ignore’
option mac ‘be:b9:23:82:37:38’
config host
option ip ‘ignore’
option mac ‘bc:b9:23:81:37:38’
config dhcp ‘lan_10’
option interface ‘lan_10’
option dhcpv4 ‘server’
option force ‘1’
option dhcpv6 ‘server’
option ra ‘server’
option ra_slaac ‘1’
option start ‘20’
option limit ‘233’
option leasetime ‘86400s’
list dhcp_option ‘15,localdomain’
list dhcp_option ‘option:dns-server,192.168.1.200’
config host
option ip ‘ignore’
option mac ‘26:d8:96:04:cf:7c’
config host
option ip ‘ignore’
option mac ‘0e:0d:20:15:8f:62’
config host
option ip ‘ignore’
option mac ‘be:b9:23:84:37:38’
config host
option ip ‘ignore’
option mac ‘bc:b9:23:81:37:3a’
config host
option ip ‘ignore’
option mac ‘bc:b9:23:81:37:39’
config host
option ip ‘ignore’
option mac ‘be:b9:23:83:37:38’
config host
option ip ‘ignore’
option mac ‘be:b9:23:82:37:38’
config host
option ip ‘ignore’
option mac ‘bc:b9:23:81:37:38’