cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
630
Views
10
Helpful
4
Replies

getting "Policy commands not allowed without an address family" BGP

Sanjeloff
Level 1
Level 1

Hi,

I am on my lab trying to do a BGP peer group prefix-filter, my goal is to deny private IPs using prefix-list from the ISP-PG peer group.

everything is configured on prefix-list and neighbor is established

When I enter

neighbor ISP-PG prefix-list FILTER-IP in

I am getting a notification

Policy commands not allowed without an address family

I did try to add it on

address-family ipv4 unicast

but still getting same notification. Then I notice doing it on specific neighbor I also get the same notification. I am not sure what I am missing. any help much appreciated, thank you.

1 Accepted Solution

Accepted Solutions

OK, 


no router bgp xx
then config 
router bgp xx <<- but this time with no bgp default ipv4-unicast 

 

View solution in original post

4 Replies 4

no bgp default ipv4-unicast 

<<- I do lab and after I remove this line the prefix-list accept, so please remove it and try again

I did try to input

no bgp default ipv4-unicast

but I still get the same notification with peer group and specific neighbor. Appreciate the help

OK, 


no router bgp xx
then config 
router bgp xx <<- but this time with no bgp default ipv4-unicast 

 

I did try to reconfigure but it is still not working, It maybe an issue with the router image I am using, I did try it on another image and it works. Thank you for the help.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card