Hi Rob,

My testing has showed that the AS number only shows up when you apply the
route-map on a "redistribute-connected" statement or a network statement,
not a neighbor statement. Example, R1 is advertising 100.1.1.1/32 to R2.

Here is the ACL and Route-map:

access-list 1 permit 100.1.1.1
route-map SET-ORIGIN permit 10
 match ip address 1
 set origin egp 65003
!
route-map SET-ORIGIN permit 20

*1) Apply route-map to neighbor*

router bgp 30
neighbor 192.168.12.2 route-map SET-ORIGIN out

R2#sho ip bgp | be Ne
   Network          Next Hop            Metric LocPrf Weight Path
*> 100.1.1.1/32     192.168.12.1             0             0 30 e
r> 192.168.12.0     192.168.12.1             0             0 30 ?

*2) Apply route-map to redistribute statement:*

R1(config)#router bgp 30
R1(config-router)#no neighbor 192.168.12.2 route-map SET-ORIGIN out
R1(config-router)#no network 100.1.1.1 mask 255.255.255.255
R1(config-router)#redistribute connected route-map SET-ORIGIN

R2#sho ip bg | be Net
   Network          Next Hop            Metric LocPrf Weight Path
*> 100.1.1.1/32     192.168.12.1             0             0 30 65003 e
r> 192.168.12.0     192.168.12.1             0             0 30 ?

*3) Apply route-map to network statement:*

R2#sho ip bg | be Net
   Network          Next Hop            Metric LocPrf Weight Path
*> 100.1.1.1/32     192.168.12.1             0             0 30 65003 e

On Tue, Jul 14, 2009 at 9:51 PM, Rob <[email protected]> wrote:

>   For some reason it appears that the route-map is not being applied and I
> am not certain why.  I checked the PG and unless I am blind I have the
> exact same config but as you can see below the address that should show up
> as 65003 are still as 60000.  I also checked the final config file and
> noticed that the file has a typo.  The PG shows it using route-map 
> Task18,however the final config has “Task21” as the name of the route-map.
> There is no Route-map Task21 anywhere within the final config only Task18.
>
>
>
> Does anyone see the issue with this config?
>
>
>
> R1
>
>
>
> router bgp 60000
>
>  network 92.1.80.0 mask 255.255.255.0
>
>  network 92.1.81.0 mask 255.255.255.0
>
>  network 92.1.82.0 mask 255.255.255.0
>
>  network 92.1.83.0 mask 255.255.255.0
>
>  network 100.100.100.0 mask 255.255.255.0
>
>  network 150.100.12.0 mask 255.255.255.0
>
>  network 200.0.0.1 mask 255.255.255.255
>
>  neighbor 150.100.12.2 remote-as 109
>
>  neighbor 150.100.12.2 route-map Task18 out
>
> !
>
> ip classless
>
> !
>
> access-list 21 permit 92.1.80.0 0.0.3.255
>
> route-map Task18 permit 10
>
>  match ip address 21
>
>  set origin egp 65003
>
> !
>
> route-map Task18 permit 20
>
>
>
> ----------------------------------------------------------------
>
> R2
>
>
>
> router bgp 64512
>
>  no synchronization
>
>  bgp log-neighbor-changes
>
>  bgp confederation identifier 109
>
>  bgp confederation peers 64513 64514 64613
>
>  network 150.100.12.0 mask 255.255.255.0
>
>  network 150.100.24.0 mask 255.255.255.0
>
>  network 150.100.25.0 mask 255.255.255.0
>
>  network 150.100.100.0 mask 255.255.255.0
>
>  network 200.0.0.2 mask 255.255.255.255
>
>  neighbor 150.100.12.1 remote-as 60000
>
>  neighbor 150.100.24.4 remote-as 64512
>
>  neighbor 150.100.100.5 remote-as 64513
>
>  no auto-summary
>
>
>
>
>
>    Network          Next Hop            Metric LocPrf Weight Path
>
> *> 92.1.80.0/24     150.100.12.1             0             0 60000 e
>
> *> 92.1.81.0/24     150.100.12.1             0             0 60000 e
>
> *> 92.1.82.0/24     150.100.12.1             0             0 60000 e
>
> *> 92.1.83.0/24     150.100.12.1             0             0 60000 e
>
> *> 100.100.100.0/24 150.100.12.1             0             0 60000 i
>
> *  150.100.12.0/24  150.100.12.1             0             0 60000 i
>
> *>                  0.0.0.0                  0         32768 i
>
> *> 150.100.24.0/24  0.0.0.0                  0         32768 i
>
> *  150.100.25.0/24  150.100.100.5            0    100      0 (64513) i
>
> *>                  0.0.0.0                  0         32768 i
>
> *>i150.100.40.0/24  150.100.24.4             0    100      0 i
>
> *>i150.100.41.0/24  150.100.24.4             0    100      0 i
>
> *> 150.100.100.0/24 0.0.0.0                  0         32768 i
>
> *> 150.100.220.0/24 150.100.100.5            0    100      0 (64513) i
>
> *> 150.100.221.0/24 150.100.100.5            0    100      0 (64513) i
>
> *> 200.0.0.1/32     150.100.12.1             0             0 60000 i
>
> *> 200.0.0.2/32     0.0.0.0                  0         32768 i
>
>    Network          Next Hop            Metric LocPrf Weight Path
>
> *>i200.0.0.4/32     150.100.24.4             0    100      0 i
>
> *> 200.0.0.5/32     150.100.100.5            0    100      0 (64513) i
>
> *> 200.0.0.6/32     150.100.100.6            0    100      0 (64513 64514)
> i
>
>
>
> *Rob Phillips**, *MCSE, CCNP, CCDA, CCEA
>
> Network Engineer**
>
> Swank Audio Visuals
>
> 639E Gravois Bluff Blvd
>
> Fenton, Mo 63026
>
> 636-680-2840 (Direct)
>
> 888-Swank-IS (888-792-6547)
>
> 636-680-2890 (Fax)
>
> www.swankav.com
>
> [email protected]
>
>
>
> [image: SwankLogoR]
>
>
>
> *- We Provide Creativity, Confidence and Comfort by delivering "Flawless
> Execution" with a hospitality approach on every event.
> - We transform ordinary meetings into extraordinary events. *
>
>
>
> Checked by AVG - www.avg.com
> Version: 8.5.375 / Virus Database: 270.12.94/2207 - Release Date: 07/14/09
> 18:03:00
>
>
> _______________________________________________
> For more information regarding industry leading CCIE Lab training, please
> visit www.ipexpert.com
>
>


-- 
Bryan Bartik
CCIE #23707 (R&S), CCNP
Sr. Support Engineer - IPexpert, Inc.
URL: http://www.IPexpert.com

<<image001.jpg>>

_______________________________________________
For more information regarding industry leading CCIE Lab training, please visit 
www.ipexpert.com

Reply via email to