02-02-2023
05:40 AM
- last edited on
02-05-2023
11:03 PM
by
Translator
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.
Solved! Go to Solution.
02-02-2023
10:37 AM
- last edited on
02-06-2023
09:59 PM
by
Translator
OK,
no router bgp xx
then config
router bgp xx <<- but this time with no bgp default ipv4-unicast
02-02-2023
07:01 AM
- last edited on
02-06-2023
09:57 PM
by
Translator
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
02-02-2023
09:49 AM
- last edited on
02-06-2023
09:58 PM
by
Translator
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
02-02-2023
10:37 AM
- last edited on
02-06-2023
09:59 PM
by
Translator
OK,
no router bgp xx
then config
router bgp xx <<- but this time with no bgp default ipv4-unicast
02-03-2023 03:31 AM
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.
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