MPLS configuration

In order to create a functional MPLS based network you need to make sure of 2 things:

1) Your network is routing information properly. You can use interior gateway protocols or static routes.

2)You have enabled the forwarding table (CEF).

3)Configure a loopback interface for each router.

Configuration

//Router R1
R1(config)#ip cef
R1(config)#no mpls ip
R1(config)#mpls label range 100 199     //this is not necessary
R1(config)#mpls ip
R1(config)#mpls ldp router-id loopback0 force     //you need to configure a loopback interface on each router
R1(config)#interface fa0/1
R1(config-if)#mpls ip

//Router R2
R1(config)#ip cef
R1(config)#no mpls ip
R1(config)#mpls label range 200 299
R1(config)#mpls ip
R1(config)#mpls ldp router-id loopback0 force
R1(config)#interface fa0/1
R1(config-if)#mpls ip
R1(config)#interface fa0/0
R1(config-if)#mpls ip

//Router R3
R1(config)#ip cef
R1(config)#no mpls ip
R1(config)#mpls label range 300 399
R1(config)#mpls ip
R1(config)#mpls ldp router-id loopback0 force
R1(config)#interface fa0/0
R1(config-if)#mpls ip

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s