I am attempting to build a redundant switch solution to one router using a BDI interface. This is from an ASR1002x to two 2960x switches. A diagram of my configuration is attached.
In the diagram are 2 switches connected to the router using a single vlan. That vlan is trunked between the switches on an etherchannel and each switch has one access port connected to the router. The interfaces on the router are bound to the BDI. I have popped an IP address on the vlan interfaces on the switches to provide a test mechanism. All devices are able to ping each other, and the redundancy works manually at the moment. When I shut down either interface on the router both switches can still access the router.
It is fully expected to me that this design will cause a physical loop, which were I combining 3 switches would be taken care of by STP or RSTP.
The problem I have is the mac address of the BDI interface is learnt by each switch from both the access port and the etherchannel. I am looking for a solution that will allow the router to be accessed on 192.168.1.1 via either switch with no manual intervention required for fail-over. I would have thought this quite a common thing for bound interfaces, but so far I have been unable to find any information about preventing loops in this type of solution.
How can I prevent the loop?
Thanks Matt