MPLS Application Example Configuring MPLS
page 10-36 OmniSwitch AOS Release 6 Network Configuration Guide September 2009
Router 4 (connects to R2 over VLAN 50 and R3 over VLAN 40)
1 Prepare the router by setting up VLANs, port assignments, and interfaces.
-> vlan 40
-> vlan 40 port default 1/2
-> ip interface vlan-40 address 40.40.40.3 vlan 40
-> vlan 50
-> vlan 50 port default 1/5
-> ip interface vlan-50 address 192.168.50.1
-> ip interface Loopback0 address 10.1.1.3
2 Enable the MPLS instance (enabled by default) and create and enable static LSP instances.
-> configure router mpls no shutdown
-> configure router mpls static-lsp to-R3
-> configure router mpls static-lsp to-R3 to 10.10.10.3
-> configure router mpls static-lsp to-R3 push 556 next-hop 192.168.50.3
-> configure router mpls static-lsp to-R3 no shutdown
The above commands created static LSP “to-R3”.
• The “to-R3” instance provides a static LSP from R4 to R3 (10.10.10.3). This instance pushes label
556 onto packets and forwards them to R3.
3 Create and enable MPLS interfaces and label-map actions.
-> configure router mpls interface vlan-50
-> configure router mpls interface vlan-50 no shutdown
-> configure router mpls interface vlan-50 label-map 667
-> configure router mpls interface vlan-50 label-map 667 pop
-> configure router mpls interface vlan-50 label-map 667 no shutdown
-> configure router mpls interface vlan-50 label-map 333
-> configure router mpls interface vlan-50 label-map 333 pop
-> configure router mpls interface vlan-50 label-map 333 no shutdown
The above commands created MPLS interfaces vlan-50.
• MPLS interface vlan-20 will pop incoming labels 558 and 112 off of the packets, marking the end
of MPLS switching.
• MPLS interface vlan-30 will pop incoming labels 888 and 999 off of the packets, marking the end
of MPLS switching.
4 The following commands load and configure the OSPF routing protocol and create the LDP interface
required for the signaled-LSP between R3 and R4:
-> ip load ospf
-> ip ospf area 0.0.0.0
-> ip ospf interface "vlan-40"
-> ip ospf interface "vlan-40" area 0.0.0.0
-> ip ospf interface "vlan-40" status enable
-> ip ospf status enable