Experimental requirements:
1. Purpose-based LDP session
2. Control label notification through LDP
3. MPLS LDP inbound Tag bundle filtering
Topology environment description:
1. All interconnection IPs are as shown in the figure
2. The Loopback0 port address of all devices is X.X. #4. All devices run in the MPLS domain
Basic implementation:1)OSPF protocol implementation2)MPLS basic implementation
Implementation command:
Globally:
mpls label range 100 199
mpls label protocol ldp
mpls ldp router-id Loopback0 force
Under the interface:
mpls ip
Implementation result:
show mpls ldp neighbor
show mpls ldp bindings
show mpls forwarding-table
Experimental requirement implementation:1. Implementation method: Configure purpose-based LDP neighbor relationship on R2, configure only receive on R4 A purpose-based LDP session initiated by a specific LDP router, 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
Implementation result:
show mpls ldp neighbor 4.4.4.4 detail
2. Implementation command:R3 configuration:
nompls ldp advertise-labels [If If this command is not configured, R3 will still advertise the labels 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
Check results Command:
Configuration on R3:
show mpls ldp bindings advertisement-acls
Configuration on R4:
show mpls ldp bindings 3.3.3.3 detail
Implementation results:
##Extension: to other LDP peers Body advertises all bundles for all prefixes
Implementation command:
Configuration on R3:mpls ldp advertise-labels for other-prefixes to other-ldp-peersip access-list standard other-ldp-peersdeny 4.4.4.4permit anyip access-list standard other-prefixespermit any3. Implementation command:
Configuration on R4:
mpls ldp neighbor 5.5.5.5 labels accept 1 access-list1 permit 5.5.5.5access-list1 permit 2.2.2.2access-list1 permit 3.3.3.3access-list1 permit 1.1 .1.1Achievement results:The above is the detailed content of How to implement MPLS and LDP label distribution. For more information, please follow other related articles on the PHP Chinese website!