Configuring MPLS MPLS Application Example
OmniSwitch AOS Release 6 Network Configuration Guide September 2009 page 10-33
• The “to-R3” instance provides a static LSP from R2 through transit router R1 to egress router R3
(10.10.10.3). This instance pushes label 777 onto packets and forwards them to R1, where the label
is swapped and the packets are forwarded to R3.
• The “to-R3-alt” instance provides a backup static LSP from R2 directly to R3 (10.10.10.3). If the
“to-R3” tunnel goes down, the Fast ReRoute (FRR) mechanism redirects packets to the “to-R3-alt”
tunnel. The “to-R3-alt” instance then pushes label 112 onto packets and forwards them to R3.
3 Create and enable MPLS interfaces and label-map actions.
-> configure router mpls interface vlan-1
-> configure router mpls interface vlan-1 no shutdown
-> configure router mpls interface vlan-1 label-map 666
-> configure router mpls interface vlan-1 label-map 666 pop
-> configure router mpls interface vlan-1 label-map 666 no shutdown
-> configure router mpls interface vlan-1 label-map 668
-> configure router mpls interface vlan-1 label-map 668 swap 667 next-hop
192.168.50.4
-> configure router mpls interface vlan-1 label-map 668 no shutdown
-> configure router mpls interface vlan-50
-> configure router mpls interface vlan-50 no shutdown
-> configure router mpls interface vlan-50 label-map 556
-> configure router mpls interface vlan-50 label-map 556 swap 557 next-hop
192.168.10.1
-> configure router mpls interface vlan-50 label-map 556 no shutdown
-> configure router mpls interface vlan-50 label-map 556 protect-swap 558 next-
hop 192.168.20.3
-> configure router mpls interface vlan-20
-> configure router mpls interface vlan-20 no shutdown
-> configure router mpls interface vlan-20 label-map 222
-> configure router mpls interface vlan-20 label-map 222 swap 333 next-hop
192.168.50.4
-> configure router mpls interface vlan-20 label-map 222 no shutdown
-> configure router mpls interface vlan-20 label-map 111
-> configure router mpls interface vlan-20 label-map 111 pop
-> configure router mpls interface vlan-20 label-map 111 no shutdown
The above commands created MPLS interfaces vlan-1, vlan-20, and vlan-50.
• MPLS interface vlan-1 will pop incoming label 666 off of the packet, marking the end of MPLS
switching. This same interface will also swap incoming label 668 for label 667 and forward the
label packets to R4 (192.168.50.4).
• MPLS interface vlan-20 will pop incoming label 111 off of the packet, marking the end of MPLS
switching. This same interface will also swap incoming label 222 for label 333 and forward the
label packets to R4 (192.168.50.4).
• MPLS interface vlan-50 will swap incoming label 556 for label 557 and forward the label packets to
R1 (192.168.10.1).
• MPLS interface vlan-50 is also configured with a protect-swap action that is activated if the vlan-50
is unable to perform the swap action. The protect-swap swill swap incoming label 556 for label 558
and forward the label packets to R3 (192.168.20.3).