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
Network convergence is defined as the use of mult...
ZJI released the promotion information for Septem...
With the large-scale construction of data centers...
2020 is coming to an end. With the advancement of...
edgeNAT launched its first anniversary celebratio...
[[357697]] After the issuance of 5G licenses on D...
[51CTO.com original article] In recent years, whe...
It's been a long time since there's been ...
On August 17, China Tower, the world's larges...
Just as a manned spacecraft was sent into space, ...
Part 01 What is “cyberbullying”? "Cyber vi...
Today, digital transformation has become a global...
In order to welcome the Double 12 shopping festiv...
The solution uses new Bluetooth Low Energy (BLE) ...
A few days ago, we shared the Double 11 event of ...