We are going to see ,how to set a DHCP and DNS on a Cisco Router for GNS3.
Step 1:
RouterR0#configure terminal
step 2:
RouterR0(config)#ip dhcp-pool "HqOffice"
syntax:-ip dhcp-pool <poolname>.
This Helps you to create a Dhcp group.
step 3:
RouterR0(Dhcp-config)#default router 10.0.0.1
This is your default router that assigns Dynamic Ip address.
step 4:
RouterR0(Dhcp-config)#Dns-Server 8.8.8.8
This is your name resolution server address.
step 5:
RouterR0(dhcp-config)#lease 5 0 0
syntax:-lease(days ,hours ,minutes) .This helps you to renew ip address and prevent ip wastage.
You are done ,In next tutorial w would see how a router acts as a helper in providing Dhcp ip's from a DHCP master router.
Step 1:
RouterR0#configure terminal
step 2:
RouterR0(config)#ip dhcp-pool "HqOffice"
syntax:-ip dhcp-pool <poolname>.
This Helps you to create a Dhcp group.
step 3:
RouterR0(Dhcp-config)#default router 10.0.0.1
This is your default router that assigns Dynamic Ip address.
step 4:
RouterR0(Dhcp-config)#Dns-Server 8.8.8.8
This is your name resolution server address.
step 5:
RouterR0(dhcp-config)#lease 5 0 0
syntax:-lease(days ,hours ,minutes) .This helps you to renew ip address and prevent ip wastage.
You are done ,In next tutorial w would see how a router acts as a helper in providing Dhcp ip's from a DHCP master router.
No comments:
Post a Comment