ip vpn-instance KeepaLived //配置keepalive实例
route-distinguisher 2:2
#
interface Route-Aggregation1024 //创建keepalive三层聚合口
description keepalive
link-aggregation mode dynamic
#
interface Twenty-FiveGigE1/0/53
port link-mode route
lacp period short //(可选配置,配置lacp为短超时)
port link-aggregation group 1024
#
interface Twenty-FiveGigE1/0/54
port link-mode route
lacp period short //(可选配置,配置lacp为短超时)
port link-aggregation group 1024
#
interface Route-Aggregation1024 //配置keepalive互联地址
ip binding vpn-instance KeepaLived
ip address 1.1.1.1 255.255.255.252
#
Peer-Link链路
interface Bridge-Aggregation1023 //配置peer-link
description IPL
link-aggregation mode dynamic
port drni intra-portal-port 1
#
interface HundredGigE1/0/29
port link-mode bridge
description IPL
lacp period short //(可选配置,配置lacp为短超时)
port link-aggregation group 1023
#
interface HundredGigE1/0/30
port link-mode bridge
description IPL
lacp period short //(可选配置,配置lacp为短超时)
port link-aggregation group 1023
#
interface Bridge-Aggregation1023 //配置peer-link
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan all
#
DRNI主配置
drni role priority 1 //值越小优先级越高,优先级高的为主设备
drni system-mac xxxx-xxxx-xxxx //DR设备的系统MAC地址必须相同,配置主交换机的桥MAC,通过disp device manuinfo查看
drni system-number 1 //DR 系统中不同 DR 设备的系统编号必须不同
drni system-priority 123 //DR 系统中所有 DR 设备的系统优先级必须相同
drni keepalive ip destination 1.1.1.2 source 1.1.1.1 vpn-instance KeepaLived
drni mad exclude interface Route-Aggregation1024 //配置Keepalive链路接口为保留接口
drni restore-delay 180 //配置延迟恢复时间,从设备加入DR系统时进行 MAC 地址表项等信息同步的最大时间
备设备配置如下
Keepalive链路
ip vpn-instance KeepaLived //配置keepalive实例
route-distinguisher 2:2
#
interface Route-Aggregation1024 //创建keepalive三层聚合口
description keepalive
link-aggregation mode dynamic
#
interface Twenty-FiveGigE1/0/53
port link-mode route
lacp period short //(可选配置,配置lacp为短超时)
port link-aggregation group 1024
#
interface Twenty-FiveGigE1/0/54
port link-mode route
lacp period short //(可选配置,配置lacp为短超时)
port link-aggregation group 1024
#
interface Route-Aggregation1024 //配置keepalive互联地址
ip binding vpn-instance KeepaLived
ip address 1.1.1.2 255.255.255.252
#
Peer-Link链路
interface Bridge-Aggregation1023 //配置peer-link
description IPL
link-aggregation mode dynamic
port drni intra-portal-port 1
#
interface HundredGigE1/0/29
port link-mode bridge
description IPL
lacp period short //(可选配置,配置lacp为短超时)
port link-aggregation group 1023
#
interface HundredGigE1/0/30
port link-mode bridge
description IPL
lacp period short //(可选配置,配置lacp为短超时)
port link-aggregation group 1023
#
interface Bridge-Aggregation1023 //配置peer-link
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan all
#
DRNI备配置
drni role priority 10 //值越小优先级越高,优先级高的为主设备
drni system-mac xxxx-xxxx-xxxx //DR设备的系统MAC地址必须相同,配置主交换机的桥MAC,disp device manuinfo查看
drni system-number 2 //DR 系统中不同 DR 设备的系统编号必须不同
drni system-priority 123 //DR 系统中所有 DR 设备的系统优先级必须相同
drni keepalive ip destination 1.1.1.1 source 1.1.1.2 vpn-instance KeepaLived
drni mad exclude interface Route-Aggregation1024 //配置Keepalive链路接口为保留接口
drni restore-delay 180 //配置延迟恢复时间,从设备加入DR系统时进行 MAC 地址表项等信息同步的最大时间
#
DRNI业务口配置
interface Bridge-Aggregation 11 //创建聚合组
link-aggregation mode dynamic //聚合组模式为动态
port drni group 11 //drni
#
interface Twenty-FiveGigE 1/0/1
port link-aggregation group 11 //加入聚合组
#
interface Bridge-Aggregation 11
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan xxxx
#