
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
Other Switching
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2018 10:34 AM
Or, if you run multiple dynamic routing protocols on a router, it's somewhat like that too. The big difference is, if you're running dynamic routing protocols, although each routing protocol doesn't share its routes with other routing protocols, the routing table is a composite of all route information (with best AD or longest prefix "wining" route table entry). VRF, though, don't, share their route tables on the same device.
I.e. if a packet is in the "global" context, it uses the "global" route table. If a packet is in a specific VRF context, it uses that VRF's route table.
What can be somewhat confusing, you can pass routes between VRFs (in concept, somewhat like redistribution between different routing protocols), so separate routing instances can have the same prefixes.
