You will be assigned an IP address on connecting to your ISP over PPP and you need a ethernet connection to your private subnet. This means you need to configure your eth0 interface. For Debian users, update the file /etc/network/interfaces for IP configuration.
auto eth0 iface eth0 inet static address 192.168.1.1 network 192.168.1.0 netmask 255.255.255.0 broadcast 192.168.1.255 |
You may also think of configuring the dial-on-demand, if you wish to automatically make a call whenever one of your other desktops tries to access internet. For enabling this feature, you would need to add options in /etc/ppp/options. You may also need to do "echo 1 > /proc/sys/net/ipv4/ip_dynaddr" to stop any program errors, till the connection is made.
Make sure that the default route is set to ppp0.
Restart the network settings on your system by
In this mode, you need two ethernet interfaces on the linux gateway system, one to connect to internet and the other to connect to your private network hub. For example, if eth0 connects to the Internet and eth1 connects to the LAN, your network configuration should be set as (example for Debian Woody /etc/network/interfaces)
auto eth0 iface eth0 inet dhcp auto eth1 iface eth1 inet static address 192.168.1.1 network 192.168.1.0 netmask 255.255.255.0 broadcast 192.168.1.255 |
If you have a static IP address from your ISP, set the values for eth0 also similar to those of eth1 and change dhcp to static.
Restart the network settings on your system by
bash# /etc/init.d/networking restart |