4.利用VRRPv2和VRRPv3技术实现Vlan60、Vlan70、Vlan80、Vlan90网关冗余备份,VRRP ID与Vlan ID相同。VRRPv2 vip为10.10.VlanID.9(如Vlan60的VRRPv2 vip为10.10.60.9),VRRPv3 vip为FE80:VlanID::9(如Vlan60的VRRPv3 vip为FE80:60::9)。配置SW1为Vlan60、Vlan70的Master,SW2为Vlan80、Vlan90的Master。要求VRRP组中高优先级为120,低优先级为默认值,抢占模式为默认值,VRRPv2和VRRPv3发送通告报文时间间隔为默认值。当SW1或SW2上联链路发生故障,Master优先级降低30
时间: 2024-02-06 07:09:01 浏览: 184
以下是配置步骤:
1. 配置Vlan60、Vlan70、Vlan80、Vlan90,并为每个Vlan分配一个IP地址作为VRRPv2的虚拟IP地址和VRRPv3的虚拟IP地址。
```
interface Vlan60
ip address 10.10.60.1 255.255.255.0
ipv6 enable
ipv6 address FE80:60::1/64
!
interface Vlan70
ip address 10.10.70.1 255.255.255.0
ipv6 enable
ipv6 address FE80:70::1/64
!
interface Vlan80
ip address 10.10.80.1 255.255.255.0
ipv6 enable
ipv6 address FE80:80::1/64
!
interface Vlan90
ip address 10.10.90.1 255.255.255.0
ipv6 enable
ipv6 address FE80:90::1/64
```
2. 配置VRRPv2和VRRPv3,其中VRRP ID与Vlan ID相同。在SW1上为Vlan60和Vlan70配置Master,优先级为120,其他默认值;在SW2上为Vlan80和Vlan90配置Master,优先级为120,其他默认值。
```
interface Vlan60
vrrp vrid 60
priority 120
virtual-ip-address 10.10.60.9
vrrp vrid 60 ipv6
priority 120
virtual-link-local FE80:60::9
!
interface Vlan70
vrrp vrid 70
priority 120
virtual-ip-address 10.10.70.9
vrrp vrid 70 ipv6
priority 120
virtual-link-local FE80:70::9
!
interface Vlan80
vrrp vrid 80
priority 120
virtual-ip-address 10.10.80.9
vrrp vrid 80 ipv6
priority 120
virtual-link-local FE80:80::9
!
interface Vlan90
vrrp vrid 90
priority 120
virtual-ip-address 10.10.90.9
vrrp vrid 90 ipv6
priority 120
virtual-link-local FE80:90::9
```
3. 配置优先级降低30的触发条件。在SW1和SW2上配置跨链路优先级降低30的触发条件,当上联链路发生故障时触发。
```
interface GigabitEthernet1/0/1
vrrp vrid 60 track GigabitEthernet1/0/2 decrement 30
vrrp vrid 60 ipv6 track GigabitEthernet1/0/2 decrement 30
vrrp vrid 70 track GigabitEthernet1/0/2 decrement 30
vrrp vrid 70 ipv6 track GigabitEthernet1/0/2 decrement 30
!
interface GigabitEthernet1/0/2
vrrp vrid 80 track GigabitEthernet1/0/1 decrement 30
vrrp vrid 80 ipv6 track GigabitEthernet1/0/1 decrement 30
vrrp vrid 90 track GigabitEthernet1/0/1 decrement 30
vrrp vrid 90 ipv6 track GigabitEthernet1/0/1 decrement 30
```
以上是配置步骤,可以根据实际情况进行调整。
阅读全文