Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
baselayout 1.12.4-r3 & host routes
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
ckoebke
n00b
n00b


Joined: 22 Aug 2005
Posts: 4

PostPosted: Mon Aug 14, 2006 7:39 pm    Post subject: baselayout 1.12.4-r3 & host routes Reply with quote

Hello,

i have to setup some host routes on my webserver, but i didn't get the point how to add them in /etc/conf.d/net . Network routes works perfect.
I tried :


Code:

routes_eth0=(
"default via 192.160.0.1"
"192.168.1.100/32 via 192.168.0.2"
)


and

Code:

routes_eth0=(
"default via 192.160.0.1"
"192.168.1.100/255.255.255.255 via 192.168.0.2"
)


both results in a error and only default route is set.

What did i make wrong ? on older version of baselayout i just used

Code:

routes_eth0=(
"-host 192.168.1.100 gw 192.168.0.2"
)


to get the host route working.

Best regards,

Carsten
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6837
Location: Blighty

PostPosted: Mon Aug 14, 2006 9:58 pm    Post subject: Re: baselayout 1.12.4-r3 & host routes Reply with quote

ckoebke wrote:

Code:

routes_eth0=(
"default via 192.160.0.1"
"192.168.1.100/32 via 192.168.0.2"
)



Be fair and post the whole config

Now if the default route is via 192.160.0.1 then I assume that your ip config (the vital part you neglected to show) is 192.160.0.x or 192.160.x.x. This is important as the host route you are trying to add, the gateway isn't available to you as it's not in your subnet - as it's 192.168 and not 192.160

BTW you do a host route like this

"192.168.1.100 via 192.168.0.2"

But the gateway has to be already reachable
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
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