From: "Hever C. Rocha" Date: Thu, 06 Sep 2007 20:56:26 +0000 Subject: [LARTC] iproute: add destination route by hostname... Message-Id: <936d0cdf0709061356w686b079fs1c8992fd1ec4cc48@mail.gmail.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0069881108==" List-Id: To: lartc@vger.kernel.org --===============0069881108== Content-Type: multipart/alternative; boundary="----=_Part_1397_4894306.1189112186811" ------=_Part_1397_4894306.1189112186811 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all 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 ... Regards From Brasil ------=_Part_1397_4894306.1189112186811 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all

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 ...

Regards From Brasil

------=_Part_1397_4894306.1189112186811-- --===============0069881108== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============0069881108==--