-: CREATE DHCP ON ROUTER:-
ROUTER – 0
Router>enable
Router#conf terminal
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 1.0.0.1 255.0.0.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#interface serial 2/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
Router(config-if)#clock rate 64000
Router(config-if)#no sh
Router(config-if)#exit
Router(config)#router ospf 100
Router(config-router)#network 10.0.0.0 0.0.0.255 area 0
Router(config-router)#network 1.0.0.0 0.0.0.255 area 0
Router(config-router)#^Z
Router#
Router(config)#ip dhcp pool getworld
Router(dhcp-config)#network 1.0.0.0 255.0.0.0
Router(dhcp-config)#dns-server 1.0.0.254
Router(dhcp-config)#default-router 1.0.0.1
Router(dhcp-config)#exit
Router(config)#^Z
Router#wr
Router#show ip dhcp binding
IP address Client-ID/ Lease expiration Type
Hardware address
1.0.0.2 00E0.F984.DD79 -- Automatic
1.0.0.3 0040.0B06.37C4 -- Automatic
1.0.0.4 0030.F27A.B4DB -- Automatic
Router#
ROUTER – 1
Router#enable
Router#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fastEthernet 0/0
Router(config-if)#ip address 2.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface serial 2/0
Router(config-if)#ip address 10.0.0.2 255.0.0.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#router ospf 100
Router(config-router)#network 10.0.0.0 0.0.0.255 area 0
Router(config-router)#network 2.0.0.0 0.0.0.255 area 0
Router(config-router)#^Z
Router#
Router#conf terminal
Router(config)#ip dhcp pool getworld
Router(dhcp-config)#network 2.0.0.0 255.0.0.0
Router(dhcp-config)#dns-server 2.0.0.254
Router(dhcp-config)#default-router 2.0.0.1
Router(dhcp-config)#exit
Router(config)#exit
Router#wr
Router#show ip dhcp binding
IP address Client-ID/ Lease expiration Type
Hardware address
2.0.0.2 000D.BDC3.CBB0 -- Automatic
2.0.0.3 00D0.BA43.CCB3 -- Automatic
2.0.0.4 0040.0B6C.BBDB -- Automatic
Router#