On Saturday, 2 September 2017 19:54:48 BST Ian Zimmerman wrote:
> What is the exact syntax of the *_routes lines in the /etc/conf.d/net
> file, or where is it documented?
> 
> The wiki gives a couple of examples, but they are all either just for
> dhcp (so no configurable routes) or else they are of the form
> 
> eth0_routes="default via eth0"
> 
> "via" is not something I can use on the command line of the route
> command, at least according to its manpage.  So it can't be just
> straight repetition of the command line.  But then, what is it?
> 
> Motivation: I want to add a route for a point-to-point interface.

The /usr/share/doc/netifrc-0.5.1/net.example.bz2 page offers this:

10.0.0.0/8 via 192.168.0.1

Is this what you are after?

If you want to add a route in real time using the CLI, then this would work:

ip route add 10.0.0.0/8 via 192.168.0.1 dev eth0

-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to