On Tue, Jan 27, 2004 at 09:03:26AM -0800, Sony Lloyd wrote:
> route add -host 192.168.1.2 netmask 255.255.255.0 eth0 and it gives me error "Usager: inet_route [-vF ] add {host|-net} target [gw GW] [metric M] [netmask N] [mss MSS] ..etc "
[...]
| % route add -host 192.168.1.2 netmask 255.255.255.0 eth0
| route: netmask 000000ff doesn't make sense with host route
| Usage: route [-nNvee] [-FC] [<AF>] List kernel routing tables
| route [-v] [-FC] {add|del|flush} ... Modify routing table for AF.
|
| route {-h|--help} [<AF>] Detailed usage syntax for specified AF.
| route {-V|--version} Display version/author and exit.
|
| -v, --verbose be verbose
| -n, --numeric don't resolve names
| -e, --extend display other/more information
| -F, --fib display Forwarding Information Base (default)
| -C, --cache display routing cache instead of FIB
|
| <AF>=Use '-A <af>' or '--<af>'; default: inet
| List of possible address families (which support routing):
| inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
| netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
| x25 (CCITT X.25)
| % route --version
| net-tools 1.60
| route 1.98 (2001-04-15)
| +NEW_ADDRT +RTF_IRTT +RTF_REJECT +I18N
| AF: (inet) +UNIX +INET +INET6 +IPX +AX25 +NETROM +X25 +ATALK +ECONET +ROSE
| HW: +ETHER +ARC +SLIP +PPP +TUNNEL +TR +AX25 +NETROM +X25 +FR +ROSE +ASH +SIT +FDDI +HIPPI +HDLC/LAPB
If you can't figure out the route syntax (I never can), consider using
the iproute package, it's much more orthogonal, IMHO. The general
know-how can more or less be found in the Linux Networking HOWTO.
And someone should write a real documentation for all these tools.
Cheers,
Jan.
--
Jan Minar "Please don't CC me, I'm subscribed." x 9
Attachment:
pgpo8q7pSNSQM.pgp
Description: PGP signature