Bgp conditional statement Question

From: BALAKRISHNAN Balaji (Balaji.BALAKRISHNAN@swift.com)
Date: Thu Dec 25 2008 - 02:36:25 ARST


All,

I have some difficulty In implementing bgp conditional statement. I am
trying to announce 30.0.0.0/32 route only when 20.0.0.0/32 is not
present in the routing table. But it does not work. I see 20.0.0.0/32
in the routing table but still it announces the route 30.0.0.0/32. What
is the reason for this ?? don't the route 20.0.0.0/32 consider as valid
tracking route ?? I do have ip classless and ip subnet-zero configured.

Her is the show command output

DCWRSS1#sh ip route 20.0.0.0
Routing entry for 20.0.0.0/32, 6 known subnets

B 20.0.2.6 [20/0] via 192.168.176.68, 4d05h
B 20.0.3.6 [20/0] via 192.168.176.68, 1w1d
B 20.0.0.6 [20/0] via 192.168.176.68, 4d05h
B 20.0.1.6 [20/0] via 192.168.176.68, 2w4d
B 20.0.1.1 [20/0] via 192.168.176.6, 4d06h
B 20.0.0.0 [20/0] via 192.168.176.6, 2w4d

DCWRSS1#sh ip bgp nei 192.168.176.68 advertised-routes
BGP table version is 15192187, local router ID is 192.168.183.11
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
*> 30.0.0.0/32 0.0.0.0 0 32768 i

DCWRSS1#sh route-map ADVERTISE_LON
route-map ADVERTISE_LON, permit, sequence 10
  Match clauses:
    ip address (access-lists): 50
  Set clauses:
  Policy routing matches: 0 packets, 0 bytes

DCWRSS1#sh route-map NON-EXIST_LON
route-map NON-EXIST_LON, permit, sequence 10
  Match clauses:
    ip address (access-lists): 30
  Set clauses:
  Policy routing matches: 0 packets, 0 bytes

DCWRSS1#sh access-lists 50
Standard IP access list 50
    permit 30.0.0.0 (6 matches) check=70

DCWRSS1#sh access-lists 30
Standard IP access list 30
    permit 20.0.0.0

Blogs and organic groups at http://www.ccie.net



This archive was generated by hypermail 2.1.4 : Thu Jan 01 2009 - 12:53:09 ARST