address-family context

Unanswered Question
Apr 24th, 2008
User Badges:

Is there a way to find out in which address-family context we are currently configure ?


Is this af A:B or C:D ?

Sometimes it is hard to keep track of what af was entered, especially if we do a lot of "do show xy).

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
mohammedmahmoud Thu, 04/24/2008 - 11:34
User Badges:
  • Green, 3000 points or more


You can simply do show history to see your recent entered commands, and to check into which address-family you have entered, and further on you can increase the history buffer:

R5(config)#ip vrf abc

R5(config-vrf)#rd 1:1


R5(config-vrf)#route-target bot

R5(config-vrf)#route-target both 1:1

R5(config-vrf)#router bgp 1


R5(config-router)#address-family ipv

R5(config-router)#address-family ipv4

R5(config-router)#address-family ipv4 vrf

R5(config-router)#address-family ipv4 vrf abc

R5(config-router-af)#do sh hist

ip vrf abc

rd 1:1

route-target both 1:1

router bgp 1

address-family ipv4 vrf abc

do sh hist


Mohammed Mahmoud.


This Discussion