1 |
On Saturday, 2 September 2017 19:54:48 BST Ian Zimmerman wrote: |
2 |
> What is the exact syntax of the *_routes lines in the /etc/conf.d/net |
3 |
> file, or where is it documented? |
4 |
> |
5 |
> The wiki gives a couple of examples, but they are all either just for |
6 |
> dhcp (so no configurable routes) or else they are of the form |
7 |
> |
8 |
> eth0_routes="default via eth0" |
9 |
> |
10 |
> "via" is not something I can use on the command line of the route |
11 |
> command, at least according to its manpage. So it can't be just |
12 |
> straight repetition of the command line. But then, what is it? |
13 |
> |
14 |
> Motivation: I want to add a route for a point-to-point interface. |
15 |
|
16 |
The /usr/share/doc/netifrc-0.5.1/net.example.bz2 page offers this: |
17 |
|
18 |
10.0.0.0/8 via 192.168.0.1 |
19 |
|
20 |
Is this what you are after? |
21 |
|
22 |
If you want to add a route in real time using the CLI, then this would work: |
23 |
|
24 |
ip route add 10.0.0.0/8 via 192.168.0.1 dev eth0 |
25 |
|
26 |
-- |
27 |
Regards, |
28 |
Mick |