09-22-2011 05:10 AM - edited 03-07-2019 02:22 AM
Hi.
I have router (cisco 2811), 2 switches and client. I want that client has one default gateway to 2811 (for example gateway ip will be up on Loopback interface) and if one of the links from switch to gateway down, gateway ip will be available. I don't know how to do it, can u help me?
Solved! Go to Solution.
09-22-2011 11:50 PM
Hi Maxim,
I think I get what you are trying to achieve. You want just one IP address as a default gateway which should be available from your client with redundancy between two fast-ethernet ports of your 2800 router. However it would be best to have two routers at your gateway and have HSRP between them.
As your current situation goes I think you could have one possible solution(or could be more which I could not think at this moment)...
1) You can configure a BVI interface and associate both the ethernet interfaces to that group. These two interfaces of the router would a part of the spanning-tree instance and one would be forwarding and another in blocking state. You need to have trunk between two 2960. Make sure both the router's fastethernet ports are in same VLAN on the 2960 switch.
On 2800
bridge irb
bridge 10 protocol ieee
bridge 10 route ip
int bvi 10
ip address x.x.x.x x.x.x.x
int fas 0/0
no ip addr
bridge-group 10
int fas 0/1
no ip addr
bridge-group 10
Here if one port of the router goes down the other port would become forwarding. Note that convergence time from blocking to forwarding on your router could be 50 seconds.
You may check the following show command on your 2800
sh spanning-tree 10
HTH
Talha
09-22-2011 05:14 AM
Hi,
++ You can configure flex-links, so that you can specify the backup port.
Hope this helps
Cheers
Somu
Rate helpful posts
09-22-2011 05:34 AM
Hi,
You could simply let spanning tree do the job for you.
Decide the root bridge with spanning-tree vlan x priority Y command and in case of failure spanning-tree will reconverge.If you configure Rapid spanning-tree it will only take a few seconds.
Regards.
Alain.
09-22-2011 06:03 AM
I think u don't understand me:) Sorry for my english.
I create the Loopback interface on my router, which connected to 2 switchs. I want that this loopback will be gateway for client. If link between switch port and router goes down, loopback will be available from other interface. How can i do it?
09-22-2011 06:34 AM
Hi ,
As I said above.
if Your switches are L2 then you can traffic engineer the L2 path with PVST+ or RPVST+.
L3 is using L2 to encapsulate so the L3 traffic will follow L2 path.
Regards.
Alain.
09-22-2011 10:55 PM
How client will ping gateway? If i up 2 private networks between router and client, then client can ping gateway(Loopback), usng static routes or, for example, ibgp. But maybe u know better way to let client ping gateway. Maybe u know how to configure route-map for this situation or something else.
09-22-2011 11:50 PM
Hi Maxim,
I think I get what you are trying to achieve. You want just one IP address as a default gateway which should be available from your client with redundancy between two fast-ethernet ports of your 2800 router. However it would be best to have two routers at your gateway and have HSRP between them.
As your current situation goes I think you could have one possible solution(or could be more which I could not think at this moment)...
1) You can configure a BVI interface and associate both the ethernet interfaces to that group. These two interfaces of the router would a part of the spanning-tree instance and one would be forwarding and another in blocking state. You need to have trunk between two 2960. Make sure both the router's fastethernet ports are in same VLAN on the 2960 switch.
On 2800
bridge irb
bridge 10 protocol ieee
bridge 10 route ip
int bvi 10
ip address x.x.x.x x.x.x.x
int fas 0/0
no ip addr
bridge-group 10
int fas 0/1
no ip addr
bridge-group 10
Here if one port of the router goes down the other port would become forwarding. Note that convergence time from blocking to forwarding on your router could be 50 seconds.
You may check the following show command on your 2800
sh spanning-tree 10
HTH
Talha
09-23-2011 01:19 AM
Hi Talha,
I had forgotten the gateway was a router not a L3 switch indeed so i think your solution is indeed the correct one.
Regards.
Alain.
09-23-2011 02:28 AM
Thanks for your help!
09-23-2011 03:08 AM
Hi,
Well you may achieve your goal by the BVI config for now but it may not be advantageous in long run.
Just for example consider that in future you add another subnet in your network and you need the same 2800 router to be the gateway. In that case you dont have any other ethernet port left in the router which could be configured with an IP address of another subnet. Offcourse you may add a secondary IP address on the BVI itself and use it as a gateway but on the switch side you would need two subnets to be a part of one VLAN which is absolutely not a good idea.... even though this would work too...!
Two routers with HSRP is the best bet.... yet if not two routers then you could insert a HWIC-4ESW card on 2811 then two trunk links could be connected from the router's HWIC-4ESW card to two switches and the BVI interfaces could be replaced by SVI interfaces... and more subnets could be added with link redundancy acquired... I think maximum SVIs supported by HWIC-4ESW is 15.
Talha
09-23-2011 05:45 AM
But i can create subinterface on my router and create bvi int on subinterfaces I have already done it and it works.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: