On Thu May 04 2000 at 20:23, "Sandor R Repas" wrote:

> Hi!
> 
> How can I print the gateway address to a specified IP address?
> No netstat -nr, or route, or traceroute, pls.

/sbin/ip route show

cat /proc/net/route

> I have an IP address, something like this: 192.168.32.7.
> I have a route to 192.168.32.0/24 gw:10.0.0.1 in the kernel routing table.
> So, how can I print the route?
> 
> (I have a huge routing table, and I need to import some routes into an SQL
> table with a PERL script, or C code.)
> (On Cisco: sho ip route 192.168.32.7)

/sbin/ip ro sh 192.168.32.0/24

This utility is destined to replace /sbin/ifconfig and /sbin/route

BTW, it is same the utility that gives you access to the IPv6
networking code, and for setting up multiple routing tables and
routing *rules*... all the advanced router stuff in the 2.2.x and
2.4.x kernels.

Cheers
Tony
 -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
  Tony Nugent <[EMAIL PROTECTED]>    Systems Administrator, RHCE
  GrowZone OnLine       (a project of) GrowZone Development Network
  POBox 475 Toowoomba Oueensland Australia 4350    Ph: 07 4637 8322
 -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to