Step 5: 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:

auto lo eth0

iface lo inet loopback

iface eth0 inet dhcp

iface eth1 inet static
	address 192.168.1.254
	masklen 24
	broadcast 192.168.1.255
	wireless_mode Ad-Hoc
	wireless_channel 1
	wireless_rate 10M
	wireless_essid Home

We assume here that you get a dynamic IP from your ISP through pump. The corresponding interface (eth0) is brought up automatically at boot time (eth0 is in the auto statement). The wireless NIC is connected to eth1 and is assigned the 192.168.1.254 local address. This interface is NOT brought up automatically at boot time. The pcmcia package will start cardmgr through the /etc/init.d/pcmcia script executed at boot time. The cardmgr program will then call the /etc/pcmcia/network script which will in turn execute the ifup eth1 command.

The wireless commands have to be declared in the iface section with the wireless_ prefix. Those commands are described in the iwconfig man page.

Backup the etc.lrp package.