Today we will look at the basic configuration cases of MPLS and further explore the application of MPLS in practice. MPLS Basic Configuration Commands1. Configure LSR ID The mpls lsr-id command is used to configure the LSR ID. The LSR ID is used to uniquely identify an LSR in the network. LSRs do not have a default LSR ID and must be configured manually. To improve network reliability, it is recommended to use the address of a loopback interface of the LSR as the LSR ID and to plan the LSR IDs of all LSRs in the network in a unified manner before configuration. 2. Enable MPLS The mpls command enables MPLS globally on the local node and enter the MPLS view. In the interface view, enable the MPLS function of the current interface. You must enable the MPLS capability globally before executing the MPLS enable command in the interface view. Static LSP Configuration Commands1. Ingress LSR Configuration Use the static-lsp ingress command to configure a static LSP for an ingress node.
2. Transit LSR Configuration Use the static-lsp transit command to configure a static LSP for an intermediate forwarding node.
3. Egress LSR Configuration Use the static-lsp egress command to configure a static LSP on the egress node.
4. Check the static LSP configuration The display mpls static-lsp command displays information about static LSPs. Static LSP Configuration Example1. Case introduction:IGP has been deployed between R1, R2 and R3, so the 1.1.1.0/24 and 3.3.3.0/24 networks can communicate with each other. Now it is required to configure static LSP so that the two networks can communicate with each other based on MPLS. The label allocation is shown in the figure. Topology 2. Configuration ideas:
3. Configuration steps:(1) The LSR IDs of the three routers are 10.1.1.1, 10.1.1.2, and 10.1.1.3. Take R1 as an example. Enable MPLS globally and on its interfaces. (2) All three routers have OSPF dynamic routing protocol enabled. Take R1 as an example. (3) Configure a static LSP from R1 to R3 4. Check the configuration After testing, there is no problem in the ping test from the host in the 1.1.1.0/24 network segment to the host in 3.3.3.0/24. 5. Packet capture analysisFrom the packet capture information, we can see that the packets from the host in the 1.1.1.0/24 network segment to the host in 3.3.3.0/24 network segment are forwarded based on the MPLS label, and the packets from the host in the 3.3.3.0/24 network segment to the host in 1.1.1.0/24 network segment are forwarded based on the IP packet header. |
<<: A complete guide to using Go language built-in packages!
>>: Global 5G patent rankings: Huawei ranks first, ZTE and OPPO perform well
Recently, with the improvement of this round of e...
The popularity of 5G has brought more convenience...
KVMLA is a well-established Chinese hosting compa...
Netizens reported that CloudServer has a special ...
Hengchuang Technology (henghost) has sent the eve...
Mobile substation is a kind of factory-prefabrica...
Liu Xingliang (hereinafter referred to as "L...
[[405370]] Linkerd provides many features, such a...
Each device node in the Mesh network can send and...
As an important part of my country's "ne...
It's been a long time since I shared informat...
On June 1-2, 2016, with the support of China SDN ...
[[331465]] The low-power wide-area network (LPWAN...
On November 27, the Ministry of Industry and Info...
【51CTO.com Quick Translation】 According to a surv...