User's Manual

Table Of Contents
465
Users Manual of CS-6306R
!
route-map freddy permit 10
match as-path abc
set metric 127
!
route-map freddy permit 20
match as-path xyz
The following example shows how to modify the routes that are generated in route forwarding through the
route map:
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
45.4.4.2 BGP neighbor configuration example
In the following example, the BGP router belongs to AS109. AS109 establishes two networks. The router has
three neighbors: an external neighbor (in a different AS), an internal neighbor (with the same AS number) and
an external neighbor.
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
45.4.4.3 Example for neighbor-based BGP path filtration
The following is an example for neighbor-based BGP path filtration. The route that gets through the access list
test1of as-path obtains a weight value 100. Only the route that gets through the access list test2 of as-path
can be sent to neighbor 193.1.12.10. Similarly, the route that gets through the access list test3 can be