Cisco Cisco ASA 5580 Adaptive Security Appliance Leaflet
4-70
思科 ASA 系列命令参考,S 命令
第 4 章 show bgp 至 show cpu 命令
show bgp regexp
* 172.16.33.0 172.16.72.30 0 109 108 ?
* 172.16.35.0 172.16.72.30 0 109 108 ?
* 172.16.36.0 172.16.72.30 0 109 108 ?
* 172.16.37.0 172.16.72.30 0 109 108 ?
* 172.16.38.0 172.16.72.30 0 109 108 ?
* 172.16.39.0 172.16.72.30 0 109 108 ?
配置
bgp asnotation dot 命令后,
4 字节自主系统路径的正则表达式匹配格式更改为 asdot 记数法
格式。尽管可在正则表达式中使用
asplain 或 asdot 格式配置 4 字节自主系统编号,但仅与使用当
前默认格式配置的
4 字节自主系统编号匹配。在第一个示例中,show bgp regexp 命令采用
asplain 格式的 4 字节自主系统编号进行配置。匹配失败是因为默认格式当前为 asdot 格式且没有
输出。在使用
输出。在使用
asdot 格式的第二个示例中,匹配通过并且关于 4 字节自主系统路径的信息使用
asdot 表示法展示。
注
asdot 记数法使用句点,它是思科正则表达式中的一个特殊字符。要删除特殊意义,请在句点前
使用反斜线。
使用反斜线。
Router# show bgp regexp ^65536$
Router# show bgp regexp ^1\.0$
BGP table version is 2, local router ID is 172.17.1.99
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
*> 10.1.1.0/24 192.168.1.2 0 0 1.0 i
以下是输入
bgp asnotation dot 命令以显示 4 字节自主系统编号后 show bgp regexp 命令的输出
示例。
注
asdot 记数法使用句点,它是思科正则表达式中的一个特殊字符。要删除特殊意义,请在句点前
使用反斜线。
使用反斜线。
Router# show bgp regexp ^1\.14$
BGP table version is 4, local router ID is 172.17.1.99
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
*> 10.1.1.0/24 192.168.1.2 0 0 1.14 i