You are not logged in.

#1 2007-04-12 03:44:59

leandroaveiro
Member
From: Rochester, NY, USA
Registered: 2007-04-12
Posts: 45

Network unreachable (sometimes... Weird)

Hi guys....

Although I'm using a x86_64 PC, I am almost sure that this problem does not have anything to do with my architecture, so I'm posting this topic  here and not in the Arch64 forum.

While booting (if I'm not wrong, while executing the /etc/rc.multi script) arch tries to start the network. Some of the time, all steps get "DONE" as status, but mostly (7 out of 10 times I boot the system) I get the following error for network:

:: Starting Network                                          [BUSY] 
SIOCSIFFLAGS: No such file or directory
SIOCADDRT: Network is unreachable
                                                                     [FAIL]

This is the result of my network in lspci:

05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

This is my /etc/rc.conf

#
# /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"
# 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.iso88591"
HARDWARECLOCK="localtime"
TIMEZONE="America/Sao_Paulo"
KEYMAP="us-acentos"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

#
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# Scan hardware and load required modules at bootup
MOD_AUTOLOAD="yes"
# Module Blacklist - modules in this list will never be loaded by udev
MOD_BLACKLIST=()
#
# Modules to load at boot-up (in this order)
#   - prefix a module with a ! to blacklist it
#
MODULES=(powernow-k8)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

#
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="leandro"
#
# 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.200.10 netmask 255.255.255.0 broadcast 192.168.0.255"
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.200.254"
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-profiles
#
#NET_PROFILES=(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 alsa cpufreq acpid)

# End of file

This is my /etc/hosts

#
# /etc/hosts: static lookup table for host names
#

#<ip-address>    <hostname.domain.org>    <hostname>
127.0.0.1        localhost.localdomain    localhost
192.168.200.10        leandro.aveiro.com    leandro

# End of file

And finally, my /etc/resolv.conf, which contains my DNS address:

#
# /etc/resolv.conf
#

#search <yourdomain.tld>
#nameserver <ip>

searh aveiro.com
nameserver 192.168.200.254

# End of file

It all quite simple to me, so I don't understand why this is happening, since it never happened with Slackware (my previous distribution) and never on Windows neither, so I'm guessing the problem is not my home network.

I've already tried to run /etc/rc.d/network start or /etc/rc.d/network restart, and it prints to the console every time the same mistake. Basically, what I do today, is restart a few times until I get a working network.

Any ideas? Thanks a lot in advance!

Offline

#2 2007-04-12 06:17:18

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: Network unreachable (sometimes... Weird)

this message:

SIOCSIFFLAGS: No such file or directory
SIOCADDRT: Network is unreachable

means that the network card has not eth0 entry in /dev, what means that there is no network card.

Try adding 8139cp or 8139too to MODULES array in rc.conf:

MODULES=(8139cp)

Offline

#3 2007-04-12 18:26:35

AlienTesticle
Member
Registered: 2007-04-11
Posts: 3

Re: Network unreachable (sometimes... Weird)

Also.. On your eth0= line your broadcast is 192.168.0.255 and based on your ip of 192.168.200.10.. the broadcast should be 192.168.200.255

dont know is that will help.. but you never know.


Keep on  m'ARCH'n

Offline

#4 2007-04-13 03:07:11

leandroaveiro
Member
From: Rochester, NY, USA
Registered: 2007-04-12
Posts: 45

Re: Network unreachable (sometimes... Weird)

Thanks a lot! Adding the modules to the MODULES array in /etc/rc.conf solved the problem!

Offline

Board footer

Powered by FluxBB