验证平稳重启操作
本主题包含以下部分:
平滑重启操作模式命令
要验证平滑重启的正常运行,请使用以下命令:
show bgp neighbor
(用于 BGP 平滑重启)show log
(用于 IS-IS 和 OSPF/OSPFv3 平滑重启)show (ospf | ospfv3) overview
(适用于 OSPF/OSPFv3 平滑重启)show rsvp neighbor detail
(用于 RSVP 平稳重启 — 帮助器路由器)show rsvp version
(用于 RSVP 平稳重启 — 重新启动路由器)show ldp session detail
(用于 LDP 平滑重启)show connections
(用于 CCC 和 TCC 平滑重启)show route instance detail
(适用于第 3 层 VPN 平滑重启,以及对于在路由实例中使用平滑重启的任何协议)show route protocol l2vpn
(第 2 层 VPN 平滑重启)
有关这些命令及其输出字段说明的更多信息,请参阅 CLI 浏览器。
验证 BGP 平滑重启
要查看 BGP 会话的平稳重启信息,请使用 show bgp neighbor
命令:
user@PE1> show bgp neighbor 192.0.2.10 Peer: 192.0.2.10+179 AS 64496 Local: 192.0.2.5+1106 AS 64496 Type: Internal State: Established Flags: <> Last State: OpenConfirm Last Event: RecvKeepAlive Last Error: None Export: [ static ] Options:<Preference LocalAddress HoldTime GracefulRestart Damping PeerAS Refresh> Local Address: 192.0.2.5 Holdtime: 90 Preference: 170 IPSec SA Name: hope Number of flaps: 0 Peer ID: 192.0.2.10 Local ID: 192.0.2.5 Active Holdtime: 90 Keepalive Interval: 30 NLRI for restart configured on peer: inet-unicast NLRI advertised by peer: inet-unicast NLRI for this session: inet-unicast Peer supports Refresh capability (2) Restart time configured on the peer: 180 Stale routes from peer are kept for: 180 Restart time requested by this peer: 300 NLRI that peer supports restart for: inet-unicast NLRI that peer saved forwarding for: inet-unicast NLRI that restart is negotiated for: inet-unicast NLRI of received end-of-rib markers: inet-unicast NLRI of all end-of-rib markers sent: inet-unicast Table inet.0 Bit: 10000 RIB State: restart is complete Send state: in sync Active prefixes: 0 Received prefixes: 0 Suppressed due to damping: 0 Last traffic (seconds): Received 19 Sent 19 Checked 19 Input messages: Total 2 Updates 1 Refreshes 0 Octets 42 Output messages: Total 3 Updates 0 Refreshes 0 Octets 116 Output Queue[0]: 0
验证 IS-IS 和 OSPF 平滑重启
要查看 IS-IS 和 OSPF 的平稳重启信息,请配置 trace 选项(请参阅 跟踪平滑重启事件)。
以下是 OSPF 重启路由器的跟踪选项日志输出:
Oct 8 05:20:12 Restart mode - sending grace lsas Oct 8 05:20:12 Restart mode - estimated restart duration timer triggered Oct 8 05:20:13 Restart mode - Sending more grace lsas
以下是从 OSPF 帮助器路由器输出的追踪选项日志:
Oct 8 05:20:14 Helper mode for neighbor 192.0.2.5 Oct 8 05:20:14 Received multiple grace lsa from 192.0.2.5
验证 CCC 和 TCC 平滑重启
要查看 CCC 和 TCC 连接的正常重启信息,请使用 show connections
命令。以下示例假定 CE1 和 CE2 之间的四个远程接口 CCC 连接:
user@PE1> show connections CCC and TCC connections [Link Monitoring On] Legend for status (St) Legend for connection types UN -- uninitialized if-sw: interface switching NP -- not present rmt-if: remote interface switching WE -- wrong encapsulation lsp-sw: LSP switching DS -- disabled Dn -- down Legend for circuit types -> -- only outbound conn is up intf -- interface <- -- only inbound conn is up tlsp -- transmit LSP Up -- operational rlsp -- receive LSP RmtDn -- remote CCC down Restart -- restarting CCC Graceful restart : Restarting Connection/Circuit Type St Time last up # Up trans CE1-CE2-0 rmt-if Restart ----- 0 fe-1/1/0.0 intf Up PE1-PE2-0 tlsp Up PE2-PE1-0 rlsp Up CE1-CE2-1 rmt-if Restart ----- 0 fe-1/1/0.1 intf Up PE1-PE2-1 tlsp Up PE2-PE1-1 rlsp Up CE1-CE2-2 rmt-if Restart ----- 0 fe-1/1/0.2 intf Up PE1-PE2-2 tlsp Up PE2-PE1-2 rlsp Up CE1-CE2-3 rmt-if Restart ----- 0 fe-1/1/0.3 intf Up PE1-PE2-3 tlsp Up PE2-PE1-3 rlsp Up