I have a 2900 router with two GigabitEthernet interfaces. I want to configure the interface 0/1 like the primary, and the 0/0 like a backup, but I have a problem. When I disconnect the cable from interface 0/1 the backup interface began to work, but if I don't disconnect the cable, but there is a problem with the internet access going out that primary interface, the backup doesn't begin to work. How could I do to detect that you cannot get to Internet through that Interface to begin to use the backup?. The current configuration is the one above.
ip address 10.10.10.2 255.255.255.252
ip nat outside
ip virtual-reassembly in
backup delay 10 30
backup interface GigabitEthernet0/0
ip address 192.168.1.2 255.255.255.252
ip nat outside
ip virtual-reassembly in
ip nat inside source route-map backup interface GigabitEthernet0/0 overload
ip nat inside source route-map primary interface GigabitEthernet0/1 overload
Accoring to my testing, it looks like you should be able to do something like use sla and then track your static route:
ip sla 1
ip sla schedule 1 life forever start-time now
track 1 interface FastEthernet0/0 line-protocol
ip route 0.0.0.0 0.0.0.0 192.168.1.1 254
ip route 0.0.0.0 0.0.0.0 10.10.10.1 track 1
The 10.10.10.1 static route will only be available if fa0/0 is up. If fa0/0 goes down, it will install the other route. In order for you to identify routing issues, etc, you'd have to use something more intelligent like PfR in order to do that.
Yes you need to use IP SLA becasue in your config there are 2 default route .
once the interface is down the 1st configured default gateway will be there and any packet coming to reach internet it will go via 1st default route ................it will never reach 2nd default route .
& as u r 1st default route next hop ip is not reachable packet will start getting drop .
When you say it doesn't work, what are you wanting it to do? What should happen is when you lose connection via g0/1 to the ISP, the static route for 192.168.1.1 will drop out of the table and then your 10.10.10.1 route should show up. Is that part happening?
Try this. Do a "sho ip route | inc 0.0.0.0" before pulling the cable to g0/1. Make a note of what it says. Then pull the cable and do a "show ip route | inc 0.0.0.0" and make a note of what it says. If it switches, then the sla piece is working as intended, but something else is wrong.
I need that when the connection to Internet through the primary Interface goes down it automaticaly route to the backup interface. It swap to the other route when I disconnect the cable, but it doesn't work if the cable is left connected but the connection goes down.
If you probe the next-hop router ( ISP ) then you should use this probe and track it:
no track 1 interface GigabitEhternet0/1 line-protocol
track 1 rtr 1
Also the ip sla is probing 188.8.131.52 if the sla goes down , because of the Primary ISP, the first default route will be installed. The Internet will work and the IP SLA will work again through Backup link, and the primary default route will come UP , and so on.
So the solution will be to use under the sla 1 config source interface GigabitEthernet0/1.
We are pleased to announce availability of Beta software for 16.6.3.
16.6.3 will be the second rebuild on the 16.6 release train targeted
towards Catalyst 9500/9400/9300/3850/3650 switching platforms. We are
looking for early feedback from customers befor...
Introduction Featured Speakers Luis Espejel is the Telecommunications
Manager of IENova, an Oil & Gas company. Currently he works with Cisco
IOS® and Cisco IOS XE platforms, and NX to some extent. He has also
worked as a Senior Engineer with the Routing P...
In this session you can learn more about Layer 3 multicast and the best
practices to identify possible threats and take security measures. It
provides an overview of basic multicast, the best security practices for
use of this technology, and recommendati...