I have two routers connected each with two ethernet cables to a layer 2 switch. see the diagram. I want to get each router to know about each other lan using static routes only i dont want to use dynmaic routes meanwhile preserving the redundancy through the 2 cables. I mean when one cable is down the traffic directs only to the up interface
There is no way to exchange routing information without using a routing protocol. The term static means you will hardcode route information. In order to accomplish what you want you need to select a routing protocol such as RIP, OSPF, EIRP.
Firstly, what is your routing protocol? EIGRP does a nice automatic load balancing across equal-cost paths. If one link goes down, EIGRP will remove that path from the routing table.
In this case if you just added LAN1 address to Router 1 Eigrp Process and LAN2 address to Router 2 Eigrp process, Eigrp will take care of either load balancing, or routing traffic to a single UP/UP interface.
If you prefer static routes, just add a higher cost to one of the static route statements and EIGRP will use the lower cost link primarily, and will automagicaly swith to a secondary link if the primary fails.
Secondly static routes, if desired could be set up like follows:
ip route a.a.a.a b.b.b.b interfaceA
ip route a.a.a.a b.b.b.b interfaceB
Where a.a.a.a b.b.b.b equals the address/mask of the LAN network connected to Router 2
ip route c.c.c.c d.d.d.d interfaceA
ip route c.c.c.c d.d.d.d interfaceB
Where c.c.c.c d.d.d.d equals the address/mask of the LAN network connected to Router 1
for bjw first there is two LANs in this topology because each router has 2 interfaces in differenet subnets (that is a Router characterstic) then if I add the static routes as you mentioned the problem when interface A of router1 goes down and Router2 will not sense this action and still send traffic to that interface. the main point is here.
You have correctly identified one of the issues about using static routes with Ethernet interfaces. Cisco has introduced a new feature which addresses this issue. It is Reliable Static Routes with Object Tracking. It uses static routes and it dynamically tracks the state of some remote object and if you lose connectivity over a particular interface then the static route using that interface is removed from the routing table.
This link has information to help you understand this feature and how to configure it:
If you use EIGRP, you just enter the desired networks in the EIGRP process. A routing table is built and EIGRP will share it's routes with other routers. If a router interface goes down, routes in the routing table that use that interface will be removed and new routes will be discovered. Routers care about how to get packets from one place to another. If Router 1 says it has LAN1 connected. That LAN is in the routing table, it shares that with Router 2's Routing process.
If you allow all attached networks to be advertised, the Routing process will adjust itself to a new path.
Router 1 Interface FA0 10.1.1.0/24 LAN1
Interface FA1 22.214.171.124/24 to switch VLAN A
Interface fa2 126.96.36.199/24 to switch VLAN B
Router 2 Interface FA0 10.2.1.0/24 LAN2
Interface FA1 188.8.131.52/24 to switch VLAN A
Interface fa2 184.108.40.206/24 to switch VLAN B
Router 1 EIGRP
no auto summ
Router 2 EIGRP
no auto summ
The routing table will show all defined networks and will show 2 routes to each LAN.
When 1 route (interface) goes away, that route is removed and the second route used
Unfortunalty It requires software version 12.3(2)XE and I have 12.2(18)SXD3 on a 7600 router. well I will think of a software upgrade but anyway this feature is very interesting and it worth the try I will try it and I will give u a feedback when I will ISA. thanks for ur support
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...