-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Greetings Hever,
: How to add a static route to a hostname with iproute2?
:
: I tried:
: ip route add linux.com via 192.168.1.1
:
: I got the following reply:
: Error: an inet prefix is expected rather than "linux.com".
:
: With "route command" I do not have problems
: route add -host linux.com gw 200.214.148.140
:
: As the iproute2 is the standard in the current linus distros, I
: would like to know if is possible to use the same resource ...
The iproute2 package does not understand names. If you wish to
use the iproute2 tools, use the following:
ip route add 66.35.250.176 via 192.168.1.1
Some regard iproute''s behaviour a misfeature.
Some regard route''s behaviour a misfeature.
- -Martin
- --
Martin A. Brown
http://linux-ip.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: pgf-0.72 (http://linux-ip.net/sw/pine-gpg-filter/)
iD8DBQFG4VYHHEoZD1iZ+YcRAjC+AJ9GzND1XDuH+bE4km12sbha/+2oGACeKuAR
bn1kVrMaNnpSB7+vmxsdWyk=TNHN
-----END PGP SIGNATURE-----