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
The methods for configuring NAT (Network Address ...
[[420148]] Introduction There are already multipl...
According to foreign media reports, in the past y...
The Internet is evolving at an unprecedented pace...
According to foreign media reports, Thailand'...
China Telecom and China Unicom jointly announced ...
iONcloud under Krypt currently offers a 50% disco...
With the continuous extension of network technolo...
From the first three-wheeled vehicle developed by...
Standardization and unification have great advant...
With the news that Nokia and Ericsson won the bid...
[[336158]] This article is reprinted from the WeC...
Today, the typical structure of an internet conne...
CommScope recently said that in the future of bro...
This article is reprinted from the WeChat public ...