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
At the 2017 Huawei Connect Conference held from S...
edgeNAT is a Chinese hosting company established ...
Top networking trends for the coming year include...
Since the Ministry of Industry and Information Te...
On October 12, China Broadcasting Network Co., Lt...
Is there a data cable? My seat is in the first ro...
John Johnson, president of CRU China, predicted t...
When it comes to 5G, many people's impression...
I searched AlienVPS in the blog and found that it...
Today, software-defined networking is extending t...
Cables and connectors have been an integral part ...
[[423414]] This article mainly talks about puppet...
[[181719]] As mobile communications shift from th...
This month, ZJI launched a new server cluster in ...
What was the past life like, what is the present ...