diff options
author | Darkeye <postfach@martinmichel.info> | 2011-01-22 21:20:13 (GMT) |
---|---|---|
committer | Darkeye <postfach@martinmichel.info> | 2011-01-22 21:20:13 (GMT) |
commit | 43fe4b9c171fbb1aaec1a6097ede48bf798d74de (patch) | |
tree | 41e554d4e998de2939631b8cacf7d473b4add471 /files/etc/config/network | |
parent | 2a7578724a2c75cb3b3883653bf837b088b0a49a (diff) |
switch port 1 and 2 dhcp (192.168.1.1/24)
switch port 3 and 4 batman-mesh
Diffstat (limited to 'files/etc/config/network')
-rw-r--r-- | files/etc/config/network | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/files/etc/config/network b/files/etc/config/network index 597630e..c2cd550 100644 --- a/files/etc/config/network +++ b/files/etc/config/network @@ -7,22 +7,34 @@ config 'interface' 'mesh' option 'type' 'bridge' option 'ifname' 'bat0 ath0 eth0.1' +config 'interface' 'lan' + option 'type' 'bridge' + option 'proto' 'static' + option 'ipaddr' '192.168.1.1' + option 'netmask' '255.255.255.0' + option 'ifname' 'eth0.2' + config 'switch' 'eth0' - option 'name' 'eth0' - option 'reset' '1' - option 'enable_vlan' '1' + option 'name' 'eth0' + option 'reset' '1' + option 'enable_vlan' '1' config 'switch_vlan' 'eth0_1' - option 'device' 'eth0' - option 'vlan' '1' - option 'ports' '0 1 2 3 5t' - + option 'device' 'eth0' + option 'vlan' '1' + option 'ports' '2 3 5t' + config 'switch_vlan' 'eth0_2' - option 'device' 'eth0' - option 'vlan' '2' - option 'ports' '4 5t' + option 'device' 'eth0' + option 'vlan' '2' + option 'ports' '0 1 5t' + +config 'switch_vlan' 'eth0_3' + option 'device' 'eth0' + option 'vlan' '3' + option 'ports' '4 5t' config 'interface' 'wan' - option 'ifname' 'eth0.2' - option 'proto' 'dhcp' - option 'dns' '217.11.48.200 217.11.49.200 8.8.8.8' + option 'ifname' 'eth0.3' + option 'proto' 'dhcp' + option 'dns' '217.11.48.200 217.11.49.200 8.8.8.8' |