The configuration of a basic MPLS network is actually very simple and only requires a few basic steps.
The requirements of such a network are the following:
- Enable CEF: CEF is essentially what allows the imposition and disposition of labels in an MPLS network. You must make sure it is enabled globally, as well as on the specific interfaces participating in the MPLS network. When possible enable CEF in distributed mode, which is largely platform dependent. Unfortunately it does not to pertain to the platforms used in this lab.
Enable CEF Globally on the router:
R1(config)#ip cef
Enable CEF on the MPLS participating interfaces:
R1(config–if)#ip route-cache cef
- Configure IGP routing protocol: Interior Gateway Protocols are routing protocols such as RIP, IGRP, EIGRP, and OSPF. In this case OSPF was used on all the routers. IGP routing protocols are needed to populate the routing tables, which CEF operation takes over and label binding ensues.
Configure an IGP protocol on the Router:
R1(config)#router ospf 1
R1(config-router)#network 1.1.1.0 255.255.255.0 area 0
- (Optional) Define Label Distribution Protocol: LDP by default is the label distribution protocol. The only other option is TDP, which in the real world is a overwhelming minority, if used at all.
The command to manually do this is:
R1(config)#mpls label protocol {ldp|tdp}
- (Optional) Assign LDP Router ID: LDP uses the highest IP address on a loopback interface. A loopback interface is a logical interface as opposed to an actual physical interface such as interface gigabit 0/1 of a router. Loopback interfaces are often used as management IPs for telnet sessions, monitoring, or other forms of maintenance or management. If there is no loopback interface defined, the highest IP address on the router becomes the LDP router ID.
To force an interface to be an LDP router interface simply type the command:
R1(config)#mpls ldp router -id [interface type] [number] for example,
R1(config)#mpls ldp router-id gigabit 0/1
The LDP router ID is important in setting up sessions between MPLS routers to exchange label information.
- Configure MPLS or Label Forwarding on the Interface
- This part of the configuration tells the specific interfaces that they are participating in MPLS or Label Forwarding.
Configure MPLS Label Forwarding on the interface:
R11(config)#interface GigabitEthernet 0/0
R1(config-if)#mpls ip
R1(config)#interface GigabitEthernet 0/1
R1(config-if)#mpls ip
Comments
(There are currently no comments for this post.)