An example: a PPPoE connection with a two PCMCIA cards setup

C. Hostelet is using an old laptop as a Bering router. His hardware configuration consists of one HP Omnibook 3000 laptop (Pentium 233Mhz, 144MB Ram, CD-Rom drive module, no floppy, no HDD), one Xircom CEM56 Modem/ethernet PCMCIA card and one 3Com 3C589 PCMCIA card. The connection to the net is provided through the first PCMCIA card connected to an Alcatel SpeedTouch Home ethernet modem which gives him access to France Telecom "Netissimo" ADSL service. The connection to the local network is done trough the second PCMCIA card.

Here is his /etc/network/interfaces file:

auto lo

iface lo inet loopback

iface eth0 inet static
	address 10.0.0.1
	masklen 24
	broadcast 10.0.0.255
	up pon dsl-provider eth0
	up shorewall restart
	down shorewall stop
	down poff

iface eth1 inet static
	address 192.168.1.254
	masklen 24
	broadcast 192.168.1.255
	up /etc/init.d/dnscache restart
	down /etc/init.d/dnscache stop

Only lo is brought up automatically at boot time. eth0 and eth1 are brought up by the PCMCIA cardmgr program which calls the /etc/pcmcia/network script.

The connection with the Alcatel speedtouch modem is done through the eth0 interface at address 10.0.0.1

Once the eth0 interface is up the pppd daemon is called by the pon script. Shorewall must then be restarted since eth0 was not available at boot time

Once the eth1 interface is up we restart dnscache which could not start at boot time since eth1 was not available.