wlan-ap-Telecominfraproject/feeds/wlan-ap/opensync/files/bin/wlan_ap_network.sh
Rick Sommerville dafcf692f6 opensync: Align AP VLAN implementation with cloud
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-10-30 13:04:55 +01:00

7 lines
625 B
Bash
Executable File

#!/bin/sh
/usr/opensync/tools/ovsh insert Wifi_Inet_Config NAT:=false enabled:=true if_name:=lan_100 if_type:=vlan inet_addr:=192.168.100.1 ip_assign_scheme:=static mtu:=1500 netmask:=255.255.255.0 network:=true vlan_id:=100 parent_ifname:=lan dhcpd:="[\"map\",[[\"start\",\"100\"], [\"stop\",\"250\"], [\"lease_time\",\"1h\"]]]"
/usr/opensync/tools/ovsh insert Wifi_Inet_Config NAT:=true enabled:=true if_name:=wan_100 if_type:=vlan ip_assign_scheme:=dhcp mtu:=1500 network:=true vlan_id:=100 parent_ifname:=wan
ubus call osync-wm dbg_add_vif '{"radio":"radio1", "name":"test", "vid":100, "network":"lan", "ssid":"test"}'