From: Ryan Hoffman (ryan.hoffman@xxxxxxxxx)
Date: Sun Aug 13 2000 - 10:36:53 GMT-3
Topology:
r2 <- AS 2
|
r6 <- AS 3, Confed 31
|
r3 <- AS 3, Confed 31 (also has ebgp to r2)
|
r1 <- AS 3, Confed 32
I'd like to send community 200 from r6 to r2 for routes I've learned from
confed 32. 1.1.1.1/32 is an example...
r6#sh ip bgp 1.1.1.1
BGP routing table entry for 1.1.1.1/32, version 15
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Advertised to non peer-group peers:
10.0.3.2
(32)
10.0.3.1 (metric 74) from 3.3.3.3 (3.3.3.3)
Origin IGP, metric 0, localpref 100, valid, internal, best
Originator: 3.3.3.3, Cluster list: 3.3.3.3
I can't seem to match the (32) path.
r2 (10.0.3.2)
==
router bgp 2
no synchronization
network 10.0.1.0 mask 255.255.255.128
network 10.0.1.128 mask 255.255.255.128
neighbor 6.6.6.6 remote-as 3
neighbor 6.6.6.6 ebgp-multihop 5
neighbor 6.6.6.6 route-map get-lp in
neighbor 10.0.3.3 remote-as 3
neighbor 10.0.3.3 password ryan
!
ip community-list 1 permit 200
!
route-map get-lp permit 10
match community 1
set local-preference 200
!
route-map get-lp permit 20
r6 (6.6.6.6)
==
router bgp 31
no synchronization
bgp confederation identifier 3
network 6.6.6.6 mask 255.255.255.255
neighbor 3.3.3.3 remote-as 31
neighbor 3.3.3.3 password ryan
neighbor 3.3.3.3 update-source Loopback0
neighbor 10.0.3.2 remote-as 2
neighbor 10.0.3.2 ebgp-multihop 3
neighbor 10.0.3.2 update-source Loopback0
neighbor 10.0.3.2 send-community both
neighbor 10.0.3.2 route-map send-lp out
!
ip as-path access-list 1 permit ^32$
ip as-path access-list 1 permit ^(32)$
route-map send-lp permit 10
match as-path 1
set community 200
!
route-map send-lp permit 20
r3 (10.0.3.3, 3.3.3.3)
==
router bgp 31
bgp confederation identifier 3
bgp confederation peers 32
network 3.3.3.3 mask 255.255.255.255
network 3.3.3.3
neighbor 5.5.5.5 remote-as 31
neighbor 5.5.5.5 route-reflector-client
neighbor 5.5.5.5 update-source Loopback0
neighbor 6.6.6.6 remote-as 31
neighbor 6.6.6.6 route-reflector-client
neighbor 6.6.6.6 update-source Loopback0
neighbor 6.6.6.6 password ryan
neighbor 10.0.3.1 remote-as 32
neighbor 10.0.3.2 remote-as 2
neighbor 10.0.3.2 password ryan
r1 (1.1.1.1)
==
router bgp 32
bgp confederation identifier 3
bgp confederation peers 31
network 1.1.1.1 mask 255.255.255.255
network 1.1.1.1
neighbor 10.0.3.3 remote-as 31
When adding...
ip as-path access-list 1 permit ^$
... to r6 all AS3 routes sent with community 200, and all get local-pref 200
on r2's end. I guess I could start the community at r1, but would like to
see how this would be done from r6.
r6 seems to like my regex here...
r6#sh ip bgp regexp 32
BGP table version is 59, local router ID is 6.6.6.6
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i1.1.1.1/32 10.0.3.1 0 100 0 (32) i
r6#sh ip bgp regexp (32)
BGP table version is 59, local router ID is 6.6.6.6
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i1.1.1.1/32 10.0.3.1 0 100 0 (32) i
This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 08:24:25 GMT-3