Step 4: configure your interfaces file

Trough the LEAF configuration menu type 1 to access to the network configuration menu and 1 again to edit your /etc/network/interfaces file. Enter the following information:

# Loopback interface.
auto lo
iface lo inet loopback

# Declare the external (ppp) interface
auto ppp0
iface ppp0 inet ppp
	pre-up mount none /proc/bus/usb -t usbdevfs
	pre-up sleep 2
	pre-up modem_run -f /lib/modules/mgmt.o -m
	pre-up sleep 1
	provider adsl

# Declare the internal interface
# Default: eth0 / fixed IP = 192.168.1.254
auto eth0
iface eth0 inet static
	address 192.168.1.254
	masklen 24
	broadcast 192.168.1.255

In this /etc/network/interfaces file the lo, ppp0 and eth0 interfaces are brought up automatically when the ifup -a statement is executed at boot time by the /etc/init.d/networking script.

The "iface ppp0 inet ppp" section defines the external address of the router and activates the pon script.

The "iface eth0 inet static" defines the internal address of the router.

Backup the etc.lrp package.