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 'fdef:e56e:0a5c::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option netmask '255.255.0.0'
option ip6assign '60'
option ipaddr '172.16.1.2'
option gateway '172.16.1.1'
option dns '8.8.8.8 8.8.4.4'
config interface 'wan'
option ifname 'eth1.2'
option proto 'dhcp'
config interface 'wan6'
option ifname 'eth1.2'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 5t'
option vid '1'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4 6t'
option vid '2'
config switch_vlan
option device 'switch0'
option vlan '3'
option ports '3t 5t 6t'
option vid '117'
config interface 'VLAN_Test'
option ifname 'eth0.117'
option proto 'none'
option type 'bridge'config wifi-device 'radio0'
option type 'mac80211'
option channel '36'
option hwmode '11a'
option path 'soc/soc:pcie/pci0000:00/0000:00:01.0/0000:01:00.0'
option htmode 'VHT80'
option disabled '1'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'
config wifi-device 'radio1'
option type 'mac80211'
option hwmode '11g'
option path 'soc/soc:pcie/pci0000:00/0000:00:02.0/0000:02:00.0'
option htmode 'HT20'
option channel '10'
option txpower '10'
option country 'DE'
option legacy_rates '1'
config wifi-iface 'default_radio1'
option device 'radio1'
option mode 'ap'
option ssid 'OpenWrt VLAN'
option network 'VLAN_Test'
option encryption 'psk2'
option key 'XXXXXX'
config wifi-device 'radio2'
option type 'mac80211'
option channel '36'
option hwmode '11a'
option path 'platform/soc/soc:internal-regs/f10d8000.sdhci/mmc_host/mmc0/mmc0:0001/mmc0:0001:1'
option htmode 'VHT80'
option disabled '1'
config wifi-iface 'default_radio2'
option device 'radio2'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'{
"switch": [
{
"name": "switch0",
"vlan": [
{
"ports": "0 1 2 3 5t",
"vlan": 1,
"device": "switch0"
},
{
"ports": "4 6t",
"vlan": 2,
"device": "switch0"
},
{
"ports": "3t 5t 6t",
"vlan": 117,
"device": "switch0"
},
{
"ports": "3t 5t 6t",
"vlan": 121,
"device": "switch0"
}
],
"reset": true,
"enable_vlan": true
}
]
}{
"interfaces": [
{
"wireless": {
"network": [
"Guests_2_4GHz"
],
"mode": "access_point",
"radio": "radio1",
"ack_distance": 0,
"frag_threshold": 0,
"rts_threshold": 0,
"ssid": "Guests_WLAN_2_4GHz",
"hidden": false,
"wds": false,
"encryption": {
"protocol": "wpa2_personal",
"disabled": false,
"key": "XXXXXX",
"cipher": "auto"
},
"isolate": false,
"wmm": true,
"maclist": [],
"macfilter": "disable"
},
"type": "wireless",
"name": "Guests_2_4GHz",
"mac": "",
"addresses": [],
"disabled": false,
"autostart": true,
"network": "",
"mtu": 1500
},
{
"bridge_members": [
"eth0.117",
"Guests_2_4GHz"
],
"stp": false,
"type": "bridge",
"name": "Guests_2_4GHz",
"mac": "",
"addresses": [],
"disabled": false,
"autostart": true,
"network": "",
"mtu": 1500,
"igmp_snooping": false
}
],
"radios": [
{
"protocol": "802.11n",
"name": "radio1",
"channel_width": 20,
"tx_power": 10,
"channel": 11,
"country": "DE",
"disabled": false,
"driver": "mac80211",
"phy": "",
"hwmode": "11g"
}
]
}