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

8.1. Viewing the Routes in the Routing Table

Problem

You want to check the routing table to see that it contains the routes you expect to other routers in your domain and to routers in other ASs.

Solution

The show route command shows the contents of the routing table:

	aviva@RouterA> show route
	inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
	+ = Active Route, - = Last Active, * = Both
	10.0.16.0/24       *[Direct/0] 5d 17:37:05
	                    > via fe-0/0/0.0
	10.0.16.1/32       *[Local/0] 1w0d 15:51:30
	                      Local via fe-0/0/0.0
	10.0.21.0/24       *[Direct/0] 1w0d 17:32:48
	                    > via se-0/0/3.0
	10.0.21.1/32       *[Local/0] 1w0d 17:32:53
	                      Local via se-0/0/3.0
	192.168.42.1/32    *[Direct/0] 5d 18:02:37
	                    > via lo0.0
	__juniper_private1__.inet.0: 2 destinations, 2 routes (2 active, 0 holddown, 0
	hidden)
	+ = Active Route, - = Last Active, * = Both
	10.0.0.1/32        *[Direct/0] 1w0d 19:02:26
	                    > via lo0.16385
	10.0.0.16/32       *[Direct/0] 1w0d 19:02:26
	                    > via lo0.16385

If IPv6 is running on the router, the routing table contains its routes. These are listed at the end of the show route command, or you can display them separately with the following command:

	aviva@RouterA> show route table inet6.0 inet6.0: 6 destinations, 8 routes (6 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 9009:1::/64 *[Direct/0] 00:01:08 > via se-0/0/3.0 [Direct/0] 00:01:08 > via fe-0/0/0.0 9009:1::1/128 *[Local/0] 00:01:08 Local via fe-0/0/0.0 9009:1::3/128 *[Local/0] 00:01:08 Local via se-0/0/3.0 fe80::/64 *[Direct/0] 00:01:08 > via se-0/0/3.0 ...

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