Pages

Sunday, April 14, 2013

BGP - regexp


• Use the 'show ip bgp regexp' command to enter the regular expressions.

• Create a regular expression that only shows AS 3491.
^3491$

• Create a regular expression that shows AS 3491 at the beginning, and everything
behind it. For example:
3491 5423 5431 5434
^3491_

• Create a regular expression that shows all networks that originate in AS 3491
_3491$

• Create a regular expression that only shows the locally originated networks.
^$

• Create a regular expression that shows everything where AS 3491 is in the
middle of the AS-PATH.
_3491_

• Create a regular expression that shows all networks that are originated by your
directly connected AS neighbors.
^[0-9]+$

No comments:

Post a Comment