组网如图所示
两台SR88设备做IPV6的VRRP,该如何配置?
SR88-L的配置:
ipv6
[SR88-L]int g 4/1/9
[SR88-L-GigabitEthernet4/1/9]dis this
#
interface GigabitEthernet4/1/9
port link-mode bridge
port access vlan 100
[SR88-L-Vlan-interface100]dis this
#
interface Vlan-interface100
undo ipv6 nd ra halt
ip binding vpn-instance vpn-1
ipv6 address 1::2/64
ipv6 address FE80::1 link-local
ip address 172.18.1.2 255.255.255.0
vrrp vrid 1 virtual-ip 172.18.1.10
vrrp ipv6 vrid 1 virtual-ip FE80::10 link-local
vrrp ipv6 vrid 1 virtual-ip 1::10
vrrp ipv6 vrid 1 priority 150
[SR88-L-vpn-instance-vpn-1]dis this
#
ip vpn-instance vpn-1
route-distinguisher 65535:1
vpn-target 65535:1 export-extcommunity
vpn-target 65535:1 import-extcommunity
SR88-R的配置:
ipv6
[SR88-R-Vlan-interface100]dis this
#
interface Vlan-interface100
undo ipv6 nd ra halt
ip binding vpn-instance vpn-1
ipv6 address 1::3/64
ipv6 address FE80::2 link-local
ip address 172.18.1.3 255.255.255.0
vrrp vrid 1 virtual-ip 172.18.1.10
vrrp vrid 1 priority 200
vrrp ipv6 vrid 1 virtual-ip FE80::10 link-local
vrrp ipv6 vrid 1 virtual-ip 1::10
vrrp ipv6 vrid 1 priority 200
[SR88-R-GigabitEthernet3/1/7]dis this
#
interface GigabitEthernet3/1/7
port link-mode bridge
port access vlan 100
[SR88-R-vpn-instance-vpn-1]dis this
#
ip vpn-instance vpn-1
route-distinguisher 65535:1
vpn-target 65535:1 export-extcommunity
vpn-target 65535:1 import-extcommunity
PC的配置:
[Int g 5/1/11]
port link-mode bridge
port access vlan 100
[PC-Vlan-interface100]dis this
#
interface Vlan-interface100
ip address 172.18.1.5 255.255.255.0
ipv6 address FE80::3 link-local
ipv6 address 1::5/64
查看VRRP状态正常
[SR88-L]dis vrrp ipv6 verbose
IPv6 Standby Information:
Run Mode : Standard
Run Method : Virtual MAC
Total number of virtual routers : 1
Interface Vlan-interface100
VRID : 1 Adver Timer : 100
Admin Status : Up State : Backup
Config Pri : 150 Running Pri : 150
Preempt Mode : Yes Delay Time : 0
Become Master : 3000ms left
Auth Type : None
Virtual IP : FE80::10
1::10
Master IP : FE80::2
[SR88-R]dis vrrp ipv6 verbose
IPv6 Standby Information:
Run Mode : Standard
Run Method : Virtual MAC
Total number of virtual routers : 1
Interface Vlan-interface100
VRID : 1 Adver Timer : 100
Admin Status : Up State : Master
Config Pri : 200 Running Pri : 200
Preempt Mode : Yes Delay Time : 0
Auth Type : None
Virtual IP : FE80::10
1::10
Virtual MAC : 0000-5e00-0201
Master IP : FE80::2
更改一边的优先级,主备可以切换,主备设备均可以ping通虚地址,两边互ping可通。
[SR88-L-Vlan-interface100] vrrp ipv6 vrid 1 priority 220
[SR88-L-Vlan-interface100]
%Oct 4 05:04:23:947 2020 SR88-L VRRP/6/VRRP_PRIORITY_CHANGE: The run priority of IPv6 virtual router 1 (configured on Vlan-interface100) changed from 150 to 220: Config.
%Oct 4 05:04:24:726 2020 SR88-L VRRP/6/VRRP_STATUS_CHANGE: The status of IPv6 virtual router 1 (configured on Vlan-interface100) changed from Backup to Master: Timer expired.
[SR88-L]dis vrrp ipv6 verbose
IPv6 Standby Information:
Run Mode : Standard
Run Method : Virtual MAC
Total number of virtual routers : 1
Interface Vlan-interface100
VRID : 1 Adver Timer : 100
Admin Status : Up State : Master
Config Pri : 220 Running Pri : 220
Preempt Mode : Yes Delay Time : 0
Auth Type : None
Virtual IP : FE80::10
1::10
Virtual MAC : 0000-5e00-0201
Master IP : FE80::1
[SR88-R]dis vrrp ipv6 verbose
IPv6 Standby Information:
Run Mode : Standard
Run Method : Virtual MAC
Total number of virtual routers : 1
Interface Vlan-interface100
VRID : 1 Adver Timer : 100
Admin Status : Up State : Backup
Config Pri : 200 Running Pri : 200
Preempt Mode : Yes Delay Time : 0
Become Master : 2550ms left
Auth Type : None
Virtual IP : FE80::10
1::10
Master IP : FE80::1
备注:只有-II和spc板才支持IPV6 VPN。SPE-1010-II SPC-GP24L均可以。
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作