ā04-10-2020 01:39 AM
I have the problem of the DHCP handing out the old DNS entries in Cisco Router IOS-XE. There is no DHCP server configuration in the router but when i run the command show dhcp server it gives me the old DNS entry which i configured last week and removed it. Also all the clients are getting the old DNS as primary again.
#sh dhcp server
DHCP server: ANY (255.255.255.255)
Leases: 0 Offers: 1893 Requests: 1883 Acks : 1883 Naks: 0 Declines: 1872 Releases: 0 Query: 0 Bad: 0
DNS0: 192.168.192.4, DNS1: 0.0.0.0
Subnet: 255.255.192.0
Appreciate if you guys help me on this. TIA
ā04-10-2020 03:10 AM
- It's a bit unclear what you mean by clients getting the old DNS as primary; since you state the router is not offering dhcp services you need to examine the real dhcp server and check which dns servers are being deployed to the clients when they request an ip address.
M.
ā04-10-2020 04:04 AM
Please find below running configurations,
#sh run | i name-server
ip name-server 80.XX.XXX.XXX
ip name-server 80.XX.XXX.XXX
ip name-server 8.8.8.8
ip name-server 8.8.4.4
ip name-server 9.9.9.9
ip name-server 1.1.1.1
#sh run | i dhcp
no service dhcp
no ip dhcp conflict logging
!
interface Virtual-Template1
ip unnumbered Loopback0
ip mtu 1492
peer default ip address pool DSL-333 DSL-222
ppp authentication pap chap
!
interface Virtual-Template2
ip unnumbered Loopback0
ip mtu 1492 load-interval 30
peer default ip address pool DSL-222
ppp authentication pap chap
!
interface Virtual-Template3
ip unnumbered Loopback0
ip mtu 1492
peer default ip address pool DSL-333
ppp authentication pap chap
bba-group pppoe global
virtual-template 1
!
bba-group pppoe pppoe-business
virtual-template 3
!
bba-group pppoe pppoe-residential
virtual-template 2
interface GigabitEthernet0/0/9.xxxx
encapsulation dot1Q xxxx
pppoe enable group pppoe-residential
!
interface GigabitEthernet0/0/9.xxxx
encapsulation dot1Q xxxx
pppoe enable group pppoe-business
ip local pool DSL-111 80.XX.XXX.XXX 80.XX.XXX.XXX
ip local pool DSL-222 80.XX.XXX.XXX 80.XX.XXX.XXX
ip local pool DSL-333 80.XX.XXX.XXX 80.XX.XXX.XXX
ip local pool ETS 80.XX.XXX.XXX
ip default-gateway 80.XX.XXX.XXX
ip forward-protocol nd
#sh dhcp server DHCP server: ANY (255.255.255.255)
Leases: 0 Offers: 1893 Requests: 1883 Acks : 1883 Naks: 0 Declines: 1872 Releases: 0 Query: 0 Bad: 0
DNS0: 192.168.192.4, DNS1: 0.0.0.0
Subnet: 255.255.192.0
If there is no DHCP service, why i am getting above output in sh dhcp server. Secondly is there any way or command to stop the DHCP daemon service, just a thought.
ā04-10-2020 04:52 AM
- The ip local pool entries are intended for servicing VPN clients. You need to know whether you need this or not before stopping DHCP server.
M.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide