Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Sat Aug 19, 2017 2:43 am


Author Message
admin
Post  Post subject: Junos: How to list routing table IDs  |  Posted: Mon Jan 19, 2015 3:53 pm
Site Admin

Joined: Mon Aug 03, 2009 8:43 am
Posts: 95

Offline
 

Junos: How to list routing table IDs

Junos: How to list routing instance IDs

Some SRX or MX debugs may refer to routing instance as routing table ID. Example is the SRX ike debugs shown below:
Code:
[Jan 15 19:40:08][1.1.1.1 <-> 3.3.3.3]  ike_send_packet: Start, send SA = { ad30d893 8225cb50 - 414e8319 944abd60}, nego = 0, dst = 3.3.3.3:500,  routing table id = 4
[Jan 15 19:40:08][1.1.1.1 <-> 3.3.3.3]  ike_send_packet: Start, send SA = { 6885acfe 77eda4bf - ae964ea7 7c63fda6}, nego = 0, dst = 3.3.3.3:500,  routing table id = 4
[Jan 15 19:40:32][1.1.1.1 <-> 3.3.3.3]  ike_send_packet: Start, send SA = { 04dce81f ba229dec - 00000000 00000000}, nego = -1, dst = 3.3.3.3:500,  routing table id = 4
[Jan 15 19:40:32][1.1.1.1 <-> 3.3.3.3]  ike_send_packet: Start, send SA = { 04dce81f ba229dec - 7177b564 59cd00f1}, nego = -1, dst = 3.3.3.3:500,  routing table id = 4
[Jan 15 19:40:32][1.1.1.1 <-> 3.3.3.3]  ike_send_packet: Start, send SA = { 04dce81f ba229dec - 7177b564 59cd00f1}, nego = -1, dst = 3.3.3.3:500,  routing table id = 4
[Jan 15 19:40:32][1.1.1.1 <-> 3.3.3.3]  ike_send_packet: Start, send SA = { 04dce81f ba229dec - 7177b564 59cd00f1}, nego = 0, dst = 3.3.3.3:500,  routing table id = 4
[Jan 15 19:40:32][1.1.1.1 <-> 3.3.3.3]  ike_send_packet: Start, send SA = { 04dce81f ba229dec - 7177b564 59cd00f1}, nego = 0, dst = 3.3.3.3:500,  routing table id = 4


The above ipsec endpoint 3.3.3.3 is reachable via an interface residing in a routing instance. Here is the relevant SRX configuration:
Code:
user@srx> show configuration security ike gateway remotegw-gw
ike-policy remotegw;
address 3.3.3.3;
dead-peer-detection {
    interval 20;
    threshold 2;
}
no-nat-traversal;
local-identity hostname srx;
remote-identity hostname remotegw;
external-interface ge-0/0/5.10;

user@srx> show interfaces routing-instance MYVR terse
Interface               Admin Link Proto    Local                 Remote
ge-0/0/5.10                   up    up   inet     1.1.1.1/25
                                   inet6    fe80::2a02:2f0f:27/10



So to match a routing table id to a routing instance name, go to vty and issue "show route ip". On srx you can jump to vty directly from CLI:
Code:
user@srx> start shell pfe network fwdd
FLOWD_OCTEON(srx vty)# sh route ip
IPv4 Route Table 4, MYVR.4, 0x0:             <-- Route table ID 4
Destination   NH IP Addr      Type     NH ID Interface
------------  --------------- -------- ----- ---------


How to find Junos routing tables IDs from CLI in SRX branch device:
Code:
> request pfe execute command "show route ip " target fwdd | match "Route Table"
GOT: IPv4 Route Table 0, default.0, 0x0:
GOT: IPv4 Route Table 1, __juniper_private1__.1, 0x20:
GOT: IPv4 Route Table 2, __juniper_private2__.2, 0x0:
GOT: IPv4 Route Table 3, __master.anon__.3, 0x0:
GOT: IPv4 Route Table 4, MYVR.4, 0x0:              <-- Route table ID 4

_________________
VPSie - SSD VPS servers in AMS-IX, LINX, DE-CIX
https://vpsie.com





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "Junos: How to list routing table IDs"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Junos: ping: invalid routing instance `RI0'

mandrei99

0

1780

Fri Jan 03, 2014 10:11 am

mandrei99 View the latest post

There are no new unread posts for this topic. MTR / My traceroute in Junos

mandrei99

1

3259

Mon Oct 10, 2016 5:54 am

barrel View the latest post

There are no new unread posts for this topic. Juniper - Junos 11.4R8 based Olive

mandrei99

1

2677

Tue Jun 18, 2013 5:36 am

mandrei99 View the latest post

There are no new unread posts for this topic. Junos: How to show uncommitted changes and cancel them

mandrei99

1

17542

Wed Sep 25, 2013 7:31 am

mandrei99 View the latest post

There are no new unread posts for this topic. Juniper SRX / Junos rescue configuration is not set

mandrei99

0

3350

Mon Feb 16, 2015 11:42 am

mandrei99 View the latest post

There are no new unread posts for this topic. Junos - How to limit arguments to ping CLI command

mandrei99

1

866

Thu Jun 27, 2013 4:04 am

admin View the latest post

There are no new unread posts for this topic. How to search junos configuration option within cli help apropos

mandrei99

0

833

Mon Jan 12, 2015 12:34 pm

mandrei99 View the latest post

There are no new unread posts for this topic. Junos system configuration archival is not working over scp

mandrei99

0

2938

Thu Jan 01, 2015 4:06 am

mandrei99 View the latest post

There are no new unread posts for this topic. Junos: How to increase the number of configuration rollbacks

admin

0

1432

Wed Nov 05, 2014 11:00 am

admin View the latest post

There are no new unread posts for this topic. Junos: How to disconnect idle ssh connections in configuration mode - Juniper SRX

mandrei99

0

18645

Tue May 14, 2013 5:40 am

mandrei99 View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO