The SISO router is assumed to connect to the external internet using a xDSL, Cable or ISDN connection. The IP addresses listed below need to be assinged:
IP number and netmask for the external interface;
IP address of the upstream router (default gateway);
IP addresses of the upstream Domain Name System (DNS) servers; and
IP address of the upstream Network Time Protocol (NTP) server.
These parameters can be static or dynamically assigned, as described in the next sections.
For an external interface with a fixed IP address, the following configuration files should exist:
resolv.conf
nameserver
216.190.188.1
nameserver
208.187.208.1
eth1.conf
BOOTPROTO=static
IPADDR=
10.0.0.2
NETMASKBITS=
24
ntpserver.conf
NTPSERVER=
192.43.244.18
Examples of these files can be found at:
The Dynamic Host Configuration Protocol (DHCP) allows computers to automatically configure their network interfaces and upstream servers based on information supplied a server. It is often used by ISDN or cable routers.
DHCP client is an optional component of Busybox. For installation instructions refer to Section 3.2, “Coreutils - busybox”. To use DHCP client on the external interface, create the following configuration file:
/etc/sysconfig/network/eth1.conf
BOOTPROTO=static
DHCP_EXTRA=
Cable routers may require the hostname or client name to be passed with the DHCP Request. This can be accomplished by either
DHCP_EXTRA="-c=
CLIENTID"
DHCP_EXTRA="-H=
HOSTNAME"
While bringing up the external network interface, SISO will start
the DHCP client. Once a lease is optained, the DHCP client executes
/etc/sysconfig/network/udhcpc.script to:
assign the obtained IP address and netmask to the external interface
write the DNS server addresses to
resolv.conf, and
instructs dnsmasq to reload this file.
write the NTP server address to
ntpserver.conf.
An example of this udhcpc.script can be found
at Example D.8, “/etc/sysconfig/network/udhcpc.script”.
Point-to-Point Protocol over Ethernet (PPPoE) allows authenticated sessions over Ethernet networks. It is often used by ADSL "modems".
On the SISO router, the rp-pppoe [32] plug-in provides PPPoE. This plug-in was installed in Section 4.9, “Point-to-Point Protocol (PPP)”. Note that the Linux kernel supports "kernel mode PPPoE". To use PPPoE client on the external interface, create the following configuration file:
/etc/sysconfig/network/eth1.conf
BOOTPROTO=static
I do not have access to a cable modem, but here are some general configuration notes:
For PAP and CHAP the user id and password are specified in
respectively
/etc/sysconfig/ppp/pap-secrets
and
/etc/sysconfig/ppp/chap-secrets
The ifup script calls calls
/usr/sbin/adsl-start to initiate the PPPoE
connection. For the specifics, refer to
/sbin/adsl-start in the FC3 distribution
or scripts/adsl-start.in in the rp-pppoe
source.