This configuration indicates that only the route which passes through the as-path
access-list 2 to filter can be advertised to the neighbor 193.1.12.10, and the advertised
route from the neighbor 193.1.12.10 can be received only when it is filtered by the as-path
access-list 3.
Following is a configuration example, the relationship between the devices and the
alloctioan of Ip address is shown:
Figure 29-3
Use the as-path to filter on the router A.
The configurations of all the devices are as below:
The configuration of Router A:
!
ip as-path access-list 4 deny ^300_
ip as-path access-list 4 permit .*
ip as-path access-list 5 deny ^450_65_
ip as-path access-list 5 permit .*
!
router bgp 100
bgp log-neighbor-changes
neighbor 192.168.5.8 remote-as 200
neighbor 192.168.5.8 filter-list 5 in
neighbor 192.168.5.8 filter-list 4 out
The configuration of Router B:
!
router bgp 200
bgp log-neighbor-changes
neighbor 192.168.5.6 remote-as 100
29.18.4 Configuring Aggregate Route
Use the aggregate-address command to configure the aggregate route in the route
configuration mode. Once any route is within the configured range of routes, this aggregate
route of the BGP will take into effect.