View previous topic :: View next topic |
Author |
Message |
ckoebke n00b

Joined: 22 Aug 2005 Posts: 4
|
Posted: Mon Aug 14, 2006 7:39 pm Post subject: baselayout 1.12.4-r3 & host routes |
|
|
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 |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6837 Location: Blighty
|
Posted: Mon Aug 14, 2006 9:58 pm Post subject: Re: baselayout 1.12.4-r3 & host routes |
|
|
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 |
|
 |
|