View previous topic :: View next topic |
Author |
Message |
guid0 Guru


Joined: 06 Jul 2003 Posts: 382 Location: The Netherlands / Nederland
|
Posted: Wed Nov 03, 2010 10:21 pm Post subject: [solved]static route to a device using /etc/conf.d/net |
|
|
Everything is almost exactly how I want it but I would like to make things Gentoo network configuration compliant
How do I incorporate a static route to a device like:
Code: | route add -host 192.168.0.48 dev tap0 |
into a valid /etc/conf.d/net configuration line?
The net.example does not seem to hold any clues (for me at least) on how to deal with this.
Tnx in advance,
guid0
Last edited by guid0 on Thu Nov 04, 2010 6:29 pm; edited 1 time in total |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55160 Location: 56N 3W
|
Posted: Wed Nov 03, 2010 10:46 pm Post subject: |
|
|
guid0,
The baselayout2 example is:-
Code: | routes_eth0="default via 192.168.100.1
192.168.10.0/24 via 192.168.100.1" |
baelayout1 needs soem extra () brackets. I don't have a baselayout1 box to look at. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
guid0 Guru


Joined: 06 Jul 2003 Posts: 382 Location: The Netherlands / Nederland
|
Posted: Wed Nov 03, 2010 11:09 pm Post subject: |
|
|
Hi NeddySeagoon,
Thanks for looking into this. I guess im using baselayout-1.. Unfortunately I cannot test right now (bedtime ) but i am not sure this will get me:
Code: |
test1 ~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.48 * 255.255.255.255 UH 0 0 0 tap0
|
but instead will get me:
Code: |
test1 ~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 192.168.100.1 255.255.255.0 UH 0 0 0 eth0
|
which is not what im after. |
|
Back to top |
|
 |
guid0 Guru


Joined: 06 Jul 2003 Posts: 382 Location: The Netherlands / Nederland
|
Posted: Thu Nov 04, 2010 6:28 pm Post subject: |
|
|
solved by adding:
Code: | routes_tap0=("192.168.0.48") |
in /etc/conf.d/net  |
|
Back to top |
|
 |
|