DHCP (Dynamic Host Configuration Protocol) is commonly used in large local network environment, the main role is centralized management, assigning IP address, so that the host in the network environment to obtain the dynamic IP address, gateway address , DNS server address and other information, and can increase the usage of the address.
Experimental goal: C3 DHCP enables C1 and C2 to obtain IP automatically
1: Configure Layer two switch SW2
Add VLAN 10 20 100 and add F1/1 f1/2 F1/3 to vlan10 vlan20 vlan100 respectively
f1/0 interface do trunk link
2: Configure three-layer switching SW1
f1/0 interface do trunk link
Add VLAN 10 20 100 set their gateway and turn on
3: Install DHCP package in Linux
Copy Dhcpd.conf.sample to/etc/dhcp named dhcpd.conf
Edit dhcpd.conf
4: Configure dhcpd.conf
Modify Domain name DNS
Set up an allocated network segment scope Gateway
5: Open DHCPD Service
6: Specify DHCP server address for 192.168.100.111 in layer three exchange
7: Automatic address acquisition using IP DHCP
Test ping success with auto-acquired address
Build DHCP service in Linux redhat6.5