Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Why show ip protocol vrf gives bgp by default in the output

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

 

 

4 REPLIES

Hi, Because that command

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

New Member

Thanks Karthik. Is there an

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

Hi,It will show if you have

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#

 

New Member

Sorry I copied the wrong vrf

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#

 

 

 

89
Views
0
Helpful
4
Replies