You are not logged in.
Ok, I hope somebody will be able to help me. I followed the instructions online but could not find an answer.
I did a frash install on a laptop, choosing KDE and netwokmanager. I connect to internet with wireless (dhcp).But:
1. I choose my AP, get IP, can ping router but cannot surf the net (ping -c 3 www.google.com gives "network unreachable" ... only...
2. if I do /etc/rc.d/network start as root I can surf the net without a problem.
If I just allow network to start as a deamon it does not work. The instructions for networkmanager explicitly say I shouldn't start it at all so I am a bit puzzled. How can I setup my machine so that I do not need to go to terminal everytime I need to surf the net? Btw, wired network works without a problem.
Please, help.
Regards,
Odisej
Last edited by Odisej (2009-11-18 16:28:46)
Offline
I guess it could help if you post your /etc/rc.conf
Offline
Here it is (btw, if wlan0 is disabled, I am unable to surf the net even if i start network):
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(ath5k)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
HOSTNAME="myhost"
#Static IP example
#eth0="dhcp"
eth0="dhcp"
wlan0="dhcp"
INTERFACES=(!eth0 wlan0)
# Routes to start at boot-up (in this order)
gateway="default gw 192.168.1.1"
ROUTES=(!gateway)
#NETWORKS=(main)
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
DAEMONS=(syslog-ng !network netfs hal networkmanager @crond alsa kdm)
Offline
My first observation is that wlan0 is enabled in rc.conf, but the wiki about NetworkManager says:
If you want to use NetworkManager on an interface you will have to disable it in /etc/rc.conf. You can do this by placing a "!" in front of the interface of your choice, for example:
INTERFACES=(!eth0 !ath0)
Second thing is your hostname. is it the same in rc.conf, /etc/hosts and /etc/NetworkManager/nm-system-settings.conf?
Third, is your user in the network group?
gpasswd -a USERNAME network
Offline
1. Yes, wlan0 is enabled in rc.conf because I cannot find any other way to get wireless to work properly. If I disable it I am unable to surf as it seems there is a problem with DNS. I am only able to get to Google, for instance, if I start "network" manually as root when wlan0 is enabled.
2. Here are my hosts and networkmanager files:
hosts:
#
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost myhost
# End of file
networkmanager:
[main]
plugins=keyfile
[keyfile]
hostname = myhost
3. Yes, my username is in network group.
Thank you for your suggestions MadTux. But it really is frustrating to set this up. I followed Beginner's guide, wireless setup, networkmanager wiki... maybe I missed something on the way but I did try everything I could think of.... I could try some other manager but networkmanager has always worked best for me so I am trying to find a solution for this setup.
Regards,
Odisej
Offline