This Configuration Guide is designed to assist members to enhance their skills in particular technology area. While every effort has been made to ensure that all material is as complete and accurate as possible, the enclosed material is presented on an "as is" basis. Neither the authors nor Forum assume any liability or responsibility to any person or entity with respect to loss or damages incurred from the information contained in this guide. This configuration guide was developed by Forum. Any similarities between material presented in this configuration guide and any other material is completely coincidental.
Cisco IOS Software, Linux Software (I86BI_LINUX-ADVENTERPRISEK9-M), Version 15.2(4)M1,
DEVELOPMENT TEST SOFTWARE
Lab created for RST Forum by: Yash Muni, Ritesh Gohil
LAB 3: Configure DHCP Relay Agent
Task 3: Configure IPv4 DHCP Relay Agent
Step 1. In the configuration mode of router configure IPv4 DHCP Relay Agent by following command:
Router 1 interface fastethernet 0/0 no shutdown interface fastethernet 0/0.1 encapsulation dotlq 100 ip add 126.96.36.199 255.255.255.0 ip helper-address 188.8.131.52 interface fastethernet 0/0.2 encapsulation dot1q 200 ip add 184.108.40.206 255.255.255.0 ip helper-address 220.127.116.11 exit interface fastethernet 0/1 ip address 18.104.22.168 255.255.255.0 no shutdown exit Router 2 interface fastethernet 0/0 ip address 22.214.171.124 255.255.255.0 no shutdown ip dhcp pool VLAN100 network 126.96.36.199 255.255.255.0 default-router 188.8.131.52 exit ip dhcp excluded-address 184.108.40.206 ip dhcp pool VLAN200 network 220.127.116.11 255.255.255.0 default-router 18.104.22.168 exit ip dhcp excluded-address 22.214.171.124 ip route 0.0.0.0 0.0.0.0 126.96.36.199 Switch interface fastethernet 0/1 switchport mode trunk exit interface fastethernet 0/2 switchport access vlan 100 switchport mode access interface fastethernet 0/3 switchport access vlan 200 switchport mode access Configure the HOST to obtain IP from DHCP.