Re: neighbor default-originate route-map - am I missing

From: Ivan (ivan@iip.net)
Date: Tue Dec 06 2005 - 07:23:22 GMT-3


pease send output of command
sh ip route-map R6Exist
sh access-list 146
sh ip prefix-list ROUTE

On Tuesday 06 December 2005 05:39, Steve Krantz wrote:
> I know this subject has been covered before, but I can't see what I'm
> doing wrong?
>
>
>
> Trying to generate a default route for neighbor 140.2.7.7 based on the
> presence of the 140.2.6.0/24 route.
>
>
>
> I was able to do this successfully with the prefix list (ROUTE - below)
> instead of an acl, but I'm wondering what's wrong with this config.
>
>
>
> !
>
> router bgp 10342
>
> neighbor 140.2.7.7 remote-as 8302
>
> neighbor 140.2.7.7 ebgp-multihop 255
>
> neighbor 140.2.7.7 update-source Loopback0
>
> neighbor 140.2.7.7 default-originate route-map R6Exist
>
> no auto-summary
>
> !
>
> ip prefix-list ROUTE seq 5 permit 140.2.6.0/24
>
> !
>
> access-list 146 permit ip host 140.2.6.0 host 255.255.255.0
>
> !
>
> route-map R6Exist permit 10
>
> match ip address 146
>
>
>
> R9(config-router)#do sh ip bgp neigh 140.2.7.7 adv
>
> BGP table version is 10, local router ID is 140.2.9.9
>
> Status codes: s suppressed, d damped, h history, * valid, > best, i -
> internal,
>
> r RIB-failure, S Stale
>
> Origin codes: i - IGP, e - EGP, ? - incomplete
>
>
>
> Network Next Hop Metric LocPrf Weight Path
>
> *> 160.2.40.0/22 0.0.0.0 32768 i
>
> R9(config-router)#
>
>
>
>
>
> Gateway of last resort is not set
>
>
>
> R 222.222.222.0/24 [120/1] via 150.2.1.102, 00:00:12, FastEthernet0/0
>
> R 192.168.25.0/24 [120/5] via 150.2.12.6, 00:00:29, FastEthernet0/1
>
> 140.2.0.0/16 is variably subnetted, 14 subnets, 5 masks
>
> R 140.2.8.0/24 [120/1] via 150.2.1.8, 00:00:11, FastEthernet0/0
>
> C 140.2.9.0/24 is directly connected, Loopback0
>
> R 140.2.6.0/24 [120/5] via 150.2.12.6, 00:00:29, FastEthernet0/1
>
> R 140.2.7.0/24 [120/2] via 150.2.1.8, 00:00:11, FastEthernet0/0
>
> R 140.2.5.5/32 [120/5] via 150.2.12.6, 00:00:00, FastEthernet0/1
>
> R 140.2.4.4/32 [120/5] via 150.2.12.6, 00:00:00, FastEthernet0/1
>
> R 140.2.1.1/32 [120/5] via 150.2.12.6, 00:00:00, FastEthernet0/1
>
> R 140.2.36.0/24 [120/5] via 150.2.12.6, 00:00:00, FastEthernet0/1
>
> R 140.2.35.0/24 [120/5] via 150.2.12.6, 00:00:00, FastEthernet0/1
>
> R 140.2.56.0/29 [120/5] via 150.2.12.6, 00:00:00, FastEthernet0/1
>
> R 140.2.78.8/29 [120/1] via 150.2.1.8, 00:00:12, FastEthernet0/0
>
> R 140.2.68.0/28 [120/2] via 150.2.1.8, 00:00:12, FastEthernet0/0
>
> R 140.2.100.0/28 [120/5] via 150.2.12.6, 00:00:00, FastEthernet0/1
>
> R 140.2.112.0/22 [120/5] via 150.2.12.6, 00:00:00, FastEthernet0/1
>
> 111.0.0.0/32 is subnetted, 1 subnets
>
> R 111.111.111.111 [120/5] via 150.2.12.6, 00:00:00,
> FastEthernet0/1
>
> 160.2.0.0/16 is variably subnetted, 5 subnets, 2 masks
>
> C 160.2.42.0/24 is directly connected, Loopback42
>
> C 160.2.43.0/24 is directly connected, Loopback43
>
> C 160.2.40.0/24 is directly connected, Loopback40
>
> B 160.2.40.0/22 [200/0] via 0.0.0.0, 03:43:31, Null0
>
> C 160.2.41.0/24 is directly connected, Loopback41
>
> 150.2.0.0/16 is variably subnetted, 3 subnets, 2 masks
>
> R 150.2.2.2/32 [120/5] via 150.2.12.6, 00:00:01, FastEthernet0/1
>
> C 150.2.1.0/24 is directly connected, FastEthernet0/0
>
> C 150.2.12.0/24 is directly connected, FastEthernet0/1
>
>
>
> Cisco's example - Notice typo, I'm pretty sure they mean "match ip
> address 100" not "1"
>
> In the following example, the last line of the configuration has been
> changed to show the use of an extended access list. The local router
> injects route 0.0.0.0 to the neighbor 172.16.2.3 only if there is a
> route to 198.92.68.0 with a mask of 255.255.0.0:
>
> router bgp 109
> network 172.16.0.0
> neighbor 172.16.2.3 remote-as 200
> neighbor 172.16.2.3 default-originate route-map default-map
> !
> route-map default-map 10 permit
> match ip address 1
> !
> access-list 100 permit ip host 198.92.68.0 host 255.255.255.0
>
>
>
>
>
> Thanks,
>
> Steve Krantz
>
> Consulting Engineer
>
> Inacom Information Systems
>
> steve.krantz@inacom.com
>
> http://www.inacom.com/
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>

-- 
Ivan


This archive was generated by hypermail 2.1.4 : Mon Jan 09 2006 - 07:07:50 GMT-3