Allied Telesis X8100 Network Router User Manual


 
BGP: Configuring Distribute Filters
Page 14 | Use Route Maps and Other Filters to Filter and Alter BGP and OSPF Routes
Set that ACL as the filter for the BGP neighbor 45.45.45.46:
3. Check that the IP route table now includes all the routes.
awplus(config-router)#
do show ip route
Codes: C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
* - candidate default
B 45.0.0.0/8 [20/0] via 45.45.45.46, vlan1, 00:01:57
C 45.45.45.0/24 is directly connected, vlan1
B 52.0.0.0/8 [20/0] via 45.45.45.46, vlan1, 00:01:57
C 64.0.0.0/4 is directly connected, vlan64
4. Add the following ACL entries. When exact is not specified, the ACL entry
matches all masks greater than or equal to the specified mask, so the first entry
below would block routes like 52.0.0.0/8.
awplus(config)#
access-list standard list2 deny 52.0.0.0/4
awplus(config)#
access-list standard list2 permit any
5.
awplus(config)#
router bgp 34567
awplus(config)#
neighbor 45.45.45.46 distribute-list list2 in
6. Shut down the neighbor, and then bring it up again.
awplus(config-router)# neighbor 45.45.45.46 shutdown
awplus(config-router)# neighbor 45.45.45.46 no shutdown