Verifying That MPLS Is Working Correctly
To verify that MPLS is working correctly, perform the following tasks:
Verifying the Physical Layer on the Switches
Verify that the interfaces are up. Perform this verification task on each of the switches.
user@switch> show interfaces xe-* terse
Interface Admin Link Proto Local Remote xe-0/0/0 up up xe-0/0/0.0 up up xe-0/0/1.0 up up xe-0/0/2.0 up up xe-0/0/3.0 up up inet 18.104.22.168/16
xe-0/0/4.0 up up xe-0/0/5.0 up up inet 10.1.5.1/24 mpls xe-0/0/6.0 up up inet 10.1.6.1/24
The show interfaces terse command displays status information about the 10-Gigabit Ethernet interfaces on the switch. This output verifies that the interfaces are up. The output for the protocol family (Proto column) of the core interfaces (xe-0/0/5.0 and xe-0/0/6.0), shows that these interfaces are configured as both inet and mpls. The Local column for the core interfaces shows the IP address configured for these interfaces.
Verifying the Routing Protocol
Verify the state of the configured routing protocol. You should perform this verification task on each of the switches. The state should be Full. If you have configured OSPF as the routing protocol, use the show ospf neighbor command to verify that the routing protocol is communicating with the switch neighbors.
user@switch> show ospf neighbor
Address Interface State ID Pri Dead 127.1.1.1 xe—0/0/5 Full 10.10.10.10 128 39
The show ospf neighbor command displays the status of the routing protocol that has been configured on this switch. The output shows that the state is Full, meaning that the routing protocol is operating correctly—that is, hello packets are being exchanged between directly connected neighbors. For additional information on checking and monitoring routing protocols, see the Junos OS Routing Protocols and Policies Command Reference .
Verifying the Core Interfaces Being Used for the MPLS Traffic
Verify that the state of the MPLS interface is Up. You should perform this verification task on each of the switches.
user@switch> show mpls interface
Interface State Administrative groups ge—0/0/5 Up <none> ge—0/0/6 Up <none>
The show mpls interface command displays the status of the core interfaces that have been configured to belong to family mpls. This output shows that the interface configured to belong to family mpls is up.
Verify the state of the RSVP session. You should perform this verification task on each of the switches.
user@switch> show rsvp session
Ingress RSVP: 1 sessions To From State Rt Style Labelin Labelout LSPname 127.1.1.3 127.1.1.1 Up 0 1 FF - 300064 lsp_to_pe2_ge1 Total 1 displayed, Up 1, Down 0 Egress RSVP: 1 sessions To From State Rt Style Labelin Labelout LSPname 127.1.1.1 127.1.1.3 Up 0 1 FF 299968 - lsp_to_pe1_ge1 Total 1 displayed, Up 1, Down 0 Transit RSVP: 0 sessions Total 0 displayed, Up 0, Down 0
This output confirms that the RSVP sessions are up.