# basic network configuration file
# for more information, see the FreeWRT handbook
# http://www.freewrt.org/trac/wiki/Documentation/Handbook

auto lo
iface lo inet loopback

# LAN ports
auto @FWRT_LAN@
iface @FWRT_LAN@ inet static
	address 192.168.1.1
	netmask 255.255.255.0
	broadcast +
	switch-ports @FWRT_LAN_SWITCH@


# WAN port
auto @FWRT_WAN@
iface @FWRT_WAN@ inet dhcp
	switch-ports @FWRT_WAN_SWITCH@

# WAN port: PPPoE, you need ppp and pppoe plugin installed
#auto @FWRT_WAN@
#iface @FWRT_WAN@ inet manual
#	switch-ports @FWRT_WAN_SWITCH@
#
#auto ppp0
#iface ppp0 inet ppp
#	use-template dsl
#	provider dsl
#	ppp-username foo
#	ppp-password bar
#	ppp-device @FWRT_WAN@
#
# WAN port: PPTP, you need pptp installed
#auto @FWRT_WAN@
#iface @FWRT_WAN@ inet manual
#	switch-ports @FWRT_WAN_SWITCH@
#
#auto ppp0
#iface ppp0 inet ppp
#	use-template pptp
#	provider dsl
#	ppp-modemip 10.0.0.1
#	ppp-username foo
#	ppp-password bar
#	ppp-device @FWRT_WAN@

# UMTS on WRT54G3G devices
#auto ppp0
#iface ppp0 inet ppp
#	use-template umts
#	provider umts
#	ppp-username ""
#	ppp-password ""
#	ppp-idletime ""
#	ppp-device /dev/noz0
##	globetrotter
#	ppp-device /dev/usb/tts/0
#	umts-apn internet.eplus.de
#	umts-pincode 1234
#	umts-mode umts_first
# Optinal Watchdog config (possible for other interfaces too)
#	# this starts a watchdog script that checks if ppp0 is "UP" 
#	watchdog on
#	# this is optional and if set the watchdog pings this IP regularly
#	watchdog-ip 1.2.3.4
#	# If either of this checks fails 3 times in a row for 3 minutes
#	# the router will be rebooted.
# Note:
# on WRT54G3G you can enable the "watchbutton" tool which send
# hotplug events if you press the UMTS-button.
# a default hotplug script will disable/enable the interface on
# button-press

# WLAN with WPA2, MAC-Filter and WLAN-Speedup
#auto @FWRT_WLAN@
#iface @FWRT_WLAN@ inet static
#	address 192.168.10.1
#	netmask 255.255.255.0
#	broadcast +
#	wireless-type broadcom
#	wireless-country DE
#	wireless-mode ap
#	wireless-ssid FreeWRT
#	wireless-channel 11
#	wireless-security wpa-psk
#	wireless-authorization psk2
#	wireless-encryption aes
#	wireless-wpa-key MyWlanSecret
#	wireless-macmode 2
#	wireless-mac 00:01:02:03:04:05 06:07:08:09:0a:0b
#	wireless-gmode performance
#	wireless-frameburst 1
#	wireless-afterburner 1

# Bridging WLAN<->LAN
#auto @FWRT_LAN@
#iface @FWRT_LAN@ inet manual
#	switch-ports @FWRT_LAN_SWITCH@
#
# should be always the last configured interface, it depends
# on interfaces in bridge-ifaces
#auto br0
#iface br0 inet static
#	bridge-ifaces @FWRT_LAN@ @FWRT_WLAN@
#	address 192.168.1.1
#	netmask 255.255.255.0
#	broadcast +

# WLAN with WDS, add the peers to wireless-wds
# real wlan interfaces and wds interfaces will be added to bridge br0
#auto br0
#iface br0 inet static
#	bridge-ifaces @FWRT_WLAN@
#	address 192.168.10.1
#	netmask 255.255.255.0
#	broadcast +
#	wireless-type broadcom
#	wireless-country DE
#	wireless-mode ap
#	wireless-ssid FreeWRT-WDS
#	wireless-channel 11
#	wireless-security none
#	wireless-lazywds 0
#       wireless-wds-bridge br0
#	wireless-wds 00:01:02:03:04:05

