命令 | 用途 |
R1 (config) # ip 路由 R1 (config) # ip vrrp |
使用 ip 路由命令启用交换机上的路由,并使用 ip vrrp 命令启用交换机上的 VRRP 路由协议。 |
R1 (config) # interface vlan 10 R1 (config-vlan10) # ip address 10.10.10.2/24 |
输入所选 VLAN 接口并分配 IP 地址。 |
R1 (config-vlan10) # vrrp 1 | 设置组的 VRID。 |
R1 (config-vlan10) # vrrp 1 10.10.10。1 | 为VRRP路由器设置虚拟IP地址。 |
R1 (config-if-vlan10) # vrrp 1 mode R1 (config-if-vlan10) # vrrp 1 priority 20 |
使用 vrrp 1 模式命令激活 VRRP 路由器。 使用 vrrp 1 优先级命令为主选举设置优先级。 范围1-254. |
命令 | 用途 |
R2 (config) # ip 路由 R2 (config) # ip vrrp |
使用 ip 路由命令启用交换机上的路由,并使用 ip vrrp 命令启用交换机上的 VRRP 路由协议。 |
R2 (config) # interface vlan 10 R2 (config-vlan10) # ip address 10.10.10.3/24 |
输入所选 VLAN 接口并分配 IP 地址。 |
R2 (config — if-vlan10) # vrrp 1 | 设置组的 VRID。 |
R2 (config-vlan10) # vrrp 1 10.10.10。1 | 为VRRP路由器设置虚拟IP地址。 |
R2 (config-if-vlan10) # vrrp 1 mode R2 (config-if-vlan10) # vrrp 1 priority 200 |
使用 vrrp 1 模式命令激活 VRRP 路由器。 使用 vrrp 1 优先级命令为主选举设置优先级。 范围1-254. |