| 1 |
# basic network configuration file |
|---|
| 2 |
# for more information, see the FreeWRT handbook |
|---|
| 3 |
# http://www.freewrt.org/trac/wiki/Documentation/Handbook |
|---|
| 4 |
|
|---|
| 5 |
auto lo |
|---|
| 6 |
iface lo inet loopback |
|---|
| 7 |
|
|---|
| 8 |
# LAN ports |
|---|
| 9 |
auto eth0.0 |
|---|
| 10 |
iface eth0.0 inet manual |
|---|
| 11 |
switch-ports 1 2 3 4 5* |
|---|
| 12 |
|
|---|
| 13 |
# WAN port |
|---|
| 14 |
auto eth0.1 |
|---|
| 15 |
iface eth0.1 inet dhcp |
|---|
| 16 |
switch-ports 0 5 |
|---|
| 17 |
|
|---|
| 18 |
# WLAN with WPA2 and WLAN-Speedup |
|---|
| 19 |
auto eth2 |
|---|
| 20 |
iface eth2 inet manual |
|---|
| 21 |
wireless-bridge-if br0 |
|---|
| 22 |
wireless-type broadcom |
|---|
| 23 |
wireless-country DE |
|---|
| 24 |
wireless-mode ap |
|---|
| 25 |
wireless-channel 1 |
|---|
| 26 |
wireless-ssid PrivateWLAN |
|---|
| 27 |
wireless-security wpa-psk |
|---|
| 28 |
wireless-authorization psk psk2 |
|---|
| 29 |
wireless-encryption aes+tkip |
|---|
| 30 |
wireless-wpa-key MySecretPassword |
|---|
| 31 |
wireless-wpa-gtk-rekey 900 |
|---|
| 32 |
wireless-gmode performance |
|---|
| 33 |
wireless-frameburst 1 |
|---|
| 34 |
wireless-afterburner 1 |
|---|
| 35 |
|
|---|
| 36 |
# Bridging WLAN<->LAN |
|---|
| 37 |
# |
|---|
| 38 |
# should be always the last configured interface, it depends |
|---|
| 39 |
# on interfaces in bridge-ifaces |
|---|
| 40 |
auto br0 |
|---|
| 41 |
iface br0 inet static |
|---|
| 42 |
bridge-ifaces eth0.0 eth2 |
|---|
| 43 |
address 192.168.1.1 |
|---|
| 44 |
netmask 255.255.255.0 |
|---|
| 45 |
broadcast + |
|---|