Mark Hobley wrote:
> Johan Lindquist <spam@smilfinken.net> wrote:
>> routes_eth0=( "default gw 192.168.2.1")
>
> I changed mine from:
>
> routes_eth0=( "default via 10.0.0.1" )
>
> to
>
> routes_eth0=( "default gw 10.0.0.1" )
>
> It makes no difference. The default gateway information is being added
> to the routing table by the startup scripts. I wonder if there is a bug.
>
> If I manually type:
>
> route add default gateway 10.0.0.1 eth0
>
> The interface comes to life:
>
> ping www.google.co.uk
> 64 bytes from ug-in-f104.google.com (66.249.93.104)
This is quite strange.
Are you setting anything else in /etc/conf.d/net besides config_eth0,
routes_eth0 and dns servers?
In your configuration statement
config_eth0=( "10.0.0.13 netmask 255.255.255.0 brd 10.255.255.255" )
it seems that the broadcast address is wrong (shouldn't that be 10.0.0.255
instead?). Anyway, I think that is not the source of your problem.
My only suggestions at this point are:
- make sure the syntax of /etc/conf.d/net is correct (eg, there are no rogue
characters, semicolons, dots, unbalanced parenthesis, etc.)
- try removing the dns_servers_eth0 line (putting the DNS servers manually
in /etc/resolv.conf instead), in case that line somehow indirectly affect
the process (just a shot in the dark anyway)
- try to explicitly use a specific/different interface handler, eg using
modules=( "ifconfig" )
or
modules=( "iproute2" )
in /etc/conf.d/net and see if that makes some difference. Note that the two
line are mutually exclusive (use only one of the two at a given time).
Hope this helps.