Pages

Wednesday, August 24, 2011

Configuring MPLS L2VPN InterAS VPWS - EoMPLS Port Mode

In this blogtorial I am going to show you a quick how-to on implementing L2VPN and more specifically Virtual Private Wire Service (EoMPLS Port Mode). VPWS can save money thus increasing the revenue for service providers because P2P circuits are usually more expensive. We are going to be configuring EoMPLS (Ethernet Over MPLS - Port Mode). Note: EoMPLS Modes - Port Mode, VLAN mode and VLAN Re-write mode. AToM (Any transport over MPLS) is sort of the umbrella which covers EoMPLS, FRoMPLS, and ATMoMPLS.

Consider the simple topology below.


Relevant configurations are posted below.
First let's get R1 and R2 configured with the appropriate commands.



What are we doing above? 

1) MPLS label protocol to be LDP instead of TDP (by default it is LDP)
2) Create a pseudowire-class
3) Create a l2 VFI (Virtual Forwarding Instance)
4) Create the neighbor statements
5) Create Loopbacks
6) Interface description and IP addresses / enable MPLS BGP forwarding / enable mpls ip
7) Enable OSPF and get the appropriate networks in Area 0
8) Enable BGP and peer with the other provider and send label information


Now let's get the Provider Edge (PE) routers configured.


What are we doing above? 

1) MPLS label protocol to be LDP instead of TDP (by default it is LDP)
2) Create a pseudowire-class
3) Create Loopbacks
4) Interface ip / enable mpls ip
5) Enable OSPF and get the networks in Area 0
6) Enable Xconnect


Now let's work on the Customer Edge.


Notice how we can transparently ping from R5 to R6.


Let's see some show commands that are useful in verifying our config.


That's it. Easy as that VPWS in a nutshell :)


Click here for full configurations on all the routers. 


Many more articles to come so stay tuned and "Join this site" on the right. 

16 comments:

  1. really nice post!!
    I'll try it

    ReplyDelete
  2. Thank you. Please let me know if you need any help/comments/suggestions etc.

    ReplyDelete
  3. I already done but I have something problem about the both customer edge , I drag left FastEthernet for connecting CE Router with qemu host and I set up FastEthernet ip 192.168.106.1/24 which I found that qemu host can ping 192.168.106.1 and 172.16.9.1 but I cannot ping 172.16.9.2
    what i missing ? help me please

    ReplyDelete
    Replies
    1. if you see my post please answer at cartridge2555@gmail.com
      thank you for next advance

      Delete
    2. If all the mpls stuff is working then I would assume that 172.16.9.2 does not know how to get back to 192.168.106.1/24. Get on the other CE and type show ip route and see if you can see a route back to 192.168.106.0/24. Run some routing protocols / static route between the CE's .. eigrp? ospf? for example .. try this on both CE routers.

      enable
      config t
      router ospf 1
      network 172.16.9.0 0.0.0.255 area 0
      redistribute connected

      That should get the routes advertised between the CE.

      Let me know if that works.

      If not give me some show commands mentioned above such as 'show mpls l2transport vc'.

      Delete
  4. Sorry forget that I use static route on Lefthand CE Router --> ip route 0.0.0.0 0.0.0.0 172.16.9.1 and Righthand CE Router --> ip route 0.0.0.0 0.0.0.0 172.16.9.2 result is nothing

    Should I use ospf or eigrp ? staid route have problem ?
    Thank you

    ReplyDelete
    Replies
    1. sorry I type wrong , static route have problem ?

      Delete
    2. I believe the issue is R1 <-> R3 and R2 <-> R4 are not ldp neighbors.

      Please post the output for 'show mpls ldp neighbor' on R1 and R2. If they show only 1 neighbor then we have a problem. Also post the output for 'show mpls l2transport vc' and 'show xconnect all' on R3 and R4.

      Try this on R1 and R2 'mpls ldp router-id Loopback0 force'. If the ldp local id happens to be something that your peer cant get to/reach then the ldp neighborship will not form therefore your mpls will be broken (routers cannot exchange/switch labels).

      Once you post those the show commands I should be able to figure it out.

      Delete
  5. This comment has been removed by the author.

    ReplyDelete
  6. I have sent phonlawat working configs for all the routers .. please contact me at arwinratgmaildotcom if anyone else needs it.

    ReplyDelete
  7. thank you for your post. It's really interesting.
    But i have some problem. I follow these task as what you showed, but i can't ping 172.16.9.1 from R5.
    Could you send the complete configuration for all the routers in the topology. Thanks so much!

    ReplyDelete
    Replies
    1. Please send the configuration for all the routers clearly to my email: thanh_danh_08@gmail.com
      Thank you very much.

      Delete
    2. I tried emailing you the configs but your email bounced. Please send me your correct email address.

      Delete
    3. Here is the working configurations for all the routers.

      https://groups.google.com/forum/?fromgroups&hl=en#!topic/ithitman-doc-files/dDxJiZa2q-s

      Let me know if you have any questions.

      Delete
  8. may i know what IOS did you use?

    ReplyDelete
    Replies
    1. It's been literally years but I think it was 12.4 maybe? I dont do any mpls anymore although it was great when I did do it. Interesting technology...

      Delete