08-20-2014 12:45 AM
When I give show ip protocol vrf the output is showing bgp even though bgp is not associated to the vrf
vrf config
ip vrf sprint-test
rd 1.1.1.1:22
!
7204_003#sh ip protocols vrf test
*** IP Routing is NSF aware ***
Routing Protocol is "bgp 10"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
IGP synchronization is disabled
Automatic route summarization is disabled
Maximum path: 1
Routing Information Sources:
Gateway Distance Last Update
Distance: external 20 internal 200 local 200
08-20-2014 03:01 AM
Hi,
Because that command output is for vpn and forwarding vrf instances. So it takes bgp... if bgp is configured on the router.....
Regards
Karthik
08-20-2014 04:15 AM
Thanks Karthik.
Is there an alternate way to check what protocols are associated with a particular VRF?
We can use show run vrf <vrf name> but I need something without using show run
08-20-2014 05:09 AM
Hi,
It will show if you have mapped that vrf to a different protocol..... also... but in your case you have created vrf sprint-test and you have taken show output for vrf test..... if that vrf is not mapped to any protocols and if bgp exists it will show bgp as default..... if you have used it in someother protocols, then definitely it will show that info as well as bgp.....
Test output:
=========
R1#show ip protocols vrf sprint-test
*** IP Routing is NSF aware ***
Routing Protocol is "eigrp 100"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
EIGRP-IPv4 Protocol for AS(100) VRF(sprint-test)
Metric weight K1=1, K2=0, K3=1, K4=0, K5=0
NSF-aware route hold timer is 240
Router-ID: No usable Router-ID found
Topology : 0 (base)
Active Timer: 3 min
Distance: internal 90 external 170
Maximum path: 4
Maximum hopcount 100
Maximum metric variance 1
Total Prefix Count: 0
Total Redist Count: 0
Automatic Summarization: disabled
Maximum path: 4
Routing for Networks:
Routing Information Sources:
Gateway Distance Last Update
Distance: internal 90 external 170
Routing Protocol is "bgp 10000"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
IGP synchronization is disabled
Automatic route summarization is disabled
Maximum path: 1
Routing Information Sources:
Gateway Distance Last Update
Distance: external 20 internal 200 local 200
R1#
08-20-2014 05:24 AM
Sorry I copied the wrong vrf.
I understand show ip proto vrf gives all the protocols along with BGP by def but I wanted to know if there is an alternate to show run vrf.
If I run show run vrf vrf-test it will provide only protocols which the vrf is configured to. It will not show BGP if it is not explicitly attached.
VRF without any protocol association
7204_003#sh run vrf test
Building configuration...
Current configuration : 31 bytes
ip vrf test
rd 444:1
!
!
end
VRF with protocol association
7204_003#sh run vrf bala
Building configuration...
Current configuration : 598 bytes
ip vrf bala
rd 10:1
route-target export 22:2
route-target import 22:2
!
!
interface FastEthernet1/0
description thi1
ip vrf forwarding bala
ip address 192.16.4.1 255.255.0.0
ip pim bsr-border
ip pim sparse-dense-mode
delay 106
duplex half
!
router bgp 10
!
address-family ipv4 vrf bala
no synchronization
redistribute ospf 22 vrf bala
exit-address-family
!
router eigrp 100
!
address-family ipv4 vrf bala
autonomous-system 330
network 172.16.2.0 0.0.0.255
network 203.197.194.0
no auto-summary
exit-address-family
!
ip proto vrf
7204_003#sh ip proto vrf test
*** IP Routing is NSF aware ***
Routing Protocol is "bgp 10"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
IGP synchronization is disabled
Automatic route summarization is disabled
Maximum path: 1
Routing Information Sources:
Gateway Distance Last Update
Distance: external 20 internal 200 local 200
7204_003#
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