配置E-Trunk接入VPLS示例
从典型的应用场景描述了CE通过Eth-Trunk双归到PE,在PE上部署E-Trunk,实现可靠性从单板级提高到设备级。
组网需求
Eth-Trunk技术提升了单台设备的可靠性,但是一旦设备故障,Eth-Trunk就无法发挥作用。
为了进一步提升网络可靠性,可以采用设备冗余的方式。一台作为主用设备,一台作为备用设备。当主用设备发生链路或设备故障时,备用设备可以接替主用设备继续转发用户业务。这样就出现了一台设备双归接入主备两台设备的情况,由此也面临了设备间的链路可靠性问题。
在双归组网中,设备级可靠性可采用VRRP(Virtual Router Redundancy Protocol)技术,链路级可靠性可采用Eth-Trunk技术,但是在某些情况下两者无法同步切换到备用设备和备用链路上,导致数据流量中断。此时,可使用E-Trunk实现链路级可靠性和设备级可靠性。
如图4-12所示,CE分别通过静态LACP模式的Eth-Trunk双归接入VPLS(Virtual Private LAN Service)网络。为了保证业务不中断,此时,可在PE1与PE2设备上部署E-Trunk,PE1为主设备,PE2为备设备。当PE1故障或PE1连接CE的链路故障,使CE到PE1的流量切换到PE2上,通过PE2与VPLS网络远端设备继续通信。当CE与PE1之间的Eth-Trunk故障恢复或者PE1设备故障恢复,流量重新切换到PE1上。E-Trunk在PE1与PE2之间实现备份,提高网络可靠性。
配置思路
采用如下的思路配置E-Trunk接入VPLS:
分别在PE1、PE2上配置VPLS,实现用户通过VPLS网络通信。
分别在PE1、PE2上配置路由协议,保证网络三层互通。
本示例以OSPF为例。
分别在PE1、PE2上配置MPLS(Multiprotocol Label Switching)基本能力和MPLS LDP,建立LDP LSP。
分别在PE1、PE2上使能MPLS L2VPN,实现MPLS网络透明传输用户报文。
分别在PE1、PE2上创建并配置VSI(Virtual Switching Instance),并将VSI与AC侧子接口进行绑定,实现子接口接入VPLS。
分别在CE、PE上创建静态LACP模式Eth-Trunk并加入成员口,实现二层转发并提高链路级可靠性。
分别在PE1、PE2上配置E-Trunk,提高设备级可靠性。
分别在PE1和PE2上创建E-Trunk,将静态LACP模式的Eth-Trunk加入到指定E-Trunk中,提高设备级可靠性。
分别在PE1和PE2上将E-Trunk绑定BFD会话,实现PE1、PE2之间的链路快速故障检测。
- 配置E-Trunk参数,保证E-Trunk的可靠通信。
E-Trunk成员口Eth-Trunk接口的LACP系统ID和LACP优先级。
E-Trunk的优先级。
E-Trunk的Hello报文发送周期。
E-Trunk检测Hello报文的时间倍数。
E-Trunk的描述信息。
数据准备
为完成此配置举例,需准备如下的数据:
各个PE上的VSI ID(必须一致)。
各个PE上的MPLS LSR-ID。
PE1和PE2上的VSI名称。
绑定VSI的接口。
Eth-Trunk接口ID。
本端和对端的IP地址。
E-Trunk成员口Eth-Trunk接口的LACP系统ID和LACP优先级。
E-Trunk的优先级。
Hello报文发送周期和检测Hello报文的时间倍数。
操作步骤
- 配置VPLS
在PE1、PE2上配置OSPF协议。
# 按图4-12配置PE各个接口地址。配置OSPF时,注意需要发布PE的32位Loopback接口地址。
# 配置PE1。
<HUAWEI> system-view
[~HUAWEI] sysname PE1
[*HUAWEI] commit
[~PE1] interface loopback 1
[*PE1-LoopBack1] ip address 1.1.1.9 255.255.255.255
[*PE1-LoopBack1] quit
[*PE1] interface gigabitethernet 0/1/1
[*PE1-GigabitEthernet0/1/1] undo shutdown
[*PE1-GigabitEthernet0/1/1] ip address 10.1.1.1 255.255.255.0
[*PE1-GigabitEthernet0/1/1] quit
[*PE1] ospf
[*PE1-ospf-1] area 0
[*PE1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
[*PE1-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[*PE1-ospf-1-area-0.0.0.0] quit
[*PE1-ospf-1] quit
[*PE1] commit
# 配置PE2。
<HUAWEI> system-view
[~HUAWEI] sysname PE2
[*HUAWEI] commit
[~PE2] interface loopback 1
[*PE2-LoopBack1] ip address 2.2.2.9 255.255.255.255
[*PE2-LoopBack1] quit
[*PE2] interface gigabitethernet 0/2/1
[*PE2-GigabitEthernet0/2/1] undo shutdown
[*PE2-GigabitEthernet0/2/1] ip address 192.168.1.1 255.255.255.255
[*PE2-GigabitEthernet0/2/1] quit
[*PE2] ospf
[*PE2-ospf-1] area 0
[*PE2-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
[*PE2-ospf-1-area-0.0.0.0] network 192.168.1.0 0.0.0.255
[*PE2-ospf-1-area-0.0.0.0] quit
[*PE2-ospf-1] quit
[*PE2] commit
完成此步骤后,PE1和PE2之间通过OSPF协议发现的对方Loopback1的IP路由,并能互相Ping通。
[~PE1] ping 2.2.2.9
PING 2.2.2.9: 56 data bytes, press CTRL_C to break Reply from 2.2.2.9: bytes=56 Sequence=1 ttl=254 time=5 ms Reply from 2.2.2.9: bytes=56 Sequence=2 ttl=254 time=2 ms Reply from 2.2.2.9: bytes=56 Sequence=3 ttl=254 time=2 ms Reply from 2.2.2.9: bytes=56 Sequence=4 ttl=254 time=2 ms Reply from 2.2.2.9: bytes=56 Sequence=5 ttl=254 time=2 ms --- 2.2.2.9 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 2/2/5 ms
使能MPLS基本能力和LDP。
# 配置PE1。
[~PE1] mpls lsr-id 1.1.1.9
[*PE1] mpls
[*PE1-mpls] quit
[*PE1] mpls ldp
[*PE1-mpls-ldp] quit
[*PE1] interface gigabitethernet 0/1/1
[*PE1-GigabitEthernet0/1/1] mpls
[*PE1-GigabitEthernet0/1/1] mpls ldp
[*PE1-GigabitEthernet0/1/1] quit
[*PE1] commit
# 配置PE2。
[~PE2] mpls lsr-id 2.2.2.9
[*PE2] mpls
[*PE2-mpls] quit
[*PE2] mpls ldp
[*PE2-mpls-ldp] quit
[*PE2] interface gigabitethernet 0/2/1
[*PE2-GigabitEthernet0/2/1] mpls
[*PE2-GigabitEthernet0/2/1] mpls ldp
[*PE2-GigabitEthernet0/2/1] quit
[*PE2] commit
上述配置完成后,PE之间应能建立LDP会话,执行display mpls ldp session命令可以看到显示结果中Status项为“Operational”。
以PE1的显示为例。
[~PE1] display mpls ldp session
LDP Session(s) in Public Network Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM) An asterisk (*) before a session means the session is being deleted. -------------------------------------------------------------------------- PeerID Status LAM SsnRole SsnAge KASent/Rcv -------------------------------------------------------------------------- 2.2.2.9:0 Operational DU Passive 0000:00:00 1/1 -------------------------------------------------------------------------- TOTAL: 1 Session(s) Found.
如果PE之间非直连,还需要通过命令mpls ldp remote-peer和remote-ip在PE之间建立远端LDP会话。
使能MPLS L2VPN。
# 配置PE1。
[~PE1] mpls l2vpn
[*PE1-l2vpn] quit
[*PE1] commit
# 配置PE2。
[~PE2] mpls l2vpn
[*PE2-l2vpn] quit
[*PE2] commit
配置VSI,并将VSI与用户侧子接口绑定。
# 配置PE1。
[~PE1] vsi ldp1 static
[*PE1-vsi-ldp1] pwsignal ldp
[*PE1-vsi-ldp1-ldp] vsi-id 2
[*PE1-vsi-ldp1-ldp] peer 2.2.2.9
[*PE1-vsi-ldp1-ldp] mac-withdraw enable
[*PE1-vsi-ldp1-ldp] interface-status-change mac-withdraw enable
[*PE1-vsi-ldp1-ldp] quit
[*PE1-vsi-ldp1] ignore-ac-state
[*PE1-vsi-ldp1] quit
[*PE1] interface Eth-Trunk 10
[*PE1-Eth-Trunk10] quit
[*PE1] interface Eth-Trunk 10.1
[*PE1-Eth-Trunk10.1] vlan-type dot1q 1
[*PE1-Eth-Trunk10.1] l2 binding vsi ldp1
[*PE1-Eth-Trunk10.1] quit
[*PE1] commit
# 配置PE2。
[~PE2] vsi ldp1 static
[*PE2-vsi-ldp1] pwsignal ldp
[*PE2-vsi-ldp1-ldp] vsi-id 2
[*PE2-vsi-ldp1-ldp] peer 1.1.1.9
[*PE2-vsi-ldp1-ldp] mac-withdraw enable
[*PE2-vsi-ldp1-ldp] interface-status-change mac-withdraw enable
[*PE2-vsi-ldp1-ldp] quit
[*PE2-vsi-ldp1] ignore-ac-state
[*PE2-vsi-ldp1] quit
[*PE2] interface Eth-Trunk 10
[*PE2-Eth-Trunk10] quit
[*PE2] interface Eth-Trunk 10.1
[*PE2-Eth-Trunk10.1] vlan-type dot1q 1
[*PE2-Eth-Trunk10.1] l2 binding vsi ldp1
[*PE2-Eth-Trunk10.1] quit
[*PE2] commit
在CE双归接入VPLS网络中,当AC接口状态变化时,如果主链路的对端不能及时更新VSI的MAC表项,会导致部分流量丢失。为了避免流量丢失,可通过执行命令mac-withdraw enable和interface-status-change mac-withdraw enable实现在AC状态变化时,主链路及时向对端发送MAC Withdraw消息,通知对端及时清除学习到的主链路对应的MAC地址。
如果需要忽略AC状态变化对VSI状态的影响,可执行ignore-ac-state命令实现。配置本命令后,当没有AC接入VSI,该VSI状态仍然可以Up。请慎用此命令。
# 执行display vsi name ldp1 verbose命令,查看PW信息。
以PE1的显示为例。
[~PE1] display vsi name ldp1 verbose
***VSI Name : ldp1 Administrator VSI : no Isolate Spoken : disable VSI Index : 1 PW Signaling : ldp Member Discovery Style : static Bridge-domain Mode : disable PW MAC Learn Style : unqualify Encapsulation Type : vlan MTU : 1500 Ignore AcState : enable P2P VSI : disable Create Time : 0 days, 0 hours, 41 minutes, 35 seconds VSI State : up Resource Status : -- VSI ID : 2 *Peer Router ID : 2.2.2.9 primary or secondary : primary ignore-standby-state : no VC Label : 32828 Peer Type : dynamic Session : up Tunnel ID :0x0000000001004c4b42 Broadcast Tunnel ID : -- Broad BackupTunnel ID : -- CKey : 1 NKey : 3607101554 Stp Enable : 0 PwIndex : 1 Control Word : disable Interface Name : Eth-Trunk10.1 State : up Access Port : false Last Up Time : 2013/07/05 15:32:50 Total Up Time : 0 days, 0 hours, 8 minutes, 22 seconds **PW Information: *Peer Ip Address : 2.2.2.9 PW State : up Local VC Label : 19456 Remote VC Label : 19456 Remote Control Word : disable PW Type : label Tunnel ID : 0x0000000001004c4b42 Broadcast Tunnel ID : -- Broad BackupTunnel ID : -- Ckey : 0x2 Nkey : 0x1 Main PW Token : 0x801002 Slave PW Token : 0x0 Tnl Type : ldp OutInterface : GigabitEthernet0/1/1 Stp Enable : 0 Mac Flapping : 0 PW Last Up Time : 2013/07/05 15:12:13 PW Total Up Time : 0 days, 0 hours, 26 minutes, 39 seconds
通过以上显示信息可以看到,名字为ldp1的VSI建立了到PE2的PW,VSI和PW状态均为Up。绑定VSI的Eth-Trunk子接口状态也为Up。
- 分别在PE、CE上配置二层转发功能。
配置CE
# 配置静态LACP模式Eth-Trunk并加入VLAN 1。
<HUAWEI> system-view
[~HUAWEI] sysname CE
[*HUAWEI] commit
[~CE] interface eth-trunk 10
[*CE-Eth-Trunk10] portswitch
[*CE-Eth-Trunk10] quit
[*CE] vlan 1
[*CE-vlan1] port eth-trunk 10
[*CE-vlan1] quit
[*CE] interface eth-trunk 10
[*CE-Eth-Trunk10] port link-type trunk
[*CE-Eth-Trunk10] port trunk allow-pass vlan 1
[*CE-Eth-Trunk10] mode lacp-static
[*CE-Eth-Trunk10] quit
[*CE] commit
# 将成员口加入Eth-Trunk 20
[~CE] interface gigabitethernet 0/1/1
[*CE-GigabitEthernet0/1/1] undo shutdown
[*CE-GigabitEthernet0/1/1] eth-trunk 20
[*CE-GigabitEthernet0/1/1] quit
[*CE] interface gigabitethernet 0/2/1
[*CE-GigabitEthernet0/2/1] undo shutdown
[*CE-GigabitEthernet0/2/1] eth-trunk 20
[*CE-GigabitEthernet0/2/1] quit
[*CE] commit
配置PE1。
[~PE1] interface eth-trunk 10
[*PE1-Eth-Trunk10] mode lacp-static
[*PE1-Eth-Trunk10] quit
[*PE1] interface gigabitethernet 0/2/1
[*PE1-GigabitEthernet0/2/1] undo shutdown
[*PE1-GigabitEthernet0/2/1] eth-trunk 10
[*PE1-GigabitEthernet0/2/1] quit
[*PE1] commit
配置PE2。
[~PE2] interface eth-trunk 10
[*PE2-Eth-Trunk10] mode lacp-static
[*PE2-Eth-Trunk10] quit
[*PE2] interface gigabitethernet 0/1/1
[*PE2-GigabitEthernet0/1/1] undo shutdown
[*PE2-GigabitEthernet0/1/1] eth-trunk 10
[*PE2-GigabitEthernet0/1/1] quit
[*PE2] commit
- 配置E-Trunk。
配置E-Trunk,并将静态LACP模式的Eth-Trunk加入到指定E-Trunk中。
# 配置PE1。
[~PE1] e-trunk 1
[*PE1-e-trunk-1] quit
[*PE1] interface eth-trunk 10
[*PE1-Eth-Trunk10] e-trunk 1
[*PE1-Eth-Trunk10] quit
[*PE1] commit
# 配置PE2。
[~PE2] e-trunk 1
[*PE2-e-trunk-1] quit
[*PE2] interface eth-trunk 10
[*PE2-Eth-Trunk10] e-trunk 1
[*PE2-Eth-Trunk10] quit
[*PE2] commit
将E-Trunk绑定BFD会话。
配置E-Trunk源端和对端的IP地址。
# 配置PE1。
[~PE1] e-trunk 1
[*PE1-e-trunk-1] peer-address 2.2.2.9 source-address 1.1.1.9 [*PE1-e-trunk-1] security-key cipher 00E0FC000000
[*PE1-e-trunk-1] quit
[*PE1] commit
# 配置PE2。
[~PE2] e-trunk 1
[*PE2-e-trunk-1] peer-address 1.1.1.9 source-address 2.2.2.9 [*PE2-e-trunk-1] security-key cipher 00E0FC000000
[*PE2-e-trunk-1] quit
[*PE2] commit
创建BFD会话。
# 配置PE1。
[~PE1] bfd
[*PE1-bfd] quit
[*PE1] bfd hello bind peer-ip 2.2.2.9 source-ip 1.1.1.9
[*PE1-bfd-session-hello] discriminator local 1
[*PE1-bfd-session-hello] discriminator remote 2
[*PE1-bfd-session-hello] commit
[~PE1-bfd-session-hello] quit
[~PE1] commit
# 配置PE2。
[~PE2] bfd
[*PE2-bfd] quit
[*PE2] bfd hello bind peer-ip 1.1.1.9 source-ip 2.2.2.9
[*PE2-bfd-session-hello] discriminator local 2
[*PE2-bfd-session-hello] discriminator remote 1
[*PE2-bfd-session-hello] commit
[~PE2-bfd-session-hello] quit
[~PE2] commit
BFD会话绑定的本端和对端IP地址与E-Trunk本端和对端的IP地址必须一致。
配置E-Trunk与BFD会话绑定
# 配置PE1。
[~PE1] e-trunk 1
[*PE1-e-trunk-1] e-trunk track bfd-session session-name hello
[*PE1-e-trunk-1] quit
[*PE1] commit
# 配置PE2。
[~PE2] e-trunk 1
[*PE2-e-trunk-1] e-trunk track bfd-session session-name hello
[*PE2-e-trunk-1] quit
[*PE2] commit
配置完成后,在PE1和PE2上执行命令display bfd session all verbose,可以看到建立了BFD Session,且状态为Up。
以PE1上的显示为例。
[~PE1] display bfd session all verbose
(w): State in WTR (*): State is invalid -------------------------------------------------------------------------------- (Multi Hop) State : Up Name : hello -------------------------------------------------------------------------------- Local Discriminator : 1 Remote Discriminator : 2 Session Detect Mode : Asynchronous Mode Without Echo Function BFD Bind Type : Peer IP Address Bind Session Type : Static Bind Peer IP Address : 2.2.2.9 Bind Interface : - Track Interface : - Bind Source IP Address : 1.1.1.9 FSM Board Id : 9 TOS-EXP : 7 Min Tx Interval (ms) : 10 Min Rx Interval (ms) : 10 Actual Tx Interval (ms): 10 Actual Rx Interval (ms): 10 Local Detect Multi : 3 Detect Interval (ms) : 30 Echo Passive : Disable Acl Number : - Destination Port : 4784 TTL : 254 Proc Interface Status : Disable Process PST : Disable WTR Interval (ms) : - Config PST : Disable Active Multi : 3 Last Local Diagnostic : Neighbor Signaled Session Down(Receive AdminDown) Bind Application : E-TRUNK Session TX TmrID : - Session Detect TmrID : - Session Init TmrID : - Session WTR TmrID : - Session Echo Tx TmrID : - Session Description : - -------------------------------------------------------------------------------- Total UP/DOWN Session Number : 1/0
配置E-Trunk参数。
配置E-Trunk的成员口Eth-Trunk接口的LACP优先级和LACP系统ID。
# 配置PE1。
[~PE1] lacp e-trunk priority 1
[*PE1] lacp e-trunk system-id 00e0-fc12-3458
[*PE1] commit
# 配置PE2。
[~PE2] lacp e-trunk priority 1
[*PE2] lacp e-trunk system-id 00e0-fc12-3458
[*PE2] commit
同一E-Trunk中的E-Trunk的成员口Eth-Trunk接口的LACP优先级和LACP系统ID必须一致。
配置E-Trunk的优先级。
# 配置PE1。
[~PE1] e-trunk 1
[*PE1-e-trunk-1] priority 10
# 配置PE2。
[~PE2] e-trunk 1
[*PE2-e-trunk-1] priority 20
配置E-Trunk的Hello报文发送周期。
# 配置PE1。
[*PE1-e-trunk-1] timer hello 9
# 配置PE2。
[*PE2-e-trunk-1] timer hello 9
配置E-Trunk检测Hello报文的时间倍数。
# 配置PE1。
[*PE1-e-trunk-1] timer hold-on-failure multiplier 30
# 配置PE2。
[*PE2-e-trunk-1] timer hold-on-failure multiplier 30
配置E-Trunk的描述信息。
# 配置PE1。
[*PE1-e-trunk-1] description PE1_to_PE2
[*PE1-e-trunk-1] quit
[*PE1] commit
# 配置PE2。
[*PE2-e-trunk-1] description PE2_to_PE1
[*PE2-e-trunk-1] quit
[*PE2] commit
- 检查配置结果
# 在CE上执行命令display eth-trunk,查看Eth-Trunk接口的配置信息。
[~CE] display eth-trunk 20
Eth-Trunk20's state information is: Local: LAG ID: 20 WorkingMode: STATIC Preempt Delay: Disabled Hash arithmetic: According to flow System Priority: 32768 System ID: 00e0-fc12-3459 Least Active-linknumber: 1 Max Active-linknumber: 16 Operate status: up Number Of Up Port In Trunk: 1 Timeout Period: Slow -------------------------------------------------------------------------------- ActorPortName Status PortType PortPri PortNo PortKey PortState Weight GigabitEthernet0/1/1 Selected 100M 32768 128 2593 11111100 1 GigabitEthernet0/2/1 Unselect 100M 32768 129 2593 11100010 1 Partner: -------------------------------------------------------------------------------- ActorPortName SysPri SystemID PortPri PortNo PortKey PortState GigabitEthernet0/1/1 1 00e0-fc12-3458 32768 129 2593 11111100 GigabitEthernet0/2/1 1 00e0-fc12-3458 32768 32896 2593 11010000
通过以上显示信息可以看到,在CE上Eth-Trunk的成员接口中GigabitEthernet 0/1/1处于“Selected”状态,接口GigabitEthernet 0/2/1处于“Unselect”状态。
# 执行命令display e-trunk,查看E-Trunk信息。
[~PE1] display e-trunk 1
The E-Trunk information E-TRUNK-ID : 1 Revert-Delay-Time (s) : 120 Priority : 10 System-ID : 00e0-fc12-3457 Peer-IP : 2.2.2.9 Source-IP : 1.1.1.9 State : Master Causation : PRI Send-Period (100ms) : 9 Fail-Time (100ms) : 270 Receive : 1149 Send : 1182 RecDrop : 0 SndDrop : 0 Peer-Priority : 20 Peer-System-ID : 00e0-fc12-3456 Peer-Fail-Time (100ms) : 270 BFD-Session : hello Description : PE1_to_PE2 -------------------------------------------------------------------------------- The Member information Type ID LocalPhyState Work-Mode State Causation Remote-ID Eth-Trunk 10 Up auto Master PEER_MEMBER_DOWN 10
[~PE2] display e-trunk 1
The E-Trunk information E-TRUNK-ID : 1 Revert-Delay-Time (s) : 120 Priority : 20 System-ID : 00e0-fc12-3456 Peer-IP : 1.1.1.9 Source-IP : 2.2.2.9 State : Backup Causation : PRI Send-Period (100ms) : 9 Fail-Time (100ms) : 270 Receive : 1435 Send : 1438 RecDrop : 35 SndDrop : 0 Peer-Priority : 10 Peer-System-ID : 00e0-fc12-3457 Peer-Fail-Time (100ms) : 270 BFD-Session : hello Description : PE2_to_PE1 -------------------------------------------------------------------------------- The Member information Type ID LocalPhyState Work-Mode State Causation Remote-ID Eth-Trunk 10 Down auto Backup PEER_MEMBER_UP 10
通过以上显示信息可以看到,PE1上E-Trunk的优先级为10,E-Trunk的状态为Master。PE2上E-Trunk的优先级为20,E-Trunk的状态为Backup,实现了设备间的冗余备份功能。
配置文件
CE的配置文件
# sysname CE # vlan batch 1 # interface Eth-Trunk10 portswitch port link-type trunk port trunk allow-pass vlan 1 mode lacp-static # interface GigabitEthernet0/1/1 undo shutdown eth-trunk 10 # interface GigabitEthernet0/2/1 undo shutdown eth-trunk 10 # return
PE1的配置文件
# sysname PE1 # lacp e-trunk system-id 00e0-fc12-3458 lacp e-trunk priority 1 # bfd # mpls lsr-id 1.1.1.9 # mpls # mpls l2vpn # vsi ldp1 static pwsignal ldp vsi-id 2 mac-withdraw enable interface-status-change mac-withdraw enable peer 2.2.2.9 ignore-ac-state # mpls ldp # mpls ldp remote-peer 2.2.2.9 # mpls ldp remote-peer PE2 remote-ip 2.2.2.9 # e-trunk 1 priority 10 peer-address 2.2.2.9 source-address 1.1.1.9 timer hello 9 timer hold-on-failure multiplier 30 e-trunk track bfd-session session-name hello description PE1_to_PE2 security-key cipher *** # interface Eth-Trunk10 mode lacp-static e-trunk 1 # interface Eth-Trunk10.1 vlan-type dot1q 1 l2 binding vsi ldp1 # interface GigabitEthernet0/1/1 undo shutdown ip address 10.1.1.1 255.255.255.0 mpls mpls ldp # interface GigabitEthernet0/2/1 undo shutdown eth-trunk 10 # interface LoopBack1 ip address 1.1.1.9 255.255.255.255 # bfd hello bind peer-ip 2.2.2.9 source-ip 1.1.1.9 discriminator local 1 discriminator remote 2 # ospf 1 area 0.0.0.0 network 1.1.1.9 0.0.0.0 network 10.1.1.0 0.0.0.255 # return
PE2的配置文件
# sysname PE2 lacp e-trunk system-id 00e0-fc12-3458 lacp e-trunk priority 1 # bfd # mpls lsr-id 2.2.2.9 # mpls # mpls l2vpn # vsi ldp1 static pwsignal ldp vsi-id 2 mac-withdraw enable interface-status-change mac-withdraw enable peer 1.1.1.9 ignore-ac-state # mpls ldp # mpls ldp remote-peer PE1 remote-ip 1.1.1.9 # e-trunk 1 priority 20 peer-address 1.1.1.9 source-address 2.2.2.9 timer hello 9 timer hold-on-failure multiplier 30 e-trunk track bfd-session session-name hello description PE2_to_PE1 security-key cipher *** # interface Eth-Trunk10 mode lacp-static e-trunk 1 # interface Eth-Trunk10.1 vlan-type dot1q 1 l2 binding vsi ldp1 # interface GigabitEthernet0/1/1 undo shutdown eth-trunk 10 # interface GigabitEthernet0/2/1 undo shutdown ip address 192.168.1.1 255.255.255.0 mpls mpls ldp # interface LoopBack1 ip address 2.2.2.9 255.255.255.255 # bfd hello bind peer-ip 1.1.1.9 source-ip 2.2.2.9 discriminator local 2 discriminator remote 1 # ospf 1 area 0.0.0.0 network 2.2.2.9 0.0.0.0 network 192.168.1.0 0.0.0.255 # return