From: Derek Buelna (dameon@xxxxxxxxxxx)
Date: Wed Nov 15 2000 - 14:33:48 GMT-3
Try this:
Route-map denystatic deny 10
Match address 1
Route-map denystatic permit 20
Match address 2
Access-list 1 deny 172.168.1.0 0.0.0.255
Access-list 2 permit any any
Not that it appeared as if what you had 'should' work - Marc's config has it
the way you had it. I believe that I did it that way. You may want to reload
or remove and re-add BGP.
It's a little confusing with the permit and deny of the route-map and the
access-list but just play with it and you'll get it.
Good luck - it's satisfying once it works..
-Derek
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
James Chen
Sent: Wednesday, November 15, 2000 6:25 AM
To: CCIE Group Study (E-mail)
Subject: ccbootcamp lab 3 question
<< File: jr_chen.vcf >> Hello:
I have one problem in lab 3, that the bgp route-map can not
filter the
static route injected into bgp.
the config is:
router bgp 1
redistribute static route-map static
neighbor 137.20.103.1 remote-as 2
no auto-summary
!
ip classless
ip route 172.168.1.0 255.255.255.0 Null0
ip route 172.168.2.0 255.255.255.0 Null0
!
access-list 1 permit 172.168.2.0 0.0.0.255
access-list 2 permit any
route-map static permit 10
match ip address 1
!
route-map static deny 20
match ip address 2
----------------------------------------------------------------------------
------------------
RT4#sh ip bgp s
BGP router identifier 137.20.103.2, local AS number 1
BGP table version is 3, main routing table version 3
2 network entries and 2 paths using 266 bytes of memory
2 BGP path attribute entries using 104 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP activity 5/75 prefixes, 5/3 paths
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
State/PfxRcd
137.20.103.1 4 2 236 256 3 0 0
00:38:10 0
RT4#sh ip bgp nei 137.20.103.1 adv
BGP table version is 3, local router ID is 137.20.103.2
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
*> 172.168.1.0/24 0.0.0.0 0 32768 ?
*> 172.168.2.0/24 0.0.0.0 0 32768 ?
----------------------------------------------------------------------------
----------------------
I can not filter the route 172.168.1.0 out of the routing table.
Please help me to solve it !
Thanks
James
This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 08:25:45 GMT-3