Configuring an SR-MPLS BE Tunnel
Usage Scenario
SR-MPLS BE can be implemented after basic SR-MPLS BE functions are configured. After basic SR-MPLS BE functions are configured, you can configure optimization methods, for example, the policy for triggering SR-LSP setup and policy for preferentially selecting the SE-BE tunnel.
- Devices report topology information to a controller (if the controller is used to create a tunnel) and are assigned labels.
- The devices compute paths.
Configuring Basic SR-MPLS BE Functions
(Optional) Configuring a Policy for Triggering SR-LSP Establishment
A policy can be configured to allow the ingress node to establish SR-LSPs based on eligible routes.
Context
After segment routing is enabled, a great number of devices establish excessive E2E LSPs, leading to resource wastes. To prevent resource wastes, a policy for establishing LSPs can be configured. The policy allows the ingress node to use only allowed routes to establish SR-LSPs.
Procedure
- Run system-view
The system view is displayed.
- Run isis
The IS-IS view is displayed.
- Run segment-routing lsp-trigger { none | host | ip-prefix ip-prefix-name }
A policy for establishing SR-LSPs is configured on the ingress node.
host: The ingress node is allowed to use host IP routes with 32-bit masks to establish SR-LSPs.
ip-prefix: The ingress node is allowed to use FECs filtered by an IP address prefix list to establish SR-LSPs.
none: The ingress node is disabled from establishing SR-LSPs.
- Run commit
The configuration is committed.
(Optional) Configuring a Policy for Preferentially Selecting an SR-MPLS BE Tunnel
By configuring a policy for preferentially selecting an SR-MPLS BE tunnel, you can improve the priority of the SR tunnel and preferentially select the SR tunnel.
Verifying the SR-MPLS BE Tunnel Configuration
After successfully configure SR-MPLS BE, you can view SR-MPLS BE configurations.
Procedure
After completing the configurations, you can run the following commands to check the configurations.
Run the display isis lsdb [ { level-1 | level-2 } | verbose | { local | lsp-id | is-name symbolic-name } ] * [ process-id | vpn-instance vpn-instance-name ] command to check IS-IS LSDB information.
- Run the display segment-routing prefix mpls forwarding command to check the label forwarding table for segment routing.