You are not logged in.

#1 2009-08-08 17:27:48

Valok
Member
Registered: 2008-10-07
Posts: 43

Unkown Host Error

So I'm just setting up my very first Arch install, and everything has gone smoothly so far.

But when I boot up the system, it doesn't connect to the network, and it constantly fails to ping various websites.  "unknown host" for google, and "network is unreachable" when pinging 192.168.0.1 (I am using a router)

I have arch setup to use DHCP, and I thought I followed the instructions correctly, but apparently I missed something.


Another weird error I ran into was when typing in /etc/rc.conf it returns "permission denied"

Offline

#2 2009-08-08 17:49:52

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Unkown Host Error

You'd need to type something like "sudo vi /etc/rc.conf" or "su -" to become root and then "vi /etc/rc.conf".  Check carefully that you did everything in the Wiki as it has worked for me on 4 separate installs.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2009-08-08 18:00:14

Valok
Member
Registered: 2008-10-07
Posts: 43

Re: Unkown Host Error

Thanks, now I can get into rc.conf and edit it.  I'll report back if things look weird again.

Last edited by Valok (2009-08-08 18:03:02)

Offline

#4 2009-08-08 18:08:33

Valok
Member
Registered: 2008-10-07
Posts: 43

Re: Unkown Host Error

Ok, I've gone back in and checked the network settings and they are correct as far as I can tell.

I tried restarting the network, and it simply timed out, and I got the following message.

Warn, eth0: using IPV4LL address 169.254.23.216        and I'm not really sure what that means for me.

Offline

#5 2009-08-08 18:14:11

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Unkown Host Error

What is in the net work section of rc.conf,  Do you use wireless?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#6 2009-08-08 18:18:37

Valok
Member
Registered: 2008-10-07
Posts: 43

Re: Unkown Host Error

Hostname = Valok
eth0="dhcp"
gateway="default gw 192.168.1.1"    (this is the IP I type into a browser to get to the router control settings)
ROUTES=(gateway)



I'm not using wireless, but I am going through a router.

Offline

#7 2009-08-08 18:33:50

Valok
Member
Registered: 2008-10-07
Posts: 43

Re: Unkown Host Error

I don't know if this will help, but when I type ifconfig -a it returns


inet addr: 169.254.23.216  Bcast: 169.254.255.255 Mask: 255.255.0.0

Along with other things of course, but this seems the most crucial to me because those numbers aren't found anywhere in /etc/rc.conf and I don't know where they came from.

Could this be a clue to the problem?

Offline

#8 2009-08-08 18:44:20

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Unkown Host Error

I am nowhere near an expert here.  The only differences I can see between my working setup and yours is mine has ROUTES=(!gateway) and the hostname should be in quotes i.e. Hostname="Valok"

Does ifconfig show the interface as eth0?

Last edited by loafer (2009-08-08 18:46:45)


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#9 2009-08-08 18:53:34

Valok
Member
Registered: 2008-10-07
Posts: 43

Re: Unkown Host Error

I actually just changed it back to (!gateway) and still have the same problem.  Also after changing Valok in /etc/hosts to "Valok" the text turned pink, but still no dice.

ifconfig returns eth0 and lo (local loopback) as my interface choices.

Offline

#10 2009-08-08 19:00:35

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Unkown Host Error

So, if it now says...

127.0.0.1        localhost.localdomain    localhost    valok

in /etc/hosts

also make sure that in /etc/rc.conf it is

Hostname ="valok"


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#11 2009-08-08 19:09:20

Valok
Member
Registered: 2008-10-07
Posts: 43

Re: Unkown Host Error

Righto, thats what it says smile  but still no luck.

When looking at the blacklisted modules in rc.conf I noticed that "forecedeth" was in there (this is the name of my ethernet card) but with no ! in front of it, so it shouldn't have made a difference.  I decided to delete it anyways and now anytime I restart the network I get a series on syntax errors about that line.

Is there any way I can revert rc.conf to its original state to fix that error?  Because I'm not sure the exact text that used to be there.  Or what is actually causing this new error now (I don't think this error is impacting my network)


*Edit* I used hwdetect --show-net to find the module name for my card again, and put that back into the modules list so it should load that up.  However, its still not working.  (syntax error now fixed)

I also tried using modprobe forcedeth ppp_generic slhc with not luck

Last edited by Valok (2009-08-08 19:19:52)

Offline

#12 2009-08-08 19:19:22

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Unkown Host Error

This is what the unedited file looks like, hope it is helpful...

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Canada/Pacific"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# 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=()

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="myhost"

# 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
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(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.0.1"
ROUTES=(!gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond)

All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#13 2009-08-08 19:34:35

Valok
Member
Registered: 2008-10-07
Posts: 43

Re: Unkown Host Error

I've done and checked everything I know how to in the arch linux setup, and still have no luck.

I know this compter CAN access the internet because I was on it about 2 hours ago before reformatting.  But I'm at a real loss here.

Offline

#14 2009-08-08 19:44:58

Valok
Member
Registered: 2008-10-07
Posts: 43

Re: Unkown Host Error

Again, not sure if this helps but I'm putting it out there.

When I run ifconfig it gives me a certain inet address.  When I ping that I actually get some results, but I can't ping anything else successfully.

Offline

#15 2009-08-08 19:55:22

Valok
Member
Registered: 2008-10-07
Posts: 43

Re: Unkown Host Error

I'm also using an older version of the arch .iso (at least 6 months, maybe even a year old)

Would that have any impact?

Offline

#16 2009-08-08 20:44:49

Valok
Member
Registered: 2008-10-07
Posts: 43

Re: Unkown Host Error

Another thing that I just noticed was that if I unplug my computer from my router, it makes no difference in how it behaves.  The odd thing is that ifconfig still returns an inet address, mask, and broadcast.  Even more odd is that when pinging the inet adress, it returns some pings.

So maybe the problem is that the computer isn't recognizing that its connected to me router.  Any tips?

Offline

Board footer

Powered by FluxBB