华为交换机主备命令_华为交换机配置VRRP主备备份示例

本文详细描述了如何在SwitchA和SwitchB上配置VRRP,并展示了配置后的结果。SwitchA为主备状态,SwitchB为备份状态。同时,路由表对比揭示了直连路由和OSPF路由的差异。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

验证配置结果

# 完成上述配置以后,在SwitchA和SwitchB上分别执行display vrrp命令,可以看到SwitchA在备份组中的状态为Master,SwitchB在备份组中的状态为Backup。[SwitchA] display vrrp

Vlanif100 | Virtual Router 1    State : Master

Virtual IP : 10.1.1.111

Master IP : 10.1.1.1

PriorityRun : 120

PriorityConfig : 120

MasterPriority : 120

Preempt : YES   Delay Time : 20 s

TimerRun : 1 s

TimerConfig : 1 s

Auth type : NONE

Virtual MAC : 0000-5e00-0101

Check TTL : YES

Config type : normal-vrrp

Backup-forward : disabled

Create time : 2012-01-12 20:15:46

Last change time : 2012-01-12 20:15:46[SwitchB] display vrrp

Vlanif100 | Virtual Router 1    State : Backup

Virtual IP : 10.1.1.111

Master IP : 10.1.1.1

PriorityRun : 100

PriorityConfig : 100

MasterPriority : 120

Preempt : YES   Delay Time : 0 s

TimerRun : 1 s

TimerConfig : 1 s

Auth type : NONE

Virtual MAC : 0000-5e00-0101

Check TTL : YES

Config type : normal-vrrp

Backup-forward : disabled

Create time : 2012-01-12 20:15:46

Last change time : 2012-01-12 20:15:46

# 在SwitchA和SwitchB上执行display ip routing-table命令,SwitchA上可以看到路由表中有一条目的地址为虚拟IP地址的直连路由,而SwitchB上该路由为OSPF路由。SwitchA和SwitchB上的显示信息如下。[SwitchA] display ip routing-tableRoute Flags: R - relay, D - download to fib, T - to vpn-instance------------------------------------------------------------------------------

Routing Tables: Public

Destinations : 9       Routes : 10

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

10.1.1.0/24    Direct   0     0         D      10.1.1.1        Vlanif100

10.1.1.1/32    Direct   0     0         D      127.0.0.1       Vlanif100 10.1.1.111/32    Direct  0     0     D   127.0.0.1     Vlanif100

127.0.0.0/8    Direct   0    0          D      127.0.0.1       InLoopBack0

127.0.0.1/32    Direct   0    0          D      127.0.0.1       InLoopBack0

172.16.1.0/24    OSPF     10   2          D      192.168.1.2     Vlanif300

192.168.1.0/24    Direct   0    0          D      192.168.1.1     Vlanif300

192.168.1.1/32    Direct   0    0          D      127.0.0.1       Vlanif300

192.168.2.0/24    OSPF     10   2          D      10.1.1.2        Vlanif100

OSPF     10   2          D      192.168.1.2     Vlanif300[SwitchB] display ip routing-tableRoute Flags: R - relay, D - download to fib, T - to vpn-instance----------------

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值