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 http://www.google.com

Banaan-877#ping http://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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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