Ads 468x60px

Wednesday, June 1, 2011

Maipu - Basic MPLS

In this section, we will see how to configure Basic MPLS in Maipu Routers. Since configuring MPLS in Cisco and Maipu is having little bit difference, not much.
MPLS means you all know, configuring LDP in routers and establishing ldp neighborship with peer routers.

Here is setup of three Maipu routers.

Description -
In the configuration instance, router 1 and router 3 are PE devices; router 2 is the P device; the P and PE devices form the MPLS backbone network. Here, router 1 and router 2 are connected via the serial port; router 2 and router 3 are connected via Ethernet interface. In the MPLS backbone network, OSPF is running as IGP routing protocol and label distributing protocol LDP for label distribution.

Topology 
MPLS Network


Configurations - 

The configuration of router 1:
Command
Description
Router1(config)# mpls ip
Enable the global MPLS label forwarding
Router1(config)# interface loopback0
Configure the loopback port (IP address is 1.1.1.1)
Router1 (config-if-loopback0)# ip address 1.1.1.1 255.255.255.255

Router1 (config-if-loopback0)# exit

Router1 (config)# interface serial 0/1
Configure the interface connected to P (router 2)
Router1 (config-if-serial0/1)# physical-layer sync

Router1 (config-if-serial0/1)# encapsulation ppp

Router1 (config-if-serial0/1)# ip address 21.0.0.1 255.255.255.0

Router1 (config-if-serial0/1)# mpls ip
Enable the label forwarding of the interface
Router1 (config-if-serial0/1)# mpls ldp
Enable the LDP protocol on the interface
Router1 (config-if-serial0/1)# exit

Router1 (config)# router ospf 1
Configure IGP (OSPF)
Router1 (config-ospf)# network 1.1.1.1 0.0.0.0 area 0

Router1 (config-ospf)# network 21.0.0.0 0.0.0.255 area 0

Router1 (config-ospf)#exit

Router1 (config)# mpls ldp
Configure the LDP protocol
Router1 (config-ldp)# router-id 1.1.1.1
Configure the router-id of the LDP
Router1 (config-ldp)# transport-address 1.1.1.1
Configure the LDP transmission address
Router1 (config-ldp)#exit


The configuration of router 2:
Command
Description
Router2(config)# mpls ip
Enable the global MPLS label forwarding
Router2(config)# interface loopback0
Configure the loopback port (the IP address is 2.2.2.2)
Router2 (config-if-loopback0)# ip address 2.2.2.2 255.255.255.255

Router2 (config-if-loopback0)# exit

Router2 (config)# interface fastethernet 1
Configure the interface connected to PE (router 3)
Router2 (config-if-fastethernet1)# ip address 22.0.0.1 255.255.255.0
Configure the IP address
Router2 (config-if-fastethernet1)# mpls ip
Enable the label forwarding of the interface
Router2 (config-if-fastethernet1)# mpls ldp
Enable the LDP protocol on the interface
Router2 (config-if-fastethernet1)#exit

Router2 (config)# interface serial0/1
Configure the interface connected to PE (router 1)
Router2 (config-if-serial0/1)# physical-layer sync

Router2 (config-if-serial0/1)# clock rate 2000000

Router2 (config-if-serial0/1)# encapsulation ppp

Router2 (config-if-serial0/1)# ip address 21.0.0.2 255.255.255.0

Router2 (config-if-serial0/1)# mpls ip
Enable the label forwarding of the interface
Router2 (config-if-serial0/1)# mpls ldp
Enable the LDP protocol on the interface
Router2 (config-if-serial0/1)# exit

Router2 (config)# router ospf 1
Configure IGP (OSPF)
Router2 (config-ospf)# network 21.0.0.0 0.0.0.255 area 0

Router2 (config-ospf)# network 22.0.0.0 0.0.0.255 area 0

Router2 (config-ospf)# network 2.2.2.2 0.0.0.0 area 0

Router2 (config-ospf)#exit

Router2 (config)# mpls ldp
Configure the LDP protocol
Router2 (config-ldp)# router-id 2.2.2.2
Configure the router-id of the LDP
Router2 (config-ldp)# transport-address 2.2.2.2
Configure the LDP transmission address
Router2 (config-ldp)#exit


