01-12-2018 06:47 AM - edited 03-08-2019 01:23 PM
Hi All,
I was asked this question in an interview. I have attached the topology.
Question: Switch has 2 VLANS's ( VLAN 10 and VLAN 20). Vlan 10 has to pass through Router R1, Vlan 20 has to pass through Router R2.
If Router R1 fails then Both Vlan's (Vlan 10 and 20) has to pass through R1.
I will be delighted if anyone could help me with this. I am just a CCNA passed out and have just started working in a company.
Regards,
Rickey
Solved! Go to Solution.
01-12-2018 06:51 AM
01-12-2018 07:14 AM - edited 01-12-2018 07:24 AM
01-12-2018 12:08 PM - edited 01-12-2018 12:09 PM
BTW, not mentioned in the other posts, the links between SW1 and R1 and R2 would need to be trunks, otherwise as the diagram is shown, VLAN 10 would only transit via R1 and VLAN 20 would only transit via R2.
Using trunks wouldn't be the only solution. You could also have one line per VLAN from the switch to each of R1 and R2. The important thing, is to have HSRP work, both R1 and R2 need an interface in those VLANs.
What about the converse? I.e. HSRP can "select" which router is the primary for each VLAN, but what about traffic returning to VLANs 10 and 20?
If that's also a concern, you would need to insure the "costing" to R3 and R4 is such that R1 is preferred for traffic to VLAN 10 and R2 is preferred for VLAN 20.
01-12-2018 06:51 AM
01-12-2018 07:04 AM
Hi Sir,
Thank you for the reply.
In HSRP one router will be active and the other will be in standby. But In this case both router has to forward the Vlan traffic( ie; Vlan 10 through R1 , Vlan 20 through R2). Will HSRP help in this case?
Correct me if I am wrong.
Regards
Rickey
01-12-2018 07:14 AM - edited 01-12-2018 07:24 AM
HSRP is per vlan/IP subnet so it would meet the requirements.
Jon
01-12-2018 08:08 AM
Hi Jon,
Thank You so much.
Regards,
Rickey
01-12-2018 12:08 PM - edited 01-12-2018 12:09 PM
BTW, not mentioned in the other posts, the links between SW1 and R1 and R2 would need to be trunks, otherwise as the diagram is shown, VLAN 10 would only transit via R1 and VLAN 20 would only transit via R2.
Using trunks wouldn't be the only solution. You could also have one line per VLAN from the switch to each of R1 and R2. The important thing, is to have HSRP work, both R1 and R2 need an interface in those VLANs.
What about the converse? I.e. HSRP can "select" which router is the primary for each VLAN, but what about traffic returning to VLANs 10 and 20?
If that's also a concern, you would need to insure the "costing" to R3 and R4 is such that R1 is preferred for traffic to VLAN 10 and R2 is preferred for VLAN 20.
01-13-2018 07:44 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide