OpenWISP2 Deploy VLAN & Interface/Wifi on a Linksys WRT3200ACM with OpenWRT

51 views
Skip to first unread message

Justin Afzal

unread,
May 20, 2019, 12:34:10 PM5/20/19
to OpenWISP
Dear Sir or Madam,

i want to deploy my virtual switch-settings and my interface-/wifi-settings on a Linksys WRT3200ACM with OpenWRT firmware. When I manually configure the VLAN-Settings & Interface-/Wifi-Seetings on the Linksys WRT3200ACM it works fine, but when I want to deploy it via OpenWISP2 it won't work. The Linksys WRT3200ACM should act like an AP. It should pass through the devices to our DCHP-Server. The DHCP-Server answers with an IP for the selected network.

This is the manual configuration:

network:

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'



wireless:


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'



VLAN-Deploy via OpenWISP2:


{
   
"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
       
}
   
]
}



Interface- & Wifi-Deploy via OpenWISP2:


{
   
"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"
       
}
   
]
}



I tried it with OpenWrt 18.06.2 r7676-cddd7b4c77 and OpenWrt SNAPSHOT r9992-86fd8cb435. The Deploy of the Interface-/Wifi-settings only works, when I setup the virtual switch manually. When I delpoy the VLAN-settings, I won't get an IP from our DHCP. I also can't deploy two Temlpates with Interface-/Wifi-settings. It will create the two interfaces, but the wifi settings disappear. Can someone help me?

Kind regards
Justin Afzal
Reply all
Reply to author
Forward
0 new messages