User's Manual
462
from autonomous system 690 to 127. The second entry allows the routes that don’t meet the above conditions
to be transferred to neighbor 1.1.1.1.
router bgp 100
neighbor 1.1.1.1 route-map freddy out
!
ip aspath-list abc permit ^690_
ip aspath-list xyz permit .*
!
route-map freddy permit 10
match as-path abc
set metric 127
!
route-map freddy permit 20
match as-path xyz
The following example illustrates how to use route-map to change the routes from route redistribution:
router bgp 100
redistribute rip route-map rip2bgp
!
route-map rip2bgp
match ip address rip
set local-preference 25
set metric 127
set weight 30000
set next-hop 192.92.68.24
set origin igp
!
ip access-list standard rip
permit 131.108.0.0 255.255.0.0
permit 160.89.0.0 255.255.0.0
permit 198.112.0.0 255.255.128.0
61.5.2 Example of Neighbour Configuration
In the following example, BGP router belongs to AS109, and creates two networks. This router has 3 neighbors:
the first neighbor is an external one (in different AS); the second is internal one (with the same AS number).
The third is also an external one.
router bgp 109
network 131.108.0.0
network 192.31.7.0
neighbor 131.108.200.1 remote-as 167
neighbor 131.108.234.2 remote-as 109
neighbor 150.136.64.19 remote-as 99
61.5.3 Example of BGP Route Filtration based on the Neighbor
Here is an example of BGP path filtration based on the neighbor. The routes passing through as-path access
list “test1” will receive a metric value as 100. Only routes passing through as-path access list “test2” will be
sent to 193.1.12.10, similarly, only those routes passing access list “test3” will be accepted by 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_