From: Damjan Date: Mon, 15 Nov 2004 20:03:32 +0000 Subject: Re: [LARTC] command to list ip route tables Message-Id: <20041115200332.GA14365@legolas.on.net.mk> List-Id: References: <20041110212106.GC11588@legolas.on.net.mk> In-Reply-To: <20041110212106.GC11588@legolas.on.net.mk> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: lartc@vger.kernel.org > > 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 ' 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 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'. -- damjan | дамјан This is my jabber ID --> damjan@bagra.net.mk <-- not my mail address!!! _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/