The configuration of router 3:
Command
Description
Router3(config)# mpls ip
Enable the global MPLS label forwarding
Router3(config)# interface loopback0
Configure the loopback port (the IP address is 3.3.3.3)
Router3 (config-if-loopback0)# ip address 3.3.3.3 255.255.255.255

Router3 (config-if-loopback0)# exit

Router3 (config)# interface fastethernet 1
Configure the interface connected to P (router 2)
Router3 (config-if-fastethernet1)# ip address 22.0.0.2 255.255.255.0
Configure the IP address
Router3 (config-if-fastethernet1)# mpls ip
Enable the label forwarding of the interface
Router3 (config-if-fastethernet1)# mpls ldp
Enable the LDP protocol on the interface
Router3 (config-if-fastethernet1)#exit

Router3 (config)# router ospf 1
Configure IGP (OSPF)
Router3 (config-ospf)# network 22.0.0.0 0.0.0.255 area 0

Router3 (config-ospf)# network 3.3.3.3 0.0.0.0 area 0

Router3 (config-ospf)#exit

Router3 (config)# mpls ldp
Configure the LDP protocol
Router3 (config-ldp)# router-id 3.3.3.3
Configure the router-id of the LDP
Router3 (config-ldp)# transport-address 3.3.3.3
Configure the LDP transmission address
Router3 (config-ldp)#exit



After completing the configuration, use the show mpls ldp session command to view whether the session of targeted-peer is set up or not.
Basically in Maipu your need to configure MPLS ldp in seprate with router-id and with transport address to establish ldp neighborship.

Note - before establishing LDP, Make sure that your IGP is running in cloud. 

Hope this configuration will help you to configure LDP in Maipu router.

For any queries and feedback, Plz comment with your Name and Mail id... 

Monday, May 30, 2011

Maipu Load balancing - Static Routing

Today, in this section we will see about Load balancing using Maipu routers using two ISP. Many time I came across with such kind of requirement from customers. They have two links from two different service providers and to use both links. They want to divide traffic among both links.
                  Here is one simple example. how you can do it. In this senario, customer have /27 pool in LAN. The requirement is 3 host should use one link and two host should use another link.


Here is topology -










Test description -

Under the MP2824 has a Lan interface Sw1, and which IP is 129.255.150.27, under this Lan interface has 5 hosts, some host will go through R2 , some host will go through R3. When the one link was down all the operation will change and everything will work from one link. As the link get restored , it will work as per topology. 


Key Configuration:

ip access-list extended acl1                             ## match host ##
 permit ip host 129.255.150.26 any
 permit ip host 129.255.150.29 any
 exit
ip access-list extended acl2                            ## match host ##
 permit ip host 129.255.150.178 any
 permit ip host 129.255.150.135 any
 permit ip host 129.255.150.35 any
 exit

## Defined two Access list in order to make the route map.

vlan 1
 description default
 port 0-23 untagged
 exit



interface switchethernet0
description ### LOCAL LAN ###
 ip address 129.255.150.27 255.255.0.0
 vlan 1
 ip policy route-map test          ### use the route-map here
 exit


interface fastethernet0
 ip address 1.1.1.1 255.255.255.0
 keepalive 10 gateway 1.1.1.2
 exit



interface fastethernet1
 ip address 2.1.1.1 255.255.255.0
 keepalive 10 gateway 2.1.1.2
exit
            
ip route 0.0.0.0 0.0.0.0 1.1.1.2
ip route 0.0.0.0 0.0.0.0 2.1.1.2

route-map test permit 10
 match ip address acl1
 set ip next-hop 1.1.1.2 2.1.1.2
 exit

route-map test permit 20
 match ip address acl2
 set ip next-hop 2.1.1.2 1.1.1.2
 exit






In this way we can configure Maipu router for Load balancing and redundancy for multiple service provider using route-maps and policy based routing. 


Hope this will helpful for you..


For any feedback and queries, Plz put comment with name and Mail id.. for name you can use Name/URL option in profile.

Related Posts Plugin for WordPress, Blogger...