O'Reilly logo

JUNOS Cookbook by Aviva Garrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

14.2. Viewing Information and LDP-Signaled LSPs in the Routing Tables

Problem

After you have configured MPLS and LDP on your router, you want to look at the information in the router's routing tables.

Solution

Look in the inet.3 routing table to view the LDP routes:

	aviva@RouterG> show route table inet.3
	inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
	+ = Active Route, - = Last Active, * = Both
	192.168.16.1/32    *[LDP/9] 1d 23:02:21, metric 1
	                    > via t1-4/0/0.0, Push 100000
	192.168.17.1/32    *[LDP/9] 1d 23:02:21, metric 1
	                    > via t1-4/0/0.0

Look in the mpls.0 table to see the router's label information:

	aviva@RouterG> show route table mpls.0
	mpls.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
	+ = Active Route, - = Last Active, * = Both

	0                  *[MPLS/0] 2d 01:59:47, metric 1
	                      Receive
	1                  *[MPLS/0] 2d 01:59:47, metric 1
	                      Receive
	2                  *[MPLS/0] 2d 01:59:47, metric 1
	                      Receive
	100064             *[ 
 
LDP/9] 1d 23:02:36, metric 1
	                    > via t1-4/0/0.0, Pop
	100064(S=0)        *[LDP/9] 1d 23:02:36, metric 1
	                    > via t1-4/0/0.0, Pop
	100080             *[LDP/9] 1d 23:02:36, metric 1
	                    > via t1-4/0/0.0, Swap 100000

Discussion

After configuring MPLS and LDP, if you look in the default JUNOS routing table, inet.0, you don't see any of the MPLS or LSP routes and you don't see any routers learned from LDP:

	aviva@RouterG> show route table inet.0 inet.0: 12 destinations, 13 routes (12 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 0.0.0.0/0 *[Static/5] 2d 19:44:09 > to 172.19.121.1 via fe-0/0/0.0 10.0.0.0/24 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required