Back
While the name of the command has changed from time to time, the functionality has remained the same. Ever since Dynamic Host Configuration Protocol ( DHCP ) Servers were created to ration IPv4 address, commands have been needed by clients to call upon the services of that server. At this time, the key command is dhclient. When used with the device name of a network card, it calls upon a DHCP server for an IP address and more. In fact, a command like the following may call on that DHCP server for number of parameters
# dhclient eth0
Generally, the network options that are configured through a DHCP server include the IP Address, the network mask, the gateway address for access to external networks ,and the IP address of any DNS servers for that network.
dhclient eth0 command not only assigns IP address information in the way done with the ifconfig command described earlier, but also it sets up the default route for the routing table shown with the route -n command. In addition it adds the IP address of the DNS server to the /etc/resolv.conf configuration file .
While the name of the command has changed from time to time, the functionality has remained the same. Ever since Dynamic Host Configuration Protocol ( DHCP ) Servers were created to ration IPv4 address, commands have been needed by clients to call upon the services of that server. At this time, the key command is dhclient. When used with the device name of a network card, it calls upon a DHCP server for an IP address and more. In fact, a command like the following may call on that DHCP server for number of parameters
# dhclient eth0
Generally, the network options that are configured through a DHCP server include the IP Address, the network mask, the gateway address for access to external networks ,and the IP address of any DNS servers for that network.
dhclient eth0 command not only assigns IP address information in the way done with the ifconfig command described earlier, but also it sets up the default route for the routing table shown with the route -n command. In addition it adds the IP address of the DNS server to the /etc/resolv.conf configuration file .