we need the following lines changed in 500+ routers. The hard part is each router has one unique address. Can this be scripted somehow in NCM?
Router 1
ip dhcp pool DHCPPOOL1
no dns-server 10.20.20.1 192.168.40.25 192.168.40.26
!
Router 2
ip dhcp pool DHCPPOOL1
no dns-server 10.30.30.1 192.168.40.25 192.168.40.26
The two common DNS servers need to be removed "192.168.40.25 192.168.40.26".
The other IP address is unique to each router and can't be removed without impacting DNS.
Issusing the following, just removed the entire DNS line from the DHCP pool.
ip dhcp pool MBO_LAN
no dns-server 192.168.40.25 192.168.40.26
Is there a way to remove the 192.168.40.25 192.168.40.26 while leaving the unique in place?
So, The end result needs to look like this:
Router 1
ip dhcp pool DHCPPOOL1
dns-server 10.20.20.1
!
Router 2
ip dhcp pool DHCPPOOL1
dns-server 10.30.30.1