You are not logged in.

#1 2009-10-01 15:17:50

offset
Member
From: Perth, Australia
Registered: 2009-10-01
Posts: 3

Internet lost after each reboot. (Must invoke route add) [SOLVED]

Every boot I have to enter 'route add default gw 192.168.1.254' to get my connection back in action.

I'm currently using netcfg over a WPA-PSK network with a static IP.

rc.conf has -

gateway="default gw 192.168.1.254"
ROUTES=(gateway)

and resolv.conf has -
nameserver 192.168.1.254

I was under the impression the settings in rc.conf should automatically configure it, although there is obviously something else in the mix.

Many thanks in advance.

Last edited by offset (2009-10-02 18:42:20)

Offline

#2 2009-10-01 15:40:53

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: Internet lost after each reboot. (Must invoke route add) [SOLVED]

Use net-profiles to connect your wireless network at boot. You can define gateway/ip/DNS inside the network profile (check out /etc/network.d/examples/ethernet-static) and comment out the entries in rc.conf.

Last edited by hokasch (2009-10-01 15:42:17)

Offline

#3 2009-10-01 22:47:28

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,222
Website

Re: Internet lost after each reboot. (Must invoke route add) [SOLVED]

offset wrote:

I was under the impression the settings in rc.conf should automatically configure it, although there is obviously something else in the mix.

Not if you're using netcfg which replaces the rc.conf setup. As hokasch mentioned, if you're using netcfg setup net-profiles in your rc.conf instead of eth0=... and ROUTES=...

Offline

#4 2009-10-02 06:07:09

offset
Member
From: Perth, Australia
Registered: 2009-10-01
Posts: 3

Re: Internet lost after each reboot. (Must invoke route add) [SOLVED]

Cheers, will test this when I get home from work and update the situation.

Offline

#5 2009-10-02 18:40:32

offset
Member
From: Perth, Australia
Registered: 2009-10-01
Posts: 3

Re: Internet lost after each reboot. (Must invoke route add) [SOLVED]

Thanks for pointing me in the right direction. Disabled all the default settings in rc and added all the alternatives in my netcfg profile. All tests okay.

Offline

#6 2009-10-02 18:42:19

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: Internet lost after each reboot. (Must invoke route add) [SOLVED]

Heya,

Please mark the thread as solved if the issue has been addressed.

Edit: Nevermind. tongue Didn't look at the post date...

Last edited by Runiq (2009-10-02 18:43:03)

Offline

Board footer

Powered by FluxBB