cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
415
Views
10
Helpful
1
Replies

address-family context

ketimun123
Level 1
Level 1

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

R2(config-router-af)#

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 Reply 1

mohammedmahmoud
Level 11
Level 11

Hi,

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

R5(config-vrf)#route-target bot

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

R5(config-vrf)#router bgp 1

R5(config-router)#address

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

BR,

Mohammed Mahmoud.