You are not logged in.
For the past few weeks I've been booting up my computer to find that I don't have internet access. After running /etc/rc.d/network restart, I'd still have nothing. Only after changing my rc.conf file to work with dhcp instead of manually configuring would I get anything to go through. I'm not entirely sure what caused this, and not 100% on when it occurred first. I actually have been keeping up with updates recently, so I have a hunch that one of my updates changed something, somewhere, and made something go wrong.
Here is the important part of rc.conf:
#
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="arch_linux"
#
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
# interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
# - no hyphens in your interface names - Bash doesn't like it
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
lo="lo 127.0.0.1"
#eth0="eth0 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255"
eth0="dhcp"
INTERFACES=(lo eth0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.1"
ROUTES=(!gateway)
When using manual configuration/static IP, the dhcp line was commented and the line above it uncommented, and the ! in front of "gateway" in my routes is removed.
Offline
Did you set your /etc/resolv.conf file correctly when using static connections?
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
I am having the exact same problem. I am using XCFE and am used to having a network configuration applet where I can input my dns, ip-address, gw and so on.
I am annoyed about haivng to edit the 3 files in /etc/ named rc.conf + resolve.conf + hosts.
This part of the beginner wiki is written way too cryptic:
http://wiki.archlinux.org/index.php/Beg … tc.2Fhosts
Or maybe im just an idiot.
This line in etc/hosts/ I just dont get it:
192.168.1.100 yourhostname.domain.org yourhostname
what is this yourhostname.domain.org? my hostname is linuxcomputer which I chose but what am I supposed to put for domain.org? What domain? I dont have a domain! Im working on a home desktop
Sorry im just ticked off. Something as simple as changing the clock from miltary time to am/pm took me 20 minutes because I dont have an applet in XCFE to change regional settings so I had to search and search and search for a commandline way.
Its like drinking a gallon of water with a coffee straw for me lately. My productivity has suffered tremendously.
Offline
I did. But also, when using DHCP it automatically edits the file anyways. So, when going to static IP after using DHCP, the file will still be set correctly.
Offline
I did. But also, when using DHCP it automatically edits the file anyways. So, when going to static IP after using DHCP, the file will still be set correctly.
So the output of these three commands are the same when using DHCP or Static?
ifconfig
route -n
cat /etc/resolv.conf
Last edited by fukawi2 (2008-11-05 06:28:30)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Sorry im just ticked off. Something as simple as changing the clock from miltary time to am/pm took me 20 minutes because I dont have an applet in XCFE to change regional settings so I had to search and search and search for a commandline way.
Its like drinking a gallon of water with a coffee straw for me lately. My productivity has suffered tremendously.
If the do-it-yourself aspect is irritating you so much, then don't use a do-it-yourself distro........ or at least don't complain when you choose to use it.
I did. But also, when using DHCP it automatically edits the file anyways. So, when going to static IP after using DHCP, the file will still be set correctly.
DHCP automatically sets the file only for itself, so it doesn't set the actual DNS servers. Try adding "-C resolv.conf" to DHCPCD_ARGS in /etc/conf.d/dhcpcd and then adding your DNS servers to /etc/resolv.conf.
Last edited by creslin (2008-11-05 07:29:06)
ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.
Offline
Are you using a gui program to manage your connection? Something like wicd, or networkmanager? If you are you might try telling rc.conf to not manage the interfaces by putting an "!" in front of them. Also, I know wicd needs you to disable the network daemon.
Offline
gateway="default gw 192.168.1.1" ROUTES=(!gateway)
Try ensuring your gateway really is 192.168.1.1 and removing the ! in there.
-dav7
Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.
Offline
Try ensuring your gateway really is 192.168.1.1 and removing the ! in there.
-dav7
That's definitely my router address. I've never changed it. And...
When using manual configuration/static IP, the dhcp line was commented and the line above it uncommented, and the ! in front of "gateway" in my routes is removed.
Thanks to everyone for the suggestions. I won't be able to try any of them until Sunday, though, probably.
Offline
Editing resolv.conf by hand worked. I don't know when the change was made to make DHCP edit the file only for DHCP, but that was it.
Thanks.
Offline