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.
really nice post!!
ReplyDeleteI'll try it
Thank you. Please let me know if you need any help/comments/suggestions etc.
ReplyDeleteI 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
ReplyDeletewhat i missing ? help me please
if you see my post please answer at cartridge2555@gmail.com
Deletethank you for next advance
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.
Deleteenable
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'.
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
ReplyDeleteShould I use ospf or eigrp ? staid route have problem ?
Thank you
sorry I type wrong , static route have problem ?
DeleteI believe the issue is R1 <-> R3 and R2 <-> R4 are not ldp neighbors.
DeletePlease 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.
This comment has been removed by the author.
ReplyDeleteI have sent phonlawat working configs for all the routers .. please contact me at arwinratgmaildotcom if anyone else needs it.
ReplyDeletethank you for your post. It's really interesting.
ReplyDeleteBut 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!
Please send the configuration for all the routers clearly to my email: thanh_danh_08@gmail.com
DeleteThank you very much.
I tried emailing you the configs but your email bounced. Please send me your correct email address.
DeleteHere is the working configurations for all the routers.
Deletehttps://groups.google.com/forum/?fromgroups&hl=en#!topic/ithitman-doc-files/dDxJiZa2q-s
Let me know if you have any questions.
may i know what IOS did you use?
ReplyDeleteIt'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