This section provides an example for configuring MPLS OAM to check the connectivity of a PW.
On the MPLS network shown in Figure 1, a static SS-PW is established between LSRA and LSRC.
Configure MPLS OAM to check the connectivity of the PW. If MPLS OAM detects a fault on the PW, it sends a BDI packet along the PW and reports the fault to the OAM module.
Interfaces 1 and 2 in this example are GE 0/1/0, GE 0/1/8, respectively.
Device |
Interface |
IP Address |
---|---|---|
LSRA |
Loopback1 |
1.1.1.1/32 |
Interaface1 |
2.1.1.1/24 |
|
LSRB |
Loopback1 |
2.2.2.2/32 |
Interaface1 |
2.1.1.2/24 |
|
Interaface2 |
3.2.1.1/24 |
|
LSRC |
Loopback1 |
3.3.3.3/32 |
Interaface2 |
3.2.1.2/24 |
The configuration roadmap is as follows:
Enable MPLS OAM globally.
Establish a PW over a bidirectional LSP between LSRA and LSRC.
Configure MPLS OAM parameters in the MPLS-OAM view on the nodes at both ends of the PW.
(Optional) Enable MPLS OAM.
To complete the configuration, you need the following data:
IP addresses at both ends of the PW
OAM detection packet type and interval at which OAM detection packets are sent
A timeout period must be configured in automatic negotiation mode but does not need to be configured in manual mode.
For configuration details, see "Configuration Examples" in HUAWEI NetEngine 8000 F SeriesRouter Configuration Guide - VPN or Configuration Files in this section.
[~LSRA] mpls [*LSRA-mpls] mpls oam [*LSRA-mpls] commit [~LSRA-mpls] quit
[~LSRC] mpls [*LSRC-mpls] mpls oam [*LSRC-mpls] commit [~LSRC-mpls] quit
# Configure MPLS OAM parameters on LSRA.
[~LSRA] mpls-oam [~LSRA-mpls-oam]mpls oam l2vc peer-ip 3.3.3.3 vc-id 30000 vc-type vlan type cv auto-protocol [*LSRA-mpls-oam] commit [~LSRA-mpls-oam] quit
# Configure MPLS OAM parameters on LSRC.
[~LSRC] mpls-oam [~LSRC-mpls-oam]mpls oam l2vc peer-ip 1.1.1.1 vc-id 30000 vc-type vlan type cv auto-protocol [*LSRC-mpls-oam] commit [~LSRC-mpls-oam] quit
LSRA configuration file
# sysname LSRA # mpls lsr-id 1.1.1.1 mpls mpls te mpls oam # mpls l2vpn # bidirectional static-cr-lsp ingress Tunnel10 forward nexthop 2.1.1.2 out-label 20 backward in-label 20 # pw-template tpatoc peer-address 3.3.3.3 control-word tnl-policy tpatoc # interface GigabitEthernet0/1/0 undo shutdown ip address 2.1.1.1 255.255.255.0 mpls mpls te # interface GigabitEthernet0/1/0.1 vlan-type dot1q 1 mpls mpls static-l2vc pw-template tpatoc 30000 transmit-vpn-label 101 receive-vpn-label 101 # interface LoopBack1 ip address 1.1.1.1 255.255.255.255 # interface Tunnel10 ip address unnumbered interface LoopBack1 tunnel-protocol mpls te destination 3.3.3.3 mpls te signal-protocol cr-static mpls te tunnel-id 100 mpls te bidirectional mpls te reserved-for-binding # ip route-static 2.2.2.2 255.255.255.255 2.1.1.2 ip route-static 3.3.3.3 255.255.255.255 2.1.1.2 # tunnel-policy tpatoc tunnel binding destination 3.3.3.3 te Tunnel10 # mpls-oam mpls oam l2vc peer-ip 3.3.3.3 vc-id 30000 vc-type vlan type cv auto-protocol overtime 0 # return
LSRB configuration file
# sysname LSRB # mpls lsr-id 2.2.2.2 mpls mpls te mpls oam # bidirectional static-cr-lsp transit lsp1 forward in-label 20 nexthop 3.2.1.2 out-label 40 backward in-label 16 nexthop 2.1.1.1 out-label 20 # interface GigabitEthernet0/1/0 undo shutdown ip address 2.1.1.2 255.255.255.0 mpls mpls te ais enable # interface GigabitEthernet0/1/8 undo shutdown ip address 3.2.1.1 255.255.255.0 mpls mpls te ais enable # interface LoopBack1 ip address 2.2.2.2 255.255.255.255 # ip route-static 1.1.1.1 255.255.255.255 2.1.1.1 ip route-static 3.3.3.3 255.255.255.255 3.2.1.2 # return
LSRC configuration file
# sysname LSRC # mpls lsr-id 3.3.3.3 mpls mpls te mpls oam # mpls l2vpn # bidirectional static-cr-lsp egress lsp1 forward in-label 40 lsrid 1.1.1.1 tunnel-id 100 backward nexthop 3.2.1.1 out-label 16 # pw-template tpctoa peer-address 1.1.1.1 control-word tnl-policy tpctoa # interface GigabitEthernet0/1/0 undo shutdown ip address 3.2.1.2 255.255.255.0 mpls mpls te # interface GigabitEthernet0/1/0.1 vlan-type dot1q 1 mpls static-l2vc pw-template tpctoa 30000 transmit-vpn-label 101 receive-vpn-label 101 # interface LoopBack1 ip address 3.3.3.3 255.255.255.255 # interface Tunnel20 ip address unnumbered interface LoopBack1 tunnel-protocol mpls te destination 1.1.1.1 mpls te signal-protocol cr-static mpls te tunnel-id 200 mpls te passive-tunnel mpls te binding bidirectional static-cr-lsp egress lsp1 mpls te reserved-for-binding # ip route-static 1.1.1.1 255.255.255.255 3.2.1.1 ip route-static 2.2.2.2 255.255.255.255 3.2.1.1 # tunnel-policy tpctoa tunnel binding destination 1.1.1.1 te Tunnel20 # mpls-oam mpls oam l2vc peer-ip 1.1.1.1 vc-id 30000 vc-type vlan type cv auto-protocol overtime 0 # return