DHCP Lab

2 DHCP  Lab

 

 

DHCP lab

 

 

 

 

 

 

 

 

 

 

 

 

Router>enable
Router#configure terminal
Router(config)#hostname BR-Router
BR-Router(config)#line con 0
BR-Router(config-line)# exec-timeout 0 0
BR-Router(config-line)# password cisco
BR-Router(config-line)# login
BR-Router(config-line)#line vty 0 4
BR-Router(config-line)# password cisco
BR-Router(config-line)# login
BR-Router(config-line)#do wri mem
BR-Router(config-line)#exit
BR-Router(config)#int Serial0/0/0
BR-Router(config-if)#ip address 172.16.1.2 255.255.255.252
BR-Router(config-if)#des Connection to HQ-Router
BR-Router(config-if)#no shut

BR-Router(config-if)#clock rate 64000
BR-Router(config-if)#no shut

BR-Router(config)#int fa0/1
BR-Router(config-if)#ip address 10.10.10.1 255.255.255.0
BR-Router(config-if)#des Internal BRANCH Network
BR-Router(config-if)#no shut
BR-Router(config)#ip route 0.0.0.0 0.0.0.0 172.16.1.1

HQ-Router>en
HQ-Router#conf t
HQ-Router(config)#line con 0
HQ-Router(config-line)#exec-timeout 0 0
HQ-Router(config-line)#exit
HQ-Router(config)#line vty 0 4
HQ-Router(config-line)#password cisco
HQ-Router(config)#enable secret cisco
HQ-Router(config)#line con 0
HQ-Router(config-line)#password cisco
HQ-Router(config-line)#login
HQ-Router(config-line)#exit

HQ-Router(config)#
HQ-Router(config)#int Serial0/0/0
HQ-Router(config-if)#des Connection to BRANCH-Router
HQ-Router(config-if)#ip address 172.16.1.1 255.255.255.252
HQ-Router(config-if)#no shut

HQ-Router(config)#int fa0/1
HQ-Router(config-if)#ip address 192.168.1.1 255.255.255.0
HQ-Router(config-if)#des Internal HQ Network
HQ-Router(config-if)#ip route 10.10.10.0 255.255.255.0 172.16.1.2
HQ-Router(config)#int fa0/1
HQ-Router(config-if)#no shut

Dhcp on HQ router

HQ-Router(config)#ip dhcp pool HQ_POOL
HQ-Router(dhcp-config)#network 192.168.1.0 255.255.255.0
HQ-Router(dhcp-config)#default-router 192.168.1.1
HQ-Router(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.10

Dhcp on Branch router

BR-Router(config)#ip dhcp pool BR_POOL
BR-Router(dhcp-config)#network 10.10.10.0 255.255.255.0
BR-Router(dhcp-config)#default-router 10.10.10.1
BR-Router(dhcp-config)#dns-server 172.16.5.1
BR-Router(dhcp-config)#exit
BR-Router(config)#ip dhcp excluded-address 10.10.10.1 10.10.10.10

 

 

 

DHCP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Both PCs have acquired ip address starting from the 1st available ip after the range of excluded dhcp address keyed in the config. Pings across the network are both successful.

 

DHCP ping

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Find me on YouTube

Recent Posts

Recent Comments