05-24-2018 06:08 AM - edited 03-08-2019 03:07 PM
Hi All,
I would like to know from the below what the preferred path would be for the same route? Does the path in the global table win or the vrf table?
#sh ip route 12.191.38.231
Routing entry for 12.191.32.0/19
Known via "ospf 1", distance 110, metric 145, type inter area
Last update from 12.182.1.45 on TenGigabitEthernet0/0/0, 3w0d ago
Routing Descriptor Blocks:
* 12.182.1.47, from 12.191.0.4, 3w0d ago, via TenGigabitEthernet1/0/0
Route metric is 145, traffic share count is 1
12.182.1.45, from 12.191.0.4, 3w0d ago, via TenGigabitEthernet0/0/0
Route metric is 145, traffic share count is 1
#sh ip route vrf GREEN 12.191.38.231
Routing Table: GREEN
Routing entry for 12.191.0.0/16
Known via "ospf 100", distance 110, metric 210
Tag 64795, type extern 2, forward metric 54
Last update from 12.145.5.130 on TenGigabitEthernet1/0/0.2090, 7w0d ago
Routing Descriptor Blocks:
* 12.145.5.130, from 12.145.2.151, 7w0d ago, via TenGigabitEthernet1/0/0.2090
Route metric is 210, traffic share count is 1
Route tag 64795
Solved! Go to Solution.
05-24-2018 07:16 AM
It depends on whether the packet arrives on an interface in the VRF or not ie. if it does it will route within the VRF if not then the global routing table is used.
Jon
05-24-2018 06:19 AM
If you are in the VRF the preferred route will be the VRF route, if not you will use the global routing table.
Jon
05-24-2018 06:48 AM
Thanks Jon. If a packet is traversing this node heading towards this destination which routing table will be used? I can't use traceroute so having to do this manually.
05-24-2018 07:16 AM
It depends on whether the packet arrives on an interface in the VRF or not ie. if it does it will route within the VRF if not then the global routing table is used.
Jon
05-24-2018 10:34 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