DHCP Example

This example configures a machine named capture.my.domain that retrieves its network information through DHCP on interface eth0.

File /etc/hosts contains the following line to ensure a hostname/IP-address mapping for the machine:


127.0.0.1 capture.my.domain capture localhost.localdomain localhost



File /etc/sysconfig/network contains the following line:


HOSTNAME=capture.my.domain



File /etc/sysconfig/network-scripts/ifcfg-eth0 contains only the following lines:


BOOTPROTO=dhcp
DEVICE=eth0
ONBOOT=yes