cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
570
Views
0
Helpful
2
Replies

Basic BGP Route Filter

steven.t27
Level 1
Level 1

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

 

2 Replies 2

Hi

Did you clear the BGP process after you applied your filter?

Just to elaborate on Henrik's excellent suggestion, run:

clear ip bgp 128.100.1.39 soft