Skip to contentSkip to conversation

command to list ip route tables

LARTC Damjan 4 participants 6 messages Nov 10, 2004 – Nov 15, 2004

lore
Share & tools
lore

Damjan

author
#0 lore raw

In linux one can have several route tables. But how do I list the route tables?

(and no 'ip rule list' is not it)

Signature · 5 lines
damjan | дамјан
This is my jabber ID --> [email protected] <-- not my mail address!!!
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#1 lore raw
Quoted 4 lines · Damjan

In linux one can have several route tables. But how do I list the route tables?

(and no 'ip rule list' is not it)

ip route list table <table name>

HTH,

Signature · 5 lines
Martin

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Damjan
Quoted 5 lines · Damjan

In linux one can have several route tables. But how do I list the route tables?

(and no 'ip rule list' is not it)

with ip rule show' you can determine which tables are set/used. with ip route show table <TABLE>' you can list the table you want to look in.

# ip rule show
0:      from all lookup local 
32766:  from all lookup main 
32767:  from all lookup default

in this example are local, main and default the tables

Signature · 13 lines
Robert Felber (EDV-Leitung)
Autohaus Erich Kuttendreier 
Drosselweg 21
81827 Muenchen

Tel: +49 (0) 89 / 453 12-86
Fax: +49 (0) 89 / 453 12-80

PGP: 896CF30B
PGP-Fingerprint: CF36 AA93 9716 63E8 962F 15CC A80E 1A79 BF77 25EA
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
author
#3 lore raw
In reply to Damjan
Quoted 9 lines
Quoted 5 lines

In linux one can have several route tables. But how do I list the route tables?

(and no 'ip rule list' is not it)

with ip rule show' you can determine which tables are set/used. with ip route show table <TABLE>' you can list the table you want to look in.

Quoted 6 lines
# ip rule show
0:      from all lookup local 
32766:  from all lookup main 
32767:  from all lookup default

in this example are local, main and default the tables

yes, but maybe I have some tables defined, that are temporarily not used by the ip rules, so they will not show up in `ip rule show'.

Signature · 5 lines
damjan | дамјан
This is my jabber ID --> [email protected] <-- not my mail address!!!
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
author
#5 lore raw
In reply to Damjan
Quoted 10 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

In linux one can have several route tables. But how do I list the route tables?

(and no 'ip rule list' is not it)

ip route help

TABLE_ID := [ local | main | default | all | NUMBER ]

ip route show all

its actually `ip route show table all', thanks.

Signature · 5 lines
damjan | дамјан
This is my jabber ID --> [email protected] <-- not my mail address!!!
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/