config global 'global'
	option ports_num '11'
	option ports '1 2 3 4 5 6 7 8 9 10 11'
	option pwanmax '11'
	option pindex '1 2 3 4 5 6 7 8 9 10 11'
	option ptype '3 1 1 1 1 1 1 1 1 1 1' # 0:wan, 1:wan/lan, 2:lan, 3:phy 4:usb
	option pname 'SFP+ WAN1|SFP+ WAN/LAN2|SFP WAN/LAN3|WAN/LAN4|WAN/LAN5|WAN/LAN6|WAN/LAN7|WAN/LAN8|WAN/LAN9|WAN/LAN10|WAN/LAN11'
	option vrange '1-4094'
	option vmax '4094'
	option vreserve '10'
	option bandwidth '1000'
	
config usb 'usb_list'
	list usb_name 'usb1'
	
config usb 'usb1'
	option pwanmax '1'
	option pindex '12'
	option ptype '4'
	option pname 'USB Modem'
	option bandwidth '100'
	option reg_interface '0'
	option reg_port '0'

config lport 'port1'
	option port '1'
	option pvid '0'
	option p_type '1' # 0:switch, 1:phy
	option type 'general' # general trunk access
	option bandwidth '10000'
	option reg_interface '0'
	option reg_port '0'
	option max_speed '10000'
	option port_state 'on'
	option flowcontrol 'off'
	option negotiation_mode '10000MF'
	option phy_type 'sfp+'
	
config lport 'port2'
	option port '2'
	option pvid '1'
	option p_type '0' # 0:switch, 1:phy
	option type 'general' # general trunk access
	option tag '1' # vlan tag
	option bandwidth '10000'
	option port_state 'on'
	option flowcontrol 'off'
	option negotiation_mode	'10000MF'
	option ingress_state 'off'
	option ingress_mode 'all'
	option ingress_rate '10000'
	option egress_state 'off'
	option egress_rate '10000'
	option isolation 'off'
	option portpri '0'
	option max_speed '10000'
	option phy_type 'sfp+'

config lport 'port3'
	option port '3'
	option pvid '1'
	option p_type '0' # 0:switch, 1:phy
	option type 'general' # general trunk access
	option tag '1' # vlan tag
	option port_state 'on'
	option flowcontrol 'off'
	option negotiation_mode	'1000MF'
	option ingress_state 'off'
	option ingress_mode 'all'
	option ingress_rate '1000'
	option egress_state 'off'
	option egress_rate '1000'
	option isolation 'off'
	option portpri '0'
	option max_speed '1000'
	option phy_type 'sfp'

config lport 'port4'
	option port '4'
	option pvid '4092'
	option p_type '0' # 0:switch, 1:phy
	option type 'general' # general trunk access
	option tag '1' # vlan tag
	option port_state 'on'
	option flowcontrol 'off'
	option negotiation_mode	'auto'
	option ingress_state 'off'
	option ingress_mode 'all'
	option ingress_rate '1000'
	option egress_state 'off'
	option egress_rate '1000'
	option isolation 'off'
	option portpri '0'
	option max_speed '1000'
	
config lport 'port5'
	option port '5'
	option pvid '1'
	option p_type '0' # 0:switch, 1:phy
	option type 'general' # general trunk access
	option tag '1' # vlan tag
	option port_state 'on'
	option flowcontrol 'off'
	option negotiation_mode	'auto'
	option ingress_state 'off'
	option ingress_mode 'all'
	option ingress_rate '1000'
	option egress_state 'off'
	option egress_rate '1000'
	option isolation 'off'
	option portpri '0'
	option max_speed '1000'

config lport 'port6'
	option port '6'
	option pvid '1'
	option p_type '0' # 0:switch, 1:phy
	option type 'general' # general trunk access
	option tag '1' # vlan tag
	option port_state 'on'
	option flowcontrol 'off'
	option negotiation_mode	'auto'
	option ingress_state 'off'
	option ingress_mode 'all'
	option ingress_rate '1000'
	option egress_state 'off'
	option egress_rate '1000'
	option isolation 'off'
	option portpri '0'
	option max_speed '1000'

config lport 'port7'
	option port '7'
	option pvid '1'
	option p_type '0' # 0:switch, 1:phy
	option type 'general' # general trunk access
	option tag '1' # vlan tag
	option port_state 'on'
	option flowcontrol 'off'
	option negotiation_mode	'auto'
	option ingress_state 'off'
	option ingress_mode 'all'
	option ingress_rate '1000'
	option egress_state 'off'
	option egress_rate '1000'
	option isolation 'off'
	option portpri '0'
	option max_speed '1000'

config lport 'port8'
	option port '8'
	option pvid '1'
	option p_type '0' # 0:switch, 1:phy
	option type 'general' # general trunk access
	option tag '1' # vlan tag
	option port_state 'on'
	option flowcontrol 'off'
	option negotiation_mode	'auto'
	option ingress_state 'off'
	option ingress_mode 'all'
	option ingress_rate '1000'
	option egress_state 'off'
	option egress_rate '1000'
	option isolation 'off'
	option portpri '0'
	option max_speed '1000'

config lport 'port9'
	option port '9'
	option pvid '1'
	option p_type '0' # 0:switch, 1:phy
	option type 'general' # general trunk access
	option tag '1' # vlan tag
	option port_state 'on'
	option flowcontrol 'off'
	option negotiation_mode	'auto'
	option ingress_state 'off'
	option ingress_mode 'all'
	option ingress_rate '1000'
	option egress_state 'off'
	option egress_rate '1000'
	option isolation 'off'
	option portpri '0'
	option max_speed '1000'

config lport 'port10'
	option port '10'
	option pvid '1'
	option p_type '0' # 0:switch, 1:phy
	option type 'general' # general trunk access
	option tag '1' # vlan tag
	option port_state 'on'
	option flowcontrol 'off'
	option negotiation_mode	'auto'
	option ingress_state 'off'
	option ingress_mode 'all'
	option ingress_rate '1000'
	option egress_state 'off'
	option egress_rate '1000'
	option isolation 'off'
	option portpri '0'
	option max_speed '1000'

config lport 'port11'
	option port '11'
	option pvid '1'
	option p_type '0' # 0:switch, 1:phy
	option type 'general' # general trunk access
	option tag '1' # vlan tag
	option port_state 'on'
	option flowcontrol 'off'
	option negotiation_mode	'auto'
	option ingress_state 'off'
	option ingress_mode 'all'
	option ingress_rate '1000'
	option egress_state 'off'
	option egress_rate '1000'
	option isolation 'off'
	option portpri '0'
	option max_speed '1000'

config port 'mirror'
	option state 'off'
	option mode 'both'
	option mirrorport '11'
	option mirroredports '4'

config switch_vlan 'vlan0'
	option vlan '0'
	option name 'vlan0'
	option users 'system'

config switch_vlan 'vlan1'
	option vlan '1'
	option name 'vlan1'
	option desc 'LAN1'
	option users 'lan'
	option ports '2 3 5 6 7 8 9 10 11'

config switch_vlan 'vlan4092'
	option vlan '4092'
	option name 'vlan4092'
	option ports '4'
	option users 'wan'
	option prio '0'