Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]static route to a device using /etc/conf.d/net
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
guid0
Guru
Guru


Joined: 06 Jul 2003
Posts: 382
Location: The Netherlands / Nederland

PostPosted: Wed Nov 03, 2010 10:21 pm    Post subject: [solved]static route to a device using /etc/conf.d/net Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55160
Location: 56N 3W

PostPosted: Wed Nov 03, 2010 10:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
guid0
Guru
Guru


Joined: 06 Jul 2003
Posts: 382
Location: The Netherlands / Nederland

PostPosted: Wed Nov 03, 2010 11:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
guid0
Guru
Guru


Joined: 06 Jul 2003
Posts: 382
Location: The Netherlands / Nederland

PostPosted: Thu Nov 04, 2010 6:28 pm    Post subject: Reply with quote

solved by adding:
Code:
routes_tap0=("192.168.0.48")

in /etc/conf.d/net :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum