User Tools

Site Tools


doc:uci:network:switch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
doc:uci:network:switch [2014/08/16 19:15]
gregorg Wrong option name for VLAN ID
doc:uci:network:switch [2015/01/06 11:13] (current)
pier4r examples
Line 107: Line 107:
  
 See also [[wp>​backplane]]. See also [[wp>​backplane]].
 +
 +==== Examples ====
 +
 +==== Example on the asus wl500gp v2 , openwrt 10.03, every physical port ====
 +<​code>​
 +config '​switch'​ '​eth0'​
 + option '​enable'​ '​1'​
 +
 +
 +config '​switch_vlan'​ '​eth0_0'​
 + option '​device'​ '​eth0'​
 + option '​vlan'​ '​0'​
 + option '​ports'​ '4 5' #wan
 +
 +config '​switch_vlan'​ '​eth0_1'​
 + option '​device'​ '​eth0'​
 + option '​vlan'​ '​1'​
 + option '​ports'​ '3 5' #lan 1
 +
 +config '​switch_vlan'​ '​eth0_2'​
 + option '​device'​ '​eth0'​
 + option '​vlan'​ '​2'​
 + option '​ports'​ '2 5' #lan2
 +
 +config '​switch_vlan'​ '​eth0_3'​
 + option '​device'​ '​eth0'​
 + option '​vlan'​ '​3'​
 + option '​ports'​ '1 5' #lan3
 +
 +config '​switch_vlan'​ '​eth0_4'​
 + option '​device'​ '​eth0'​
 + option '​vlan'​ '​4'​
 + option '​ports'​ '0 5' #lan4
 +
 +#note that to use a particular port in an interface the ifname
 +#should be '​devicename.vlan'​ . So for example ifname '​eth0.3'​
 +</​code>​
doc/uci/network/switch.1408209308.txt.bz2 · Last modified: 2014/08/16 19:15 by gregorg