From: Sergio Jimenez Arguedas (sejimenez@its.co.cr)
Date: Fri Jul 23 2004 - 15:42:50 GMT-3
Hi Group,
I have the following task:
Task1. Give a sh cmd, that displays only the portion of the RIB that matches
only the following conditions,
1. Your AS EBGP is 6000, and
2. The AS6000 learned the path directly from AS 77, and
3. The routes were injected into BGP by AS 888, and
4. The path can transit any combination of AS between AS 777 and AS 888, as
well as a path from AS 777 to AS 888
The solution is:
SOLUTION1:
R1#sh ip bgp regexp ^6000_777_(.+_)*888$
BGP table version is 312, local router ID is 192.168.88.1
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
*> 10.0.6.0/28 192.168.88.6 0 0 6000 777 789
826 799 888 i
*> 10.0.6.16/28 192.168.88.6 0 0 6000 777 789
826 778 793 888 i
*> 10.0.6.32/28 192.168.88.6 0 0 6000 777 888 i
*> 10.0.6.48/28 192.168.88.6 0 0 6000 777 791
865 876 881 882 883 888 i
SOLUTION2:
R1#sh ip bgp regexp ^6000_777(_.+)*_888$
BGP table version is 313, local router ID is 192.168.88.1
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
*> 10.0.6.0/28 192.168.88.6 0 0 6000 777 789
826 799 888 i
*> 10.0.6.16/28 192.168.88.6 0 0 6000 777 789
826 778 793 888 i
*> 10.0.6.32/28 192.168.88.6 0 0 6000 777 888 i
*> 10.0.6.48/28 192.168.88.6 0 0 000 777 791 865
876 881 882 883 888 i
QUESTION: I changed the AS-PATH in the prefix 10.0.6.24/28 to 791 865 876
881 900 945....
So, It is the output:
R1#sh ip bgp regexp ^6000_777(_.+)*_888$
BGP table version is 313, local router ID is 192.168.88.1
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
*> 10.0.6.0/28 192.168.88.6 0 0 6000 777 789
826 799 888 i
*> 10.0.6.16/28 192.168.88.6 0 0 6000 777 789
826 778 793 888 i
*> 10.0.6.32/28 192.168.88.6 0 0 6000 777 888 i
*> 10.0.6.48/28 192.168.88.6 0 0 6000 777 791
865 876 881 900 945 888 i
Why the sh ip bgp regexp ^6000_777(_.+)*_888$ displays the prefix
10.0.6.48/28 if this regexp only can match combinations between AS777 and
AS888.
I really appreciated your help!!!
Rgds,
SJA
This archive was generated by hypermail 2.1.4 : Sun Aug 01 2004 - 10:12:01 GMT-3