This section provides an example for configuring MS-PW redundancy when a PE is single-homed to an SPE. PW label switching is configured on the SPE to implement MS-PWs in primary/secondary mode.
Even if a public network link fails, PE2 or PE3 goes faulty, or an AC link goes Down, CE1 and CE2 can still communicate with each other.
Interfaces 1 through 3 and interface 1.1 in this example represent GE 0/1/0, GE 0/1/1, GE 0/1/2, GE 0/1/0, respectively.
The configuration roadmap is as follows:
Configure IP addresses and routes, including:
IP addresses of interfaces on the PEs and SPE
IGP running on the PEs and SPE
Configure MPLS and public network tunnels, including:
Basic MPLS functions on the PEs and SPE
Public network tunnels
OSPF TE on the PEs and SPE
Configure MS-PWs.
To complete the configuration, you need the following data:
Interface numbers, interface IP addresses, and OSPF process numbers on PEs and SPE
LSR IDs of the PEs and SPE
L2VC's destination IP addresses, VC IDs, and VC types
Configure an IP address and mask for each interface based on Figure 1. For configuration details, see "Configuration Files" in this section.
OSPF is used in this example. For configuration details, see "Configuration Files" in this section.
# Configure PE2.
[~PE2] interface gigabitethernet [*PE2-GigabitEthernet0/1/2] undo shutdown [*PE2-GigabitEthernet0/1/2] quit [*PE2] interface eth-trunk 10 [*PE2-Eth-Trunk10] mode lacp-static [*PE2-Eth-Trunk10] trunkport gigabitethernet [*PE2-Eth-Trunk10] quit [*PE2] lacp e-trunk system-id 00e0-fc00-0000 [*PE2] lacp e-trunk priority 100 [*PE2] e-trunk 10 [*PE2-e-trunk-10] priority 10 [*PE2-e-trunk-10] peer-address 4.4.4.4 source-address 3.3.3.3 [*PE2-e-trunk-10] quit [*PE2] interface eth-trunk 10 [*PE2-Eth-Trunk10] e-trunk 10 [*PE2-Eth-Trunk10] quit [*PE2] commit
Repeat this step for PE3. For configuration details, see "Configuration Files" in this section.
# For configurations on CE1 and CE2, see "Configuration Files" in this section.
Configure CE1 to ping the VLANIF interface address of CE2.
[*CE1] ping 10.1.1.2
PING 10.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 10.1.1.2: bytes=56 Sequence=1 ttl=255 time=40 ms
Reply from 10.1.1.2: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 10.1.1.2: bytes=56 Sequence=3 ttl=255 time=40 ms
Reply from 10.1.1.2: bytes=56 Sequence=4 ttl=255 time=1 ms
Reply from 10.1.1.2: bytes=56 Sequence=5 ttl=255 time=1 ms
--- 10.1.1.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/22/40 ms
CE1 configuration file
# sysname CE1 # interface GigabitEthernet0/1/0 undo shutdown # interface GigabitEthernet0/1/0.1 vlan-type dot1q 10 ip address 10.1.1.1 255.255.255.0 # return
PE1 configuration file
# sysname PE1 # mpls lsr-id 1.1.1.1 # mpls mpls te mpls rsvp-te # mpls l2vpn # explicit-path tospe next hop 10.1.2.2 next hop 2.2.2.2 # mpls ldp # mpls ldp remote-peer 2.2.2.2 remote-ip 2.2.2.2 # interface GigabitEthernet0/1/0 undo shutdown # interface GigabitEthernet0/1/0.1 vlan-type dot1q 10 mpls l2vc 2.2.2.2 1 tunnel-policy policy1 # interface GigabitEthernet0/1/1 undo shutdown ip address 10.1.2.1 255.255.255.0 mpls mpls te mpls rsvp-te # interface LoopBack0 ip address 1.1.1.1 255.255.255.255 # interface Tunnel101 ip address unnumbered interface LoopBack0 tunnel-protocol mpls te destination 2.2.2.2 mpls te tunnel-id 100 mpls te path explicit-path tospe mpls te reserved-for-binding # ospf 1 opaque-capability enable area 0.0.0.0 network 1.1.1.1 0.0.0.0 network 10.1.2.0 0.0.0.255 mpls-te enable # tunnel-policy policy1 tunnel binding destination 2.2.2.2 te Tunnel101 # return
SPE configuration file
# sysname SPE # mpls lsr-id 2.2.2.2 # mpls mpls te mpls rsvp-te mpls te cspf # mpls l2vpn # mpls switch-l2vc 1.1.1.1 1 tunnel-policy policy1 between 3.3.3.3 2 tunnel-policy policy1 backup 4.4.4.4 3 tunnel-policy policy1 independent encapsulation vlan # explicit-path tope1 next hop 10.1.2.1 next hop 1.1.1.1 # explicit-path tope2 next hop 10.1.3.2 next hop 3.3.3.3 # explicit-path tope3 next hop 10.1.4.2 next hop 4.4.4.4 # mpls ldp # mpls ldp remote-peer 1.1.1.1 remote-ip 1.1.1.1 # mpls ldp remote-peer 3.3.3.3 remote-ip 3.3.3.3 # mpls ldp remote-peer 4.4.4.4 remote-ip 4.4.4.4 # interface GigabitEthernet0/1/0 undo shutdown ip address 10.1.2.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet0/1/1 undo shutdown ip address 10.1.3.1 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet0/1/2 undo shutdown ip address 10.1.4.1 255.255.255.0 mpls mpls te mpls rsvp-te # interface LoopBack0 ip address 2.2.2.2 255.255.255.255 # interface Tunnel100 ip address unnumbered interface LoopBack0 tunnel-protocol mpls te destination 1.1.1.1 mpls te tunnel-id 100 mpls te path explicit-path tope1 mpls te reserved-for-binding # interface Tunnel101 ip address unnumbered interface LoopBack0 tunnel-protocol mpls te destination 3.3.3.3 mpls te tunnel-id 200 mpls te path explicit-path tope2 mpls te reserved-for-binding # interface Tunnel102 ip address unnumbered interface LoopBack0 tunnel-protocol mpls te destination 4.4.4.4 mpls te tunnel-id 300 mpls te path explicit-path tope3 mpls te reserved-for-binding # ospf 1 opaque-capability enable area 0.0.0.0 network 2.2.2.2 0.0.0.0 network 10.1.2.0 0.0.0.255 network 10.1.3.0 0.0.0.255 network 10.1.4.0 0.0.0.255 mpls-te enable # tunnel-policy policy1 tunnel binding destination 1.1.1.1 te Tunnel100 tunnel binding destination 3.3.3.3 te Tunnel101 tunnel binding destination 4.4.4.4 te Tunnel102 # return
PE2 configuration file
# sysname PE2 # lacp e-trunk system-id 00e0-fc00-0000 lacp e-trunk priority 100 # mpls lsr-id 3.3.3.3 # mpls mpls te mpls rsvp-te mpls te cspf # mpls l2vpn # explicit-path tospe next hop 10.1.3.1 next hop 2.2.2.2 # mpls ldp # mpls ldp remote-peer 2.2.2.2 remote-ip 2.2.2.2 # e-trunk 10 priority 10 peer-address 4.4.4.4 source-address 3.3.3.3 # interface Eth-Trunk10 mode lacp-static e-trunk 10 # interface Eth-Trunk10.1 vlan-type dot1q 10 mpls l2vc 2.2.2.2 2 tunnel-policy policy1 mpls l2vc 4.4.4.4 4 bypass # interface GigabitEthernet0/1/0 undo shutdown ip address 10.1.3.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet0/1/1 undo shutdown ip address 10.1.5.1 255.255.255.0 mpls mpls ldp # interface GigabitEthernet0/1/2 undo shutdown eth-trunk 10 # interface LoopBack0 ip address 3.3.3.3 255.255.255.255 # interface Tunnel100 ip address unnumbered interface LoopBack0 tunnel-protocol mpls te destination 2.2.2.2 mpls te tunnel-id 200 mpls te path explicit-path tospe mpls te reserved-for-binding # ospf 1 opaque-capability enable area 0.0.0.0 network 3.3.3.3 0.0.0.0 network 10.1.3.0 0.0.0.255 network 10.1.5.0 0.0.0.255 mpls-te enable # tunnel-policy policy1 tunnel binding destination 2.2.2.2 te Tunnel100 # return
PE3 configuration file
# sysname PE3 # lacp e-trunk system-id 00e0-fc00-0000 lacp e-trunk priority 100 # mpls lsr-id 4.4.4.4 # mpls mpls te mpls rsvp-te mpls te cspf # mpls l2vpn # explicit-path tospe next hop 10.1.4.1 next hop 2.2.2.2 # mpls ldp # mpls ldp remote-peer 2.2.2.2 remote-ip 2.2.2.2 # e-trunk 10 priority 20 peer-address 3.3.3.3 source-address 4.4.4.4 # interface Eth-Trunk10 mode lacp-static e-trunk 10 # interface Eth-Trunk10.1 vlan-type dot1q 10 mpls l2vc 2.2.2.2 3 tunnel-policy policy1 mpls l2vc 3.3.3.3 4 bypass # interface GigabitEthernet0/1/0 undo shutdown ip address 10.1.4.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet0/1/1 undo shutdown ip address 10.1.5.2 255.255.255.0 mpls mpls ldp # interface GigabitEthernet0/1/2 undo shutdown eth-trunk 10 # interface LoopBack0 ip address 4.4.4.4 255.255.255.255 # interface Tunnel100 ip address unnumbered interface LoopBack0 tunnel-protocol mpls te destination 2.2.2.2 mpls te tunnel-id 300 mpls te path explicit-path tospe mpls te reserved-for-binding # ospf 1 opaque-capability enable area 0.0.0.0 network 4.4.4.0 0.0.0.255 network 10.1.4.0 0.0.0.255 network 10.1.5.0 0.0.0.255 mpls-te enable # tunnel-policy policy1 tunnel binding destination 2.2.2.2 te Tunnel100 # return
CE2 configuration file
# sysname CE2 # vlan batch 10 # interface Vlanif10 ip address 10.1.1.2 255.255.255.0 # interface Eth-Trunk10 portswitch port trunk allow-pass vlan 10 mode lacp-static # interface GigabitEthernet0/1/0 undo shutdown eth-trunk 10 # interface GigabitEthernet0/1/1 undo shutdown eth-trunk 10 # return