iproute: add destination route by hostname...

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux