示例:为 EVPN A/A 多宿主配置 LACP
此示例说明如何在以太网 VPN (EVPN) 主动-主动多宿主网络中的多宿主客户边缘 (客户边缘) 和提供商边缘 (PE) 设备上配置链路聚合控制协议 (LACP)。
要求
此示例使用以下硬件和软件组件:
-
四个 MX 系列 5G 通用路由平台,仅配备模块化端口集中器 (MPC) 灵活 PIC 集中器 (FPC),其中:
-
将两台路由器配置为连接到公共多宿主客户站点的 PE 设备。
-
将一台路由器配置为连接到单宿主客户站点的远程 PE 设备。
-
一台路由器被配置为核心提供商设备。
-
-
两款客户边缘设备,其中:
-
一个客户边缘设备与两个 PE 设备多宿主。
-
一个客户边缘设备单宿主到远程 PE 设备。
-
开始之前:
-
配置设备接口,并在 PE 设备的所有接口上启用 MPLS。
-
在核心提供商设备和 PE 设备之间配置 OSPF 或任何其他 IGP。
-
配置从 入口 PE 设备到远程出口 PE 设备的 MPLS 和标签交换路径 (LSP)。
-
在 PE 设备之间配置内部 BGP 会话。
注意:建议在 BGP 会话上配置双向转发检测 (BFD),以便更快地检测核心隔离并更好地融合。
概述
通过在多宿主 客户边缘-PE 链路的两个端点上配置 LACP,可以在 EVPN 主动-主动多宿主环境中实现额外的冗余级别。多宿主设备配置了聚合中继链路,其中客户边缘-PE 链路的链路聚合组 (LAG) 接口可以处于活动状态,也可以处于备用状态。当 LAG 接口处于活动状态时,数据流量将通过客户边缘-PE 链路进行传输。当 LAG 接口处于备用状态时,数据流量将被阻止,仅通过链路传输用于通信 LAG 接口状态的控制流量。
LAG 接口状态由 LACP 监控和操作,以确保多宿主 PE 设备与内核隔离时快速融合。当发生核心故障时,隔离的 PE 设备上可能会出现空路由。但是,由于客户边缘-PE链路对LACP的支持,在核心隔离时,多宿主PE设备的面向客户边缘的接口被设置为备用状态,从而阻止多宿主客户边缘设备之间的数据流量传输。核心从故障中恢复后,接口状态将从备用切换回活动状态。
EVPN A/A 多宿主对 LACP 的支持既适用于使用 MPLS 的 EVPN 也适用于支持 VXLAN 的 EVPN。
在客户边缘-PE 链路上配置 LACP 后,将按如下方式处理多宿主 PE 设备与核心的隔离:
-
当多宿主 PE 设备的 EVPN BGP 对等方为空时,PE 设备将与核心隔离。连接到隔离 PE 设备的客户边缘设备会收到隔离 PE 设备有关核心故障的通知。
-
了解核心故障后,数据流量不会从 客户边缘 设备转发到隔离的多宿主 PE 设备。相反,流量将转移到属于同一 LAG 的其他多宿主 PE 设备。这有助于防止隔离 PE 设备出现流量黑洞。
-
如果多宿主客户边缘设备使用 LAG 将流量负载平衡到多个活动多宿主 PE 设备,则 LACP 配置以及在所有多宿主 PE 设备上为该给定 LAG 配置的相同系统 ID 会触发到所有连接的多宿主客户边缘链路不同步的 LACP。
在多宿主设备上配置 LACP 时,请注意以下注意事项:
-
无论 UP/DOWN 操作状态如何,LAG 链路都可以在活动或备用状态下运行。
-
系统重新启动时,多宿主 PE 设备上的 LACP 链路处于活动状态。
-
当控制平面关闭或 BGP-EVPN 会话关闭时,系统会通知 LACP 为聚合端口运行多路复用器状态机,并将链路从活动状态移至备用状态。
-
除非接口在活动状态下运行且其操作状态也为开启,否则不会将其视为已启动。
-
EVPN A/A 多宿主上的 LACP 不支持以下功能:
-
以太网段标识符 (ESI) 值从 LACP 系统 ID 自动派生。
-
非 LAG 接口的冗余覆盖范围。
-
使用静态 LAG 实现核心隔离的冗余覆盖。
-
节点隔离。
-
使用 EVPN A/A 多宿主的 LACP 访问失败。
-
拓扑结构
图 1 展示了在多宿主 客户边缘 和 PE 设备上配置了 LACP 的 EVPN A/A 多宿主网络。设备 CE1 为单宿主,连接到远程 PE 设备 PE1。设备 PE2 和设备 PE3 连接到通用多宿主客户边缘 — CE2。设备 P 是所有 PE 设备(PE1、PE2 和 PE3)连接到的核心设备。
多宿主设备的端点(设备 CE2、设备 PE2 和设备 PE3)在客户边缘-PE 链路上配置了 LACP。
中的 LACP 支持
设备 PE3 的核心隔离处理方法如下:
-
在多宿主客户边缘-PE 链路上配置 LACP 后,LACP 配置和操作数据将在 LACP 对等方之间同步,以 LAG 形式运行。
LACP 对等方之间的同步随控制 PDU 的交换而发生,并且出于以下原因而需要:
-
确定以太网捆绑包中链路的状态:全活动或备用。
-
检测和处理在 PE 设备上配置 LACP 端口密钥时的客户边缘设备配置错误。
-
当 PE 设备上配置了 LACP 端口密钥时,检测和处理客户边缘设备之间的接线错误。
-
当 LACP 发言者无法收敛时,检测演员或伙伴流失并做出反应。
-
-
设备 PE2 和设备 PE3 与至少一个对等方建立 BGP 会话后,客户边缘-PE 链路的状态将被 LACP 设置为解封模式。
-
当发生核心故障,设备 PE2 的 BGP EVPN 对等方变为空时,设备 PE2 将与核心隔离。这可能会导致设备 PE2 上出现空路由。为防止这种情况,LACP 将面向设备 CE2 的设备 PE2 的 LAG 接口从活动状态更改为备用状态。
-
连接的多宿主 CE2 链路上的 LACP 将发送不同步通知,以阻止设备 CE2 与设备 PE2 之间的流量传输。
-
当控制平面恢复时,即设备 PE2 与其他 EVPN PE 建立 BGP 会话时,设备 PE2 的 LAG 接口将由 LACP 从备用切换回活动。
配置
CLI 快速配置
要快速配置此示例,请复制以下命令,将其粘贴到文本文件中,删除所有换行符,更改详细信息,以便与网络配置匹配,将命令复制并粘贴到层次结构级别的 [edit] CLI 中,然后从配置模式进入。commit
设备 CE1
set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 mac 00:00:00:00:00:01 set interfaces ge-0/0/0 unit 0 vlan-id 100 set interfaces ge-0/0/0 unit 0 family inet address 192.0.2.1/26 set interfaces lo0 unit 0 family inet address 10.255.255.8/32
设备 CE2
set chassis aggregated-devices ethernet device-count 1 set interfaces ge-0/0/0 gigether-options 802.3ad ae0 set interfaces ge-0/0/1 gigether-options 802.3ad ae0 set interfaces ae0 flexible-vlan-tagging set interfaces ae0 encapsulation flexible-ethernet-services set interfaces ae0 mac 00:00:00:00:00:03 set interfaces ae0 aggregated-ether-options lacp active set interfaces ae0 unit 0 vlan-id 100 set interfaces ae0 unit 0 family inet address 192.0.2.2/26 set interfaces lo0 unit 0 family inet address 10.255.255.9/32
设备 PE1
set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 encapsulation flexible-ethernet-services set interfaces ge-0/0/0 unit 0 encapsulation vlan-bridge set interfaces ge-0/0/0 unit 0 vlan-id 100 set interfaces ge-0/0/1 unit 0 family inet address 192.0.2.65/26 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.255.255.1/32 set routing-options router-id 10.255.255.1 set routing-options autonomous-system 65100 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols mpls interface ge-0/0/1.0 set protocols bgp local-address 10.255.255.1 set protocols bgp family inet unicast set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 10.255.255.1 set protocols bgp group ibgp family evpn signaling set protocols bgp group ibgp neighbor 10.255.255.2 set protocols bgp group ibgp neighbor 10.255.255.3 set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 set protocols ldp interface ge-0/0/1.0 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set routing-instances ALPHA instance-type evpn set routing-instances ALPHA vlan-id 100 set routing-instances ALPHA interface ge-0/0/0.0 set routing-instances ALPHA route-distinguisher 10.255.255.1:100 set routing-instances ALPHA vrf-target target:65100:100 set routing-instances ALPHA protocols evpn label-allocation per-instance set policy-options policy-statement load_balance then load-balance per-packet set routing-options forwarding-table export load_balance
设备 PE2
set chassis aggregated-devices ethernet device-count 1 set interfaces ge-0/0/0 unit 0 family inet address 172.16.0.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 gigether-options 802.3ad ae0 set interfaces ge-0/0/2 unit 0 family inet address 203.0.113.2/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls set interfaces ae0 vlan-tagging set interfaces ae0 encapsulation flexible-ethernet-services set interfaces ae0 esi 00:11:22:33:44:55:66:77:88:99 set interfaces ae0 esi all-active set interfaces ae0 aggregated-ether-options lacp active set interfaces ae0 aggregated-ether-options lacp system-id 00:01:02:03:04:05 set interfaces ae0 unit 0 encapsulation vlan-bridge set interfaces ae0 unit 0 vlan-id 100 set interfaces lo0 unit 0 family inet address 10.255.255.2/32 set routing-options router-id 10.255.255.2 set routing-options autonomous-system 65100 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp local-address 10.255.255.2 set protocols bgp family inet unicast set protocols bgp family l2vpn signaling set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 10.255.255.2 set protocols bgp group ibgp family evpn signaling set protocols bgp group ibgp neighbor 10.255.255.3 set protocols bgp group ibgp neighbor 10.255.255.1 set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set routing-instances ALPHA instance-type evpn set routing-instances ALPHA vlan-id 100 set routing-instances ALPHA interface ae0.0 set routing-instances ALPHA route-distinguisher 10.255.255.2:100 set routing-instances ALPHA vrf-target target:65100:100 set policy-options policy-statement load_balance then load-balance per-packet set routing-options forwarding-table export load_balance
设备 PE3
set chassis aggregated-devices ethernet device-count 1 set interfaces ge-0/0/0 gigether-options 802.3ad ae0 set interfaces ge-0/0/1 unit 0 family inet address 198.51.100.2/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls set interfaces ge-0/0/2 unit 0 family inet address 203.0.113.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls set interfaces ae0 vlan-tagging set interfaces ae0 encapsulation flexible-ethernet-services set interfaces ae0 esi 00:11:22:33:44:55:66:77:88:99 set interfaces ae0 esi all-active set interfaces ae0 aggregated-ether-options lacp active set interfaces ae0 aggregated-ether-options lacp system-id 00:01:02:03:04:05 set interfaces ae0 unit 0 encapsulation vlan-bridge set interfaces ae0 unit 0 vlan-id 100 set interfaces lo0 unit 0 family inet address 10.255.255.3/32 set routing-options router-id 10.255.255.3 set routing-options autonomous-system 65100 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp local-address 10.255.255.3 set protocols bgp family inet unicast set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 10.255.255.3 set protocols bgp group ibgp family evpn signaling set protocols bgp group ibgp neighbor 10.255.255.2 set protocols bgp group ibgp neighbor 10.255.255.1 set protocols bgp group l2vpn type internal set protocols bgp group l2vpn family l2vpn signaling set protocols bgp group l2vpn neighbor 10.255.255.4 set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set routing-instances ALPHA instance-type evpn set routing-instances ALPHA vlan-id 100 set routing-instances ALPHA interface ae0.0 set routing-instances ALPHA route-distinguisher 10.255.255.3:100 set routing-instances ALPHA vrf-target target:65100:100 set policy-options policy-statement load_balance then load-balance per-packet set routing-options forwarding-table export load_balance
设备 P
set interfaces ge-0/0/0 unit 0 family inet address 192.0.2.66/26 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 family inet address 172.16.0.1/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls set interfaces ge-0/0/2 unit 0 family inet address 198.51.100.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.255.255.4/32 set routing-options router-id 10.255.255.4 set routing-options autonomous-system 100 set protocols rsvp interface all aggregate set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set protocols mpls interface ge-0/0/2.0 set protocols bgp group l2vpn type internal set protocols bgp group l2vpn local-address 10.255.255.4 set protocols bgp group l2vpn family l2vpn signaling set protocols bgp group l2vpn neighbor 10.255.255.3 set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 set protocols ospf area 0.0.0.0 interface ge-0/0/2.0 set protocols ldp interface all set routing-instances vpls1 instance-type vpls set routing-instances vpls1 route-distinguisher 10.255.255.4:100 set routing-instances vpls1 vrf-target target:200:200 set routing-instances vpls1 protocols vpls no-tunnel-services set routing-instances vpls1 protocols vpls site vpls-pe site-identifier 3 set routing-instances vpls1 protocols vpls site vpls-pe best-site set policy-options policy-statement load_balance then load-balance per-packet set routing-options forwarding-table export load_balance
过程
分步程序
下面的示例要求您在各个配置层级中进行导航。有关导航 CLI 的信息,请参阅《CLI 用户指南》中的在配置模式下使用 CLI 编辑器。
要配置设备 PE2:
修改相应的接口名称、地址和其他参数后,对其他多宿主 PE 设备重复此过程。
-
指定要在设备 PE2 上创建的聚合以太网接口数量。
[edit chassis] user@PE2# set aggregated-devices ethernet device-count 1
-
配置分别连接到设备 P 和设备 PE3 的设备 PE2 接口。
[edit interfaces] user@PE2# set ge-0/0/0 unit 0 family inet address 172.16.0.2/24 user@PE2# set ge-0/0/0 unit 0 family iso user@PE2# set ge-0/0/0 unit 0 family mpls user@PE2# set ge-0/0/2 unit 0 family inet address 203.0.113.2/24 user@PE2# set ge-0/0/2 unit 0 family iso user@PE2# set ge-0/0/2 unit 0 family mpls
-
配置 ae0 聚合捆绑包中指向多宿主设备 CE2 的设备 PE2 接口。
[edit interfaces] user@PE2# set ge-0/0/1 gigether-options 802.3ad ae0 user@PE2# set ae0 vlan-tagging user@PE2# set ae0 encapsulation flexible-ethernet-services user@PE2# set ae0 unit 0 encapsulation vlan-bridge user@PE2# set ae0 unit 0 vlan-id 100
-
在聚合以太网接口上配置 A/A 多宿主。
[edit interfaces] user@PE2# set ae0 esi 00:11:22:33:44:55:66:77:88:99 user@PE2# set ae0 esi all-active
-
在设备 PE2 的客户边缘-PE 链路上配置 LACP。
[edit interfaces] user@PE2# set ae0 aggregated-ether-options lacp active user@PE2# set ae0 aggregated-ether-options lacp system-id 00:01:02:03:04:05
-
配置设备 PE2 的环路接口。
[edit interfaces] user@PE2# set lo0 unit 0 family inet address 10.255.255.2/32
-
为设备 PE2 配置路由器 ID 和自治系统编号。
[edit routing-options] user@PE2# set router-id 10.255.255.2 user@PE2# set autonomous-system 65100
-
在设备 PE2 的所有接口上配置 MPLS,管理接口除外。
[edit protocols] user@PE2# set mpls interface all user@PE2# set mpls interface fxp0.0 disable
-
为设备 PE1 配置内部 BGP 组,以便与其他 EVPN PE 设备对等。
[edit protocols] user@PE2# set bgp local-address 10.255.255.2 user@PE2# set bgp family inet unicast user@PE2# set bgp family l2vpn signaling user@PE2# set bgp group ibgp type internal user@PE2# set bgp group ibgp local-address 10.255.255.2 user@PE2# set bgp group ibgp family evpn signaling user@PE2# set bgp group ibgp neighbor 10.255.255.3 user@PE2# set bgp group ibgp neighbor 10.255.255.1
-
在设备 PE2 的所有接口上配置 OSPF 和 LDP,管理接口除外。
[edit protocols] user@PE2# set ospf area 0.0.0.0 interface all user@PE2# set ospf area 0.0.0.0 interface fxp0.0 disable user@PE2# set ospf area 0.0.0.0 interface lo0.0 passive user@PE2# set ldp interface all user@PE2# set ldp interface fxp0.0 disable user@PE2# set ldp interface lo0.0
-
在设备 PE2 上配置 EVPN 路由实例并分配路由实例参数。
[edit routing-instances] user@PE2# set ALPHA instance-type evpn user@PE2# set ALPHA vlan-id 100 user@PE2# set ALPHA interface ae0.0 user@PE2# set ALPHA route-distinguisher 10.255.255.2:100 user@PE2# set ALPHA vrf-target target:65100:100
-
创建并应用 ECMP 负载平衡策略。
[edit] user@PE2# set policy-options policy-statement load_balance then load-balance per-packet user@PE2# set routing-options forwarding-table export load_balance
结果
在配置模式下,输入 show chassis、 show interfaces、 show protocolsshow routing-options和show routing-instances命令以确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。
user@PE2# show chassis
aggregated-devices {
ethernet {
device-count 1;
}
}
user@PE2# show interfaces
ge-0/0/0 {
unit 0 {
family inet {
address 172.16.0.2/24;
}
family iso;
family mpls;
}
}
ge-0/0/1 {
gigether-options {
802.3ad ae0;
}
}
ge-0/0/2 {
unit 0 {
family inet {
address 203.0.113.2/24;
}
family iso;
family mpls;
}
}
ae0 {
vlan-tagging;
encapsulation flexible-ethernet-services;
esi {
00:11:22:33:44:55:66:77:88:99;
all-active;
}
aggregated-ether-options {
lacp {
active;
system-id 00:01:02:03:04:05;
}
}
unit 0 {
encapsulation vlan-bridge;
vlan-id 100;
}
}
lo0 {
unit 0 {
family inet {
address 10.255.255.2/32;
}
}
}
user@PE2# show routing-options
router-id 10.255.255.2;
autonomous-system 65100;
forwarding-table {
export load_balance;
}
}
user@PE2# show protocols
mpls {
interface all;
interface fxp0.0 {
disable;
}
}
bgp {
local-address 10.255.255.2;
family inet {
unicast;
}
family l2vpn {
signaling;
}
group ibgp {
type internal;
local-address 10.255.255.2;
family evpn {
signaling;
}
neighbor 10.255.255.3;
neighbor 10.255.255.1;
}
}
ospf {
area 0.0.0.0 {
interface all;
interface fxp0.0 {
disable;
}
interface lo0.0 {
passive;
}
}
}
ldp {
interface all;
interface fxp0.0 {
disable;
}
interface lo0.0;
}
user@PE2# show routing-instances
ALPHA {
instance-type evpn;
vlan-id 100;
interface ae0.0;
route-distinguisher 10.255.255.2:100;
vrf-target target:65100:100;
protocols {
evpn {
traceoptions {
file evpn-alpha.txt size 4294967295;
flag all;
}
}
}
}
user@PE2# show policy-options
then {
load-balance per-packet;
}
}
如果完成设备配置,请从配置模式进入。commit
过程
分步程序
下面的示例要求您在各个配置层级中进行导航。有关导航 CLI 的信息,请参阅《CLI 用户指南》中的在配置模式下使用 CLI 编辑器。
要配置设备 CE2:
修改相应的接口名称、地址和其他参数后,对其他多宿主客户边缘设备重复此过程。
-
指定要在设备 CE2 上创建的聚合以太网接口数量。
[edit chassis] user@CE2# set aggregated-devices ethernet device-count 1
-
配置 ae0 聚合捆绑包中指向设备 PE2 和设备 PE3 的设备 CE2 接口。
[edit interfaces] user@CE2# set ge-0/0/0 gigether-options 802.3ad ae0 user@CE2# set ge-0/0/1 gigether-options 802.3ad ae0 user@CE2# set ae0 flexible-vlan-tagging user@CE2# set ae0 encapsulation flexible-ethernet-services user@E2# set ae0 mac 00:00:00:00:00:03 user@E2# set ae0 unit 0 vlan-id 100 user@CE2# set ae0 unit 0 family inet address 192.0.2.2/26
-
在设备 CE2 上的客户边缘-PE 链路上配置 LACP。
[edit interfaces] user@CE2# set ae0 aggregated-ether-options lacp active
-
配置设备 CE2 的环路接口。
[edit interfaces] user@CE2# set interfaces lo0 unit 0 family inet address 10.255.255.9/32
结果
在配置模式下,输入 show chassis、 show interfaces、 show protocolsshow routing-options和show routing-instances命令以确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。
user@CE2# show chassis
aggregated-devices {
ethernet {
device-count 1;
}
}
user@CE2# show interfaces
ge-0/0/0 {
gigether-options {
802.3ad ae0;
}
}
ge-0/0/1 {
gigether-options {
802.3ad ae0;
}
}
ae0 {
flexible-vlan-tagging;
encapsulation flexible-ethernet-services;
mac 00:00:00:00:00:03;
aggregated-ether-options {
lacp {
active;
}
}
unit 0 {
vlan-id 100;
family inet {
address 192.0.2.2/26;
}
}
}
lo0 {
unit 0 {
family inet {
address 10.255.255.9/32;
}
}
}
如果完成设备配置,请从配置模式进入。commit
验证
确认配置工作正常。
验证 BGP 会话状态
目的
验证设备 PE2 是否已与其他 EVPN PE 设备建立 BGP 对等互连。
行动
在操作模式下,运行命令 show bgp summary 。
user@PE2> show bgp summary
Groups: 1 Peers: 2 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0
0 0 0 0 0 0
bgp.l2vpn.0
0 0 0 0 0 0
bgp.evpn.0
5 5 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.255.255.1 65100 6316 6333 0 0 1d 23:33:03 Establ
bgp.evpn.0: 1/1/1/0
ALPHA.evpn.0: 1/1/1/0
__default_evpn__.evpn.0: 0/0/0/0
10.255.255.3 65100 6318 6332 0 0 1d 23:32:56 Establ
bgp.evpn.0: 4/4/4/0
ALPHA.evpn.0: 3/3/3/0
__default_evpn__.evpn.0: 1/1/1/0
意义
设备 PE2 已与其他 EVPN PE 设备(设备 PE1 和设备 PE3)建立 BGP 对等关系。
验证多宿主 PE 设备的 LACP 接口状态
目的
验证设备 PE2 上的 LACP 接口状态。
行动
在操作模式下,运行和show lacp interfacesshow interfaces ae* terse命令。
user@PE2> show lacp interfaces
Aggregated interface: ae0
LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity
ge-0/0/1 Actor No No Yes Yes Yes Yes Fast Active
ge-0/0/1 Partner No No Yes Yes Yes Yes Fast Active
LACP protocol: Receive State Transmit State Mux State
ge-0/0/1 Current Fast periodic Collecting distributing
user@PE2> show interfaces ae* terse Interface Admin Link Proto Local Remote ae0 up up ae0.0 up up bridge ae0.32767 up up multiservice
意义
当与其他 EVPN PE 设备存在 BGP 对等互连时,LACP LAG 接口状态为活动状态。聚合以太网接口的物理接口状态为“已启动且可运行”。
验证隔离 PE 设备的 LACP 接口状态
目的
当未建立任何 BGP EVPN 对等方时,验证设备 PE2 的 LACP 接口状态。
行动
在操作模式下,运行和show lacp interfacesshow interfaces ae* terse命令。
user@PE2> show lacp interfaces
Aggregated interface: ae0
LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity
ge-0/0/1 Actor No No No No No Yes Fast Active
ge-0/0/1 Partner No No No No Yes Yes Fast Active
LACP protocol: Receive State Transmit State Mux State
ge-0/0/1 Current Fast periodic Waiting
user@PE2> show interfaces ae* terse Interface Admin Link Proto Local Remote ae0 up down ae0.0 up down bridge ae0.32767 up down multiservice
意义
由于核心隔离,LAG 接口状态处于待机状态,会阻止设备 CE2 的往来流量。因此,聚合以太网接口的物理接口状态也会关闭,直到核心故障恢复时 LACP 链路状态切换回活动状态。
验证 EVPN 路由实例
目的
验证设备 PE2 上的 EVPN 路由实例参数。
行动
在操作模式下,运行命令 show evpn instance extensive 。
user@PE2> show evpn instance extensive
Instance: ALPHA
Route Distinguisher: 10.255.255.2:100
VLAN ID: 100
Per-instance MAC route label: 299776
MAC database status Local Remote
MAC advertisements: 0 0
MAC+IP advertisements: 0 0
Default gateway MAC advertisements: 0 0
Number of local interfaces: 1 (1 up)
Interface name ESI Mode Status
ae0.0 00:11:22:33:44:55:66:77:88:99 all-active Up
Number of IRB interfaces: 0 (0 up)
Number of bridge domains: 1
VLAN Domain ID Intfs / up IRB intf Mode MAC sync IM route label
100 1 1 Extended Enabled 300048
Number of neighbors: 2
Address MAC MAC+IP AD IM ES
10.255.255.1 0 0 0 1 0
10.255.255.3 0 0 2 1 0
Number of ethernet segments: 1
ESI: 00:11:22:33:44:55:66:77:88:99
Status: Resolved by IFL ae0.0
Local interface: ae0.0, Status: Up/Forwarding
Number of remote PEs connected: 1
Remote PE MAC label Aliasing label Mode
10.255.255.3 0 299856 all-active
Designated forwarder: 10.255.255.2
Backup forwarder: 10.255.255.3
Last designated forwarder update: Nov 21 01:27:52
Advertised MAC label: 299856
Advertised aliasing label: 299856
Advertised split horizon label: 299968
Instance: __default_evpn__
Route Distinguisher: 10.255.255.2:0
Number of bridge domains: 0
Number of neighbors: 1
Address MAC MAC+IP AD IM ES
10.255.255.3 0 0 0 0 1
意义
输出提供以下信息:
-
EVPN 路由实例
-
各接口的运维模式
-
路由实例的邻居
-
从每个邻接方接收的不同路由数
-
连接到路由实例的 ESI
-
路由实例上的以太网分段数
-
EVPN 实例 (EVI) 中每个 ESI 的指定转发器 (DF) 选择角色
-
路由实例的 VLAN ID 和 MAC 标签