Hi,
I am not sure about your Setup but this is a solution from my side.
Here is my LAB:
Special Note:
1. I am using GRE Tunnel for redirect traffic on fake IP address. This Fake IP is configured on R1 under the Loopback interface (10.10.10.10).
2. New DNS server IP address is 192.168.10.10
3. Old DNS Server IP address is 10.10.10.10
R1 Configuration (New DNS is installed on the R1)
!
interface Loopback0
ip address 10.10.10.10 255.255.255.255
ip nat enable
!
interface Tunnel1
ip address 192.168.200.1 255.255.255.0
no ip redirects
tunnel source 1.1.1.1
tunnel mode gre multipoint
!
interface FastEthernet0/0
ip address 1.1.1.1 255.255.255.0
duplex half
!
interface FastEthernet1/0
ip address 192.168.10.1 255.255.255.0
ip nat enable
duplex auto
speed auto
!
interface FastEthernet1/1
ip address 172.16.1.1 255.255.255.0
duplex auto
speed auto
!
router eigrp 1
network 1.1.1.0 0.0.0.255
network 172.16.1.0 0.0.0.255
network 192.168.10.0 0.0.0.255
!
ip nat inside source static 192.168.10.10 10.10.10.10
!
!
R2 Configuration
!
interface Tunnel1
ip address 192.168.200.2 255.255.255.0
tunnel source 1.1.1.2
tunnel destination 1.1.1.1
!
interface FastEthernet0/0
ip address 1.1.1.2 255.255.255.0
duplex half
!
interface FastEthernet1/0
ip address 2.2.2.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/1
ip address 172.16.2.1 255.255.255.0
ip policy route-map DNS-192.168.10.10
duplex auto
speed auto
!
!
router eigrp 1
network 1.1.1.0 0.0.0.255
network 2.2.2.0 0.0.0.255
network 172.16.2.0 0.0.0.255
!
ip access-list extended DNS-192.168.10.10
permit ip any host 10.10.10.10
!
!
route-map DNS-192.168.10.10 permit 10
match ip address DNS-192.168.10.10
set ip next-hop 192.168.200.1
!
!
R3 Configuration:
!
interface Tunnel1
ip address 192.168.200.3 255.255.255.0
tunnel source 2.2.2.2
tunnel destination 1.1.1.1
!
interface FastEthernet0/0
ip address 172.16.3.1 255.255.255.0
ip policy route-map DNS
duplex half
!
interface FastEthernet1/0
ip address 3.3.3.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/1
ip address 2.2.2.2 255.255.255.0
duplex auto
speed auto
!
!
router eigrp 1
network 2.2.2.0 0.0.0.255
network 3.3.3.0 0.0.0.255
network 172.16.3.0 0.0.0.255
!
access-list 100 permit ip any host 10.10.10.10
no cdp log mismatch duplex
!
route-map DNS permit 10
match ip address 100
set ip next-hop 192.168.200.1
!
!
R4 Configuration
!
interface FastEthernet0/0
ip address 10.10.10.1 255.255.255.0
duplex half
!
interface FastEthernet1/0
ip address 3.3.3.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/1
ip address 172.16.4.1 255.255.255.0
duplex auto
speed auto
!
router eigrp 1
network 3.3.3.0 0.0.0.255
network 10.10.10.0 0.0.0.255
network 172.16.4.0 0.0.0.255
!
LAB Result
PC-2> tracer 10.10.10.10
trace to 10.10.10.10, 8 hops max, press Ctrl+C to stop
1 172.16.2.1 7.612 ms 9.232 ms 9.131 ms
2 *192.168.200.1 30.496 ms
!
PC-3> tracer 10.10.10.10
trace to 10.10.10.10, 8 hops max, press Ctrl+C to stop
1 172.16.3.1 2.063 ms 9.459 ms 10.667 ms
2 *192.168.200.1 29.783 ms
PC-3> ping 10.10.10.10
84 bytes from 10.10.10.10 icmp_seq=1 ttl=253 time=50.648 ms
84 bytes from 10.10.10.10 icmp_seq=2 ttl=253 time=32.737 ms
^C
I hope it will help you to resolve your issues. Let me know if you any other question.
Regards,
Deepak Kumar
Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!