July 31, 2014
 
 
RSSRSS feed

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=201.56.78.123 # The IP address assigned to your computer
NETMASK=255.255.255.0 # The netmask of your network (class C)
NETWORK=201.56.78.0 # Again, indicative of a class C network
BROADCAST=255.255.255.255 # nothing unusual
GATEWAY=201.56.78.254 # Gateway of THEIR network, not yours
DNS=201.56.78.8,201.56.78.1 # primary & secondary here
DHCPSID=201.56.78.119 # Server ID
DHCPGIADDR=201.56.78.254 #Server gateway address
DHCPSIADDR=0.0.0.0 #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.

Sitemap | Contact Us