Your Cisco Router as DHCP / DNS Server

If you want to use your router as a DHCP server. Than should you do the following thing.
no ip dhcp use vrf connected
ip dhcp excluded-address 1
!
ip dhcp pool CLIENT
import all
network
default-router
dns-server
domain-name .local
lease 32
!
ip domain name .local
ip domain-lookup
ip name-server 208.67.222.222 ( or your provider dns addresses )
ip name-server 208.67.220.220 ( or your provider dns addresses )
!
ip inspect name dns
!
ip dns server
End result could be done with a ping.
example i did a ping to www.google.com
Banaan-877#ping www.google.com
Translating “www.google.com”…domain server (208.67.222.222)
Translating “www.google.com”…domain server (208.67.222.222) [OK]
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 208.69.34.231, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/26/28 ms

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.