User's Manual

Table Of Contents
466
Users Manual of CS-6306R
accepted by neighbor 193.1.12.10:
router bgp 200
neighbor 193.1.12.10 remote-as 100
neighbor 193.1.12.10 filter-list test1 weight 100
neighbor 193.1.12.10 filter-list test2 out
neighbor 193.1.12.10 filter-list test3 in
ip aspath-list test1 permit _109_
ip aspath-list test2 permit _200$
ip aspath-list test2 permit ^100$
ip aspath-list test3 deny _690$
ip aspath-list test3 permit .*
45.4.4.4 Example for port-based BGP route filtration
The following example shows that the routes from port e1/0 are filtered through access list acl:
router bgp 122
filter vlan10 in access-list acl
The following example shows how to filter the routes from port e1/0 simultaneously using the access list
filter-network and the access list filter-gateway to respectively filter the network number and the gateway
address.
router bgp 100
filter vlan100 in access-list filter-network gateway filter-gateway
The following example shows how to filter routes from all ports simultaneously using the prefix list filter-prefix
and the prefix list filter-gateway to respectively filter the network number and the gateway address.
router bgp 100
filter * in prefix-list filter-prefix gateway filter-gateway
45.4.4.5 Example for prefix-list-based route filtration configuration
The following example shows that the default route 0.0.0.0/0 is declined:
ip prefix-list abc deny 0.0.0.0/0
The following example shows that the route which matches the prefix 35.0.0.0/8 is allowed:
ip prefix-list abc permit 35.0.0.0/8
In the following example, only the prefixes with the length from /8 to /24 are accepted in the BGP process:
router bgp
network 101.20.20.0
filter * in prefix max24
!
ip prefix-list max24 seq 5 permit 0.0.0.0/0 ge 8 le 24
!
In the following example, the router filters all the routes and only accepts the routes whose prefix length
ranges from 8 to 24: