April 26, 2019

xDSL and Linux: Go Speed Racer! - page 3

Don't Let the Man Keep You Down: Grab the Power of DSL for Linux

  • January 25, 2000
  • By Nicholas M.M. Donovan

Most modern distributions of Linux allow the user at setup time to specify whether they will access their network or the internet via DHCP or static IP.

From the network administrators perspective, especially on a large network, DHCP is a friend that saves the administrator much time by avoiding the hassles associated with allocation of IP addresses on the LAN or inter-company WAN and allows machines easy configuration when adding or subtracting network nodes.

In most distributions the DHCP information is locate in /etc/dhcpc/. The files that are used are dhcpcd-eth0.info and dhcpcd-eth0.cache.

The typical DHCPCD configuration file dhcpcd-eth0.info file often looks something like this:

$ more /etc/dhcpc/dhcpcd-eth0.info
IPADDR= # The IP address assigned to your computer
NETMASK= # The netmask of your network (class C)
NETWORK= # Again, indicative of a class C network
BROADCAST= # nothing unusual
GATEWAY= # Gateway of THEIR network, not yours
DNS=, # primary & secondary here
DHCPSID= # Server ID
DHCPGIADDR= #Server gateway address
DHCPSIADDR= #Don't worry if this is 0
DHCPCHADDR=00:60:97:C6:75:86 #Harware Address (router)
DHCPSHADDR=00:10:67:00:41:D7 #Hardware Address (NIC)
DHCPSNAME=(optional) #Optional
LEASETIME=14400 #IP Lease time
RENEWALTIME=7200 #IP Renewel
REBINDTIME=12600 # Rebind time (with NIC)

These are fictional numbers, by the way. But you get the idea.

Most Popular LinuxPlanet Stories