02-05-2015 07:26 PM - edited 03-05-2019 12:44 AM
I have BGP peering with carrier. I would like to only accept routes from the carrier that I am interested in.
My Router : 128.100.1.1
router bgp 64514
no synchronization
bgp log-neighbor-changes
neighbor 10.10.10.2 remote-as 64514
neighbor 10.10.10.2 next-hop-self
neighbor 128.100.1.39 remote-as 64517
neighbor 128.100.1.39 default-originate
neighbor 128.100.1.39 prefix-list DENYROUTE in
neighbor 128.100.1.39 route-map Set_LP in
no auto-summary
!
ip prefix-list DENYROUTE seq 5 deny 128.100.8.0/24
ip prefix-list DENYROUTE seq 99 permit 0.0.0.0/0 le 32
OSPARK#sh ip route
128.100.0.0/16 is variably subnetted, 6 subnets, 2 masks
C 128.100.160.26/32 is directly connected, Loopback160
C 128.100.1.0/24 is directly connected, Vlan10
B 128.100.8.0/24 [20/0] via 128.100.1.39, 00:17:57
B 128.100.9.0/24 [20/0] via 128.100.1.39, 00:17:57
B 128.100.10.0/24 [20/0] via 128.100.1.39, 00:17:57
B 128.100.17.0/24 [200/0] via 10.10.10.2, 00:26:17
10.0.0.0/30 is subnetted, 3 subnets
C 10.10.10.0 is directly connected, Vlan100
B 10.37.184.196 [20/0] via 128.100.1.39, 00:17:59
B 10.37.184.200 [20/0] via 128.100.1.39, 00:17:59
S* 0.0.0.0/0 [1/0] via 128.100.1.30
OSPARK#
I am learning routes of 128.100.8.0 and 128.100.9.0 and 128.100.10.0. I would like to try and block 128.100.8.0 from coming to my router with Prefix List but doesn't work.
Carrier Router: 128.100.1.39
router bgp 64517
no synchronization
bgp log-neighbor-changes
neighbor 10.37.184.201 remote-as 65530
neighbor 128.100.1.1 remote-as 64514
no auto-summary
02-05-2015 08:32 PM
Hi
Did you clear the BGP process after you applied your filter?
02-06-2015 11:13 AM
Just to elaborate on Henrik's excellent suggestion, run:
clear ip bgp 128.100.1.39 soft
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