OpenWRT and Cisco Trunking

Second: ‘/etc/config/dhcp’
Create the DHCP server pool for each VLAN

config dhcp 'vlan5'
option interface 'vlan5'
option start '100'
option limit '50'
option leasetime '8h'

config dhcp 'vlan6'
option interface 'vlan6'
option start '150'
option limit '10'
option leasetime '8h'

config dhcp 'vlan7'
option interface 'vlan7'
option start '160'
option limit '40'
option leasetime '8h'

Third: ‘/etc/config/firewall’
Create the Firewall entries for each VLAN

config zone
option name 'vlan5'
list network 'vlan5'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'

config zone
option name 'vlan6'
list network 'vlan6'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'

config zone
option name 'vlan7'
list network 'vlan7'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'

config forwarding
option src 'vlan5'
option dest 'wan'

config forwarding
option src 'vlan6'
option dest 'wan'

config forwarding
option src 'vlan7'
option dest 'wan'

Pages: 1 2 3