Get the App
SLTechnology News&Howtos  ›  Network Security  › 

How to implement MPLS and LDP tag Distribution

Shulou Source: shulou.com Published: 2022-05-31 16:40:51 10月01日 Update

This article analyzes "how to implement MPLS and LDP tag distribution". The content is detailed and easy to understand, and friends who are interested in "how to achieve MPLS and LDP tag distribution" can follow the editor's idea to read it slowly and deeply. I hope it will be helpful to everyone after reading. Let's learn more about "how to distribute MPLS and LDP tags" with the editor.

Lab requirements:

1. Purpose-based LDP session

2. Advertise via LDP control tag

3. MPLS LDP inbound tag bundling filtering

Description of the topology environment:

1. All interconnected IP are shown in the figure.

2. The Loopback0 port address of all the devices is X.XUniver 32Magi X, which is the equipment number.

3. All devices run OSPF to advertise directly connected network segment addresses and Loopback addresses

4. All devices are running in the MPLS domain

Basic implementation:

1) implementation of OSPF protocol

2) basic implementation of MPLS

Implement the command:

Globally:

Mpls label range 100 199

Mpls label protocol ldp

Mpls ldp router-id Loopback0 force

Under the API:

Mpls ip

Achieve the result:

Show mpls ldp neighbor

Show mpls ldp bindings

Show mpls forwarding-table

The experimental requirements are realized:

1. Implementation method: configure a purpose-based LDP neighbor relationship on R2, and configure R4 to receive only destination-based LDP sessions initiated by a specific LDP router, that is, R2.

Command implementation:

Configuration on R2:

Mplsldp neighbor 4.4.4.4 targeted ldp

Configuration on R4:

Mplsldp discovery targeted-hello accept from accpet-ldp

Ipaccess-list standard accpet-ldp

Permit2.2.2.2

Achieve the result:

Show mpls ldp neighbor 4.4.4.4 detail

2. Implement the command:

Configuration of R3:

Nompls ldp advertise-labels [if the command is not configured, R3 will still advertise the tags of all prefixes through LDP]

Mpls ldp advertise-labels for 1 to 2

Access-list1 permit 1.1.1.1

Access-list1 permit 2.2.2.2

Access-list1 deny any

Access-list2 permit 4.4.4.4

Access-list2 deny any

Inspection results command:

Configuration on R3:

Show mpls ldp bindings advertisement-acls

Configuration on R4:

Show mpls ldp bindings 3.3.3.3 detail

Achieve the result:

Extension: advertise all bundles of all prefixes to other LDP peers

Implement the command:

Configuration on R3:

Mpls ldp advertise-labels for other-prefixes to other-ldp-peers

Ip access-list standard other-ldp-peers

Deny 4.4.4.4

Permit any

Ip access-list standard other-prefixes

Permit any

3. Implement the command:

Configuration on R4:

Mpls ldp neighbor 5.5.5.5 labels accept 1

Access-list1 permit 5.5.5.5

Access-list1 permit 2.2.2.2

Access-list1 permit 3.3.3.3

Access-list1 permit 1.1.1.1

Achieve the result:

On how to achieve MPLS and LDP tag distribution to share here, I hope that the above content can make you improve. If you want to learn more knowledge, please pay more attention to the editor's updates. Thank you for following the website!

Tags: Configuration labels commands results devices advertisements addresses purposes content prefixes basics knowledge follow requirements learning experiments operations global interests ideas Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Shulou Tech Info MariaDB Docker Shulou Technology