show vrrp
语法
show vrrp <brief | detail | extensive | summary> <interface interface-name <group number>> <logical-system logical-system-name > <nsr>
描述
显示有关虚拟路由器冗余协议 (VRRP) 组的状态信息。
选项
none | (与 |
brief | detail | extensive | summary |
(可选)显示指定的输出级别。 |
interface interface-name <group number> |
(可选)显示有关指定 VRRP 接口的信息和状态,还可以选择显示组号。 |
logical-system logical-system-name |
(可选)在特定逻辑系统上执行此操作。 |
nsr |
(可选)配置了具有不间断活动路由 (NSR) 的平稳路由引擎切换 (GRES) 时,显示状态复制信息。仅在备份路由引擎上使用。 |
所需权限级别
视图
输出字段
表 1 列出了命令 show vrrp
的输出字段。输出字段按其出现的大致顺序列出
字段名称 |
字段说明 |
输出级别 |
---|---|---|
|
逻辑接口的名称。 |
|
|
物理接口索引号,反映其初始化顺序。 |
|
|
接口上配置的 VRRP 组总数。 |
|
|
处于活动状态(即接口状态为“打开”或“关闭”)的 VRRP 组总数。 |
|
|
逻辑接口的非错误统计信息:
|
|
|
逻辑接口的错误统计信息:
|
|
|
物理接口的名称。 |
|
|
逻辑单元号。 |
所有级别 |
|
物理接口的地址。 |
|
|
物理接口索引号,反映其初始化顺序。 |
|
|
物理接口的 SNMP 索引号。 |
|
|
VRRP 疏水阀的状态: |
|
|
VRRP 版本: |
|
|
地址和地址本身的标识符:
|
|
|
物理接口的状态:
|
|
|
VRRP 组编号。 |
|
|
运行 VRRP 的接口的状态:
|
|
|
接口是否从活动 VRRP 组继承其状态和配置,或者接口是活动 VRRP 组的一部分。
|
|
|
为接口配置 VRRP 优先级。 |
|
|
配置的 VRRP 通告间隔。 |
|
|
配置的 VRRP 身份验证类型: |
|
|
一个介于 1 到 15 之间的值,用于设置对等方应被视为关闭的时间。
|
|
|
每秒生成多少个协议数据单元 (PDU)。 基于实例数和播发间隔。 |
|
|
接口上是否允许抢占: |
|
|
接口是否配置为接受发往虚拟 IP 地址的数据包: |
|
|
接口上已配置的虚拟 IP 地址数。 |
|
|
接口上配置的虚拟 IP 地址列表。 |
|
|
距离播发计时器过期还有多长时间(以秒为单位)。 |
|
|
充当主接口的 IP 地址。如果 VRRP 接口关闭,则输出为 |
|
|
虚拟路由器已启动多长时间(以秒为单位)。 |
|
|
主路由已启动多长时间(以秒为单位)。 |
|
|
与虚拟 IP 地址关联的 MAC 地址。 |
|
|
无论跟踪是 |
|
|
作为 VRRP 主要业务的当前操作优先级。 |
|
|
配置为 VRRP 主数据库的基本优先级。 |
|
|
连续更改当前优先级之间的最小时间间隔(以秒为单位)。 |
|
|
|
详细 |
|
接口跟踪是启用还是禁用。启用后,输出还显示跟踪的接口数。 |
|
|
被跟踪接口的名称。 |
|
|
所跟踪接口的当前运行状态: |
|
|
所跟踪接口的当前操作速度(以位/秒为单位)。 |
|
|
由于此跟踪接口的状态和速度而产生的操作优先级成本。此开销应用于配置的优先级以获取当前优先级。 |
|
|
速度,低于此速度将产生相应的优先级成本。换句话说,当接口的速度降至阈值速度以下时,会产生相应的优先级成本。 输入 表示 |
|
|
是启用还是禁用路由跟踪。启用后,输出还显示跟踪的路由数。 |
|
|
正在跟踪的路由数。 |
|
|
正在跟踪的路由的 IP 地址。 |
|
|
跟踪的路由所在的 VPN 路由和转发 (VRF) 路由实例。 |
|
|
正在跟踪的路由的状态: |
|
|
配置的优先级成本。当接口速度降至相应阈值以下或跟踪的路由下降时,将产生此值。 |
|
|
阈值是否处于活动状态 (*)。如果阈值处于活动状态,则会产生相应的优先级成本。 |
|
|
组发送和接收的 VRRP 通告数。 |
|
|
VRRP 组的错误统计信息:
|
|
|
VRRP 组的状态转换统计信息:
|
|
|
VRRP 的状态:
注意:
在备份路由引擎上使用 show vrrp nsr 时,它会显示主路由引擎上的当前 VRRP 状态,即备份路由引擎的未来 VRRP 状态。请勿在主路由引擎上使用。 |
|
|
为配置的 VRRP 组启用了 VRRP 不间断活动路由:
注意:
值表示 值表示
|
|
|
路由选项已设置为不间断活动路由: |
|
|
VRRP 计时器信息:
|
|
示例输出
- 显示VRRP
- 显示 VRRP 简介
- 显示 VRRP 详细信息 (IPv6)
- 显示 VRRP 详细信息(路由轨迹)
- 显示 VRRP 详细信息(路由轨迹)
- 显示 VRRP 广泛
- 显示 VRRP 接口
- 显示 VRRP NSR
- 显示 VRRP 摘要
显示VRRP
user@host> show vrrp Interface State Group VR state Timer Type Address fe-0/0/0.121 up 1 master A 1.052 lcl fec0::12:1:1:1 vip fe80::12:1:1:99 vip fec0::12:1:1:99 fe-0/0/2.131 up 1 master A 0.364 lcl fec0::13:1:1:1 vip fe80::13:1:1:99 vip fec0::13:1:1:99
显示 VRRP 简介
命令的输出与命令的show vrrp brief
show vrrp
输出相同。有关示例输出,请参阅显示 vrrp。
显示 VRRP 详细信息 (IPv6)
user@host> show vrrp detail Physical interface: fe-0/0/0, Unit: 121, Vlan-id: 212, Address: fec0::12:1:1:1/120 Index: 67, SNMP ifIndex: 45, VRRP-Traps: enabled Interface state: up, Group: 1, State: master, VRRP Mode: Active Priority: 200, Advertisement interval: 1, Authentication type: none Advertisement threshold: 3, Computed send rate: 0 Preempt: yes, Accept-data mode: no, VIP count: 2, VIP: fe80::12:1:1:99, fec0::12:1:1:99 Advertisement timer: 1.121s, Master router: fe80::12:1:1:1 Virtual router uptime: 00:03:47, Master router uptime: 00:03:41 Virtual MAC: 00:00:5e:00:02:01 Tracking: disabled Physical interface: fe-0/0/2, Unit: 131, Vlan-id: 213, Address: fec0::13:1:1:1/120 Index: 69, SNMP ifIndex: 47, VRRP-Traps: enabled Interface state: up, Group: 1, State: master Priority: 200, Advertisement interval: 1, Authentication type: none Preempt: yes, Accept-data mode: no, VIP count: 2, VIP: fe80::13:1:1:99, fec0::13:1:1:99 Advertisement timer: 0.327s, Master router: fe80::13:1:1:1 Virtual router uptime: 00:03:47, Master router uptime: 00:03:41 Virtual MAC: 00:00:5e:00:02:01 Tracking: disabled
显示 VRRP 详细信息(路由轨迹)
user@host> show vrrp detail Physical interface: ge-0/0/0, Unit: 1, Vlan-id: 1, Address: 101.1.1.1/24 Index: 324, SNMP ifIndex: 623, VRRP-Traps: enabled, VRRP-Version: 2 Interface state: up, Group: 1, State: master(ISSU), VRRP Mode: Active Priority: 200, Advertisement interval: 1, Authentication type: none Advertisement threshold: 3, Computed send rate: 0 Preempt: yes, Accept-data mode: no, VIP count: 1, VIP: 101.1.1.3 Advertisement Timer: 0.469s, Master router: 101.1.1.1 Virtual router uptime: 00:02:10, Master router uptime: 00:02:05 Virtual Mac: 00:00:5e:00:01:01 Tracking: disabled
显示 VRRP 详细信息(路由轨迹)
user@host> show vrrp detail Physical interface: ge-1/2/0, Unit: 0, Address: 30.30.30.30/24 Index: 67, SNMP ifIndex: 379, VRRP-Traps: enabled, VRRP-Version: 2 Interface state: up, Group: 100, State: master Priority: 150, Advertisement interval: 1, Authentication type: none Preempt: yes, Accept-data mode: no, VIP count: 1, VIP: 30.30.30.100 Advertisement timer: 1.218s, Master router: 30.30.30.30 Virtual router uptime: 00:04:28, Master router uptime: 00:00:13 Virtual MAC: 00:00:5e:00:01:64 Tracking: enabled Current priority: 150, Configured priority: 150 Priority hold-time: disabled Interface tracking: disabled Route tracking: enabled, Route count: 1 Route VRF name Route state Priority cost 192.168.40.0/22 default up 30
显示 VRRP 广泛
user@host> show vrrp extensive Interface: ge-2/0/0.0, Interface index :65539, Groups: 1, Active :1 Interface VRRP PDU statistics Advertisement sent :0 Advertisement received :0 Packets received :0 No group match received :0 Interface VRRP PDU error statistics Invalid IPAH next type received :0 Invalid VRRP TTL value received :0 Invalid VRRP version received :0 Invalid VRRP PDU type received :0 Invalid VRRP authentication type received:0 Invalid VRRP IP count received :0 Invalid VRRP checksum received :0 Physical interface: ge-2/0/0, Unit: 0, Address: 10.10.10.1/24 Index: 65539, SNMP ifIndex: 648, VRRP-Traps: enabled, VRRP-Version: 3 Interface state: up, Group: 1, State: backup, VRRP Mode: Active Priority: 100, Advertisement interval: 1, Authentication type: none Advertisement threshold: 3, Computed send rate: 0 Preempt: yes, Accept-data mode: no, VIP count: 1, VIP: 10.10.10.2 Dead timer: 3.078s, Master priority: 0, Master router: 10.10.10.1 Virtual router uptime: 00:00:04 Tracking: disabled Group VRRP PDU statistics Advertisement sent :0 Advertisement received :0 Group VRRP PDU error statistics Bad authentication Type received :0 Bad password received :0 Bad MD5 digest received :0 Bad advertisement timer received :0 Bad VIP count received :0 Bad VIPADDR received :0 Group state transition statistics Idle to master transitions :0 Idle to backup transitions :1 Backup to master transitions :0 Master to backup transitions :0
显示 VRRP 接口
user@host> show vrrp interface ge-0/0/0.1 Interface: ge-0/0/0.1, Interface index :324, Groups: 2, Active :2 Interface VRRP PDU statistics Advertisement sent :39 Advertisement received :0 Packets received :0 No group match received :0 Interface VRRP PDU error statistics Invalid IPAH next type received :0 Invalid VRRP TTL value received :0 Invalid VRRP version received :0 Invalid VRRP PDU type received :0 Invalid VRRP authentication type received:0 Invalid VRRP IP count received :0 Invalid VRRP checksum received :0 Physical interface: ge-0/0/0, Unit: 1, Vlan-id: 1, Address: 101.1.1.1/24 Index: 324, SNMP ifIndex: 623, VRRP-Traps: enabled, VRRP-Version: 2 Interface state: up, Group: 1, State: master(ISSU), VRRP Mode: Active Advertisement threshold: 3, Computed send rate: 0 Priority: 200, Advertisement interval: 1, Authentication type: none Advertisement threshold: 3, Computed send rate: 0 Preempt: yes, Accept-data mode: no, VIP count: 1, VIP: 101.1.1.3 Advertisement Timer: 0.619s, Master router: 101.1.1.1 Virtual router uptime: 00:00:22, Master router uptime: 00:00:17 Virtual Mac: 00:00:5e:00:01:01 Tracking: disabled Group VRRP PDU statistics Advertisement sent :20 Advertisement received :0 Group VRRP PDU error statistics Bad authentication Type received :0 Bad password received :0 Bad MD5 digest received :0 Bad advertisement timer received :0 Bad VIP count received :0 Bad VIPADDR received :0 Group state transition statistics Idle to master transitions :0 Idle to backup transitions :1 Backup to master transitions :1 Master to backup transitions :0 Interface: fe-0/0/0.121, Interface index: 67, Groups: 1, Active : 1 Interface VRRP PDU statistics Advertisement sent : 205 Advertisement received : 0 Packets received : 0 No group match received : 0 Interface VRRP PDU error statistics Invalid IPAH next type received : 0 Invalid VRRP TTL value received : 0 Invalid VRRP version received : 0 Invalid VRRP PDU type received : 0 Invalid VRRP authentication type received: 0 Invalid VRRP IP count received : 0 Invalid VRRP checksum received : 0
显示 VRRP NSR
此命令类似于 show vrrp
。此处,该 VR state 列显示主路由引擎上的当前 VRRP 状态,即备份路由引擎的未来 VRRP 状态。请勿在主路由引擎上使用。
如果为配置的 VRRP 组启用了 VRRP 不间断活动路由,则 NSR 为“是”。
如果路由选项已设置为不间断活动路由,则 RPD-NSR 为“是”。
user@host>show vrrp nsr Interface State Group VR state VR Mode Type NSR RPD-NSR Address ge-1/0/1.0 up 1 master Active lcl yes yes 10.0.0.1 vip 10.0.0.3 ge-1/0/1.0 up 2 master Active lcl yes yes 20.0.0.1 vip 20.0.0.3 ge-1/0/1.0 up 3 master Active lcl yes yes 30.0.0.1 vip 30.0.0.3 ge-1/0/1.0 up 4 master Active lcl yes yes 40.0.0.1 vip 40.0.0.3 ge-1/0/1.0 up 5 master Active lcl yes yes 50.0.0.1 vip 50.0.0.3 ge-1/0/1.0 up 1 master Active lcl yes yes 1000::1 vip fe80::200:5eff:fe00:1 vip 1000::3 ge-1/0/1.0 up 2 master Active lcl yes yes 2000::1 vip fe80::200:5eff:fe00:2 vip 2000::3 ge-1/0/1.0 up 3 master Active lcl yes yes 3000::1 vip fe80::200:5eff:fe00:3 vip 3000::3 ge-1/0/1.0 up 4 master Active lcl yes yes 4000::1 vip fe80::200:5eff:fe00:4 vip 4000::3 ge-1/0/1.0 up 5 master Active lcl yes yes 5000::1 vip fe80::200:5eff:fe00:5 vip 5000::3
显示 VRRP 摘要
user@host> show vrrp summary Interface State Group VR state Type Address ge-4/2/0.0 up 1 backup lcl 10.57.0.2 vip 10.57.0.100
发布信息
在 Junos OS 7.4 版之前引入的命令。
nsr
Junos OS 13.2 版中添加了选项。