diff options
author | Darkeye <postfach@martinmichel.info> | 2011-01-18 19:01:55 (GMT) |
---|---|---|
committer | Darkeye <postfach@martinmichel.info> | 2011-01-18 19:01:55 (GMT) |
commit | 92653c5724b8d636c78dca14d4a3e4eda920e0e2 (patch) | |
tree | a2c732b7a608e98e814208a1cde6fe17dfeb57d4 | |
parent | 7f7eb3c76ce3ef2ba7d0138e84b44cf194889bf5 (diff) |
Add bridge and banner
-rw-r--r-- | files/etc/banner | 14 | ||||
-rw-r--r-- | files/etc/config/network | 34 | ||||
-rw-r--r-- | files/etc/rc.local | 7 |
3 files changed, 55 insertions, 0 deletions
diff --git a/files/etc/banner b/files/etc/banner new file mode 100644 index 0000000..cd09f5a --- /dev/null +++ b/files/etc/banner @@ -0,0 +1,14 @@ +################################################################# +# ______ _ __ _ ___ +# | ___| (_)/ _| | | |_ | +# | |_ _ __ ___ _| |_ _ _ _ __ | | __ | | ___ _ __ __ _ +# | _| '__/ _ \ | _| | | | '_ \| |/ / | |/ _ \ '_ \ / _' | +# | | | | | __/ | | | |_| | | | | < /\__/ / __/ | | | (_| | +# \_| |_| \___|_|_| \__,_|_| |_|_|\_\ \____/ \___|_| |_|\__,_| +# +# Basiert auf OpenWRT backfire und enthält OpenVPN +# * OpenWRT +# * LuCI +# * Gebaut am / Version: +# * Kudos an Klaus Kruse (kkruse [dot] 1987atgooglemail [dot] com) +################################################################# diff --git a/files/etc/config/network b/files/etc/config/network new file mode 100644 index 0000000..5c87829 --- /dev/null +++ b/files/etc/config/network @@ -0,0 +1,34 @@ +config 'interface' 'loopback' + option 'ifname' 'lo' + option 'proto' 'static' + option 'ipaddr' '127.0.0.1' + option 'netmask' '255.0.0.0' +config 'interface' 'mesh' + option 'type' 'bridge' + option 'ifname' 'ath1 bat0' + +config 'interface' 'lan' + option 'type' 'bridge' + option 'proto' 'static' + option 'ipaddr' '192.168.1.1' + option 'netmask' '255.255.255.0' + option 'ifname' 'eth0.1' + +config 'switch' 'eth0' + 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' + +config 'switch_vlan' 'eth0_2' + option 'device' 'eth0' + option 'vlan' '2' + option 'ports' '4 5t' + +config 'interface' 'wan' + option 'ifname' 'eth0.2' + option 'proto' 'dhcp' diff --git a/files/etc/rc.local b/files/etc/rc.local new file mode 100644 index 0000000..a135777 --- /dev/null +++ b/files/etc/rc.local @@ -0,0 +1,7 @@ +# the system init finished. By default this file does nothing. + +# Workaround bridge seems do work not well (ath1 did not join the bridge) +brctl addif br-mesh ath1 +ifconfig br-mesh down +ifconfig br-mesh up +exit 0 |