You are not logged in.

#1 2010-02-16 11:18:08

gladstone
Member
Registered: 2009-01-03
Posts: 74

Network periodically failing

I'm experiencing some strange network behaviour, after what I assume, was a system update.

I'm using netcfg and have set net-auto and net-profiles in rc.conf:

# 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
#
eth0="eth0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.0.255"
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.1.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=(home-wireless)

# -----------------------------------------------------------------------
# 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 net-profiles hal crond alsa)

Perodically, wireless doesn't connect (even manually); it gives this log and ends in authentication failed.

Wired is a similar story. It's error message is a simple not connected (or words to that degree).

I've tried restarting all the relevant daemons and checked in /var/log.

However, after an arbitrary amount of reboots, both wired and wireless seem to connect fine hmm

Offline

#2 2010-02-16 13:39:39

mcsilva
Member
From: Portugal
Registered: 2009-12-16
Posts: 95

Re: Network periodically failing

eth0="eth0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.0.255"

Remember broadcast definition:
"Broadcast is a range of hosts/interfaces that can be accessed on the same network."

What is your subnet addressing?
192.168.0.0/24 ? or 192.168.1.0/24 ?

Your eth0 shows a broadcast 192.168.0.255, so, inside your network, all other interfaces should be 192.168.0.xxx
But eth0 IP number is 192.168.1.2, which is not conform with broadcast number, which should be 192.168.1.255.

So,your eth0 IP number should be 192.168.0.2 or instead, your broadcast number should be 192.168.1.255

Offline

#3 2010-02-16 13:44:45

gladstone
Member
Registered: 2009-01-03
Posts: 74

Re: Network periodically failing

Sorry, your right. That was an old rc.conf.bak. Here is the relevant snippet from the current one:

# 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
#
#eth0="eth0 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.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.1.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.d
#
# This now requires the netcfg package
#
AUTO_NETWORKS=(auto-wireless eth1)


DAEMONS=(syslog-ng @net-profiles @net-auto @fcron @hal @alsa \
         @skvm !network !netfs !crond)

Offline

#4 2010-02-16 14:04:37

secsaba
Member
From: Espoo, Finland
Registered: 2003-11-06
Posts: 19

Re: Network periodically failing

Same ioctl problem here using net-profiles with my ipw2200. I need to reboot again after this error message.

Offline

#5 2010-02-16 14:45:15

gladstone
Member
Registered: 2009-01-03
Posts: 74

Re: Network periodically failing

To confirm, I also have an ipw2200

Offline

Board footer

Powered by FluxBB