Pls have a llok at my scenario and below are the brief about the topology.
R1 : L3 Switch and IP routing enabled
Aswitch : L2 switch
VLAN 13PC : it is a PC connected to 13 vlan in R1 core switch
VLAN40PC2 : connected to L2 switch in 40th VLAN
VLAN40PC2 default gateway is 192.168.40.1 , which is 40th vlan ip in Core-Switch(in R1)
VLAN13PC default gateway is 192.168.13.1, which is 13th vlan ip in Core-Switch(in R1)
R1(Core-Sw) and Aswitch both are connected and it is TRUNK
Communication between VLAN40PC2 and VLAN13PC is happening over Trunk link..
My requirement :
When the connectivity (trunk link) between R1(core-Sw) and Aswitch(L2) fails ,
VLAN13PC should be reachable over R1-> R7 -> R8 -> Aswitch to VLAN40PC2
To Resolve the above requirement , i have done the following configurations :
1. In R1 (Core-Sw) , i have configured Policy Route for Source VLAN13PC to destination
VLAN40PC2 with set next hop as R7 f0/0 IP address
2.In R8 Router, i have configuerd SUB interfaces with 40th VLAN and 3 vlan
Result after configured above :
It is pinging from VLAN40PC2 and VLAN13PC using Policy route
But After Trunk link connectivity (trunk link) between R1(core-Sw) and Aswitch(L2) restored,
It is still using policy route only
My question is ,
Can we track Trunk interface
(connectivity between R1(core-Sw) and Aswitch(L2)) and can we apply trunk interface to a VLAN 13.
So that when trunk link failes , 13 vlan pc automatically communicates to 40th vlan PC
when trunk link gets up with out any other configuration it has to communicate over trunk link..