Clearing mpls statistics, Mpls configuration examples, Configuring static lsps – H3C Technologies H3C S7500E Series Switches User Manual
Page 76: Network requirements, Configuration procedure

2-34
Clearing MPLS Statistics
To do…
Use the command…
Remarks
Clear MPLS statistics for one or all
MPLS interfaces
reset mpls statistics
interface
{ interface-type interface-number |
all
}
Available in user view
Clear MPLS statistics for all LSPs
or the LSP with a specified index
or name
reset mpls statistics
lsp { index |
all
| name lsp-name }
Available in user view
MPLS Configuration Examples
Configuring Static LSPs
Network requirements
z
Switch A, Switch B, and Switch C support MPLS and use OSPF as the IGP for the MPLS
backbone.
z
Establish a static LSP from Switch A to Switch C and a static LSP from Switch C to Switch A.
z
Check the validity and connectivity of the LSPs.
Figure 2-13
Network diagram for configuring static LSPs
Configuration procedure
1) Configure the IP addresses of the interfaces
Configure the IP addresses and masks of the interfaces including the loopback interfaces as required
in
2) Configure OSPF to ensure reachability between the switches
# Configure OSPF on Switch A.
[SwitchA] ospf
[SwitchA-ospf-1] area 0
[SwitchA-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
[SwitchA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] quit
[SwitchA-ospf-1] quit
# Configure OSPF on Switch B.
[SwitchB] ospf