You are not logged in.
Pages: 1
I've been trying for about a week to figure this out on my own but I keep running into issues.
I have gotten it to the point of getting a "done" output from netcfg2 but I am still not pinging anything.
I'm not sure what this means.
Can someone take a look at my configs and tell me if anything needs changing?
Thanks!
(I'm running arch with wmii as my WM. I also have xfce installed as a DE for another user if that matters...)
rc.conf
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="arch"
#
# 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")
#
#eth0="dhcp"
#wlan0="dhcp"
DHCLIENT="YES"
#INTERFACES=(eth0)
#WLAN_INTERFACES=(wlan0)
#
# 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
#
#NETWORKS=(scott_klaras)
#
# -----------------------------------------------------------------------
# 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=(wpa_supplicant syslog-ng !network dhclient networkmanager netfs crond alsa slim !net-profiles)
the profile
[root@arch wmccann]# cat /etc/network.d/mom_dads
CONNECTION="wireless"
INTERFACE=wlan0
SCAN="yes"
SECURITY="none"
ESSID="drahtlosnetz"
KEY=""
IP="dhcp"
TIMEOUT=20
iwconfig
[root@arch wmccann]# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wifi0 IEEE 802.11b ESSID:"test" Nickname:""
Mode:Master Frequency:2.422 GHz Access Point: 00:05:3C:07:BF:29
Bit Rate:11 Mb/s Sensitivity=1/3
Retry short limit:8 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
wlan0 IEEE 802.11b ESSID:"test" Nickname:""
Mode:Master Frequency:2.422 GHz Access Point: 00:05:3C:07:BF:29
Bit Rate:11 Mb/s Sensitivity=1/3
Retry short limit:8 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:32 Rx invalid frag:0
Tx excessive retries:7 Invalid misc:3158 Missed beacon:0
irda0 no wireless extensions.
ifconfig -a
[root@arch wmccann]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:09:6B:86:65:A6
inet addr:192.168.29.4 Bcast:192.168.29.255 Mask:255.255.255.0
inet6 addr: fe80::209:6bff:fe86:65a6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:848 errors:0 dropped:0 overruns:0 frame:0
TX packets:824 errors:0 dropped:0 overruns:0 carrier:0
collisions:3 txqueuelen:1000
RX bytes:762777 (744.8 Kb) TX bytes:164153 (160.3 Kb)
irda0 Link encap:IrLAP HWaddr 00:00:00:00
NOARP MTU:2048 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:8
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
wifi0 Link encap:UNSPEC HWaddr 00-05-3C-07-BF-29-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:50 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11
wlan0 Link encap:Ethernet HWaddr 00:05:3C:07:BF:29
inet6 addr: fe80::205:3cff:fe07:bf29/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:9216 (9.0 Kb)
Interrupt:11
lsmod
nsc_ircc 16272 0
ppdev 7556 0
irtty_sir 5632 0
sir_dev 11908 1 irtty_sir
irda 117176 2 nsc_ircc,sir_dev
crc_ccitt 2304 1 irda
lp 9220 0
parport 31560 3 parport_pc,ppdev,lp
ppp_generic 24596 0
psmouse 37136 0
serio_raw 5636 0
pcmcia 33324 0
i2c_i801 8848 0
i2c_core 19584 1 i2c_i801
joydev 10048 0
video 16016 0
output 3200 1 video
shpchp 29716 0
pci_hotplug 26272 1 shpchp
intel_agp 22164 1
agpgart 28120 1 intel_agp
sg 26896 0
evdev 9344 0
thermal 12956 0
processor 29144 2 thermal
fan 3844 0
button 6544 0
battery 10756 0
ac 4612 0
snd_intel8x0m 14092 0
snd_seq_oss 30336 0
snd_seq_midi_event 6656 1 snd_seq_oss
snd_seq 48464 4 snd_seq_oss,snd_seq_midi_event
snd_seq_device 6796 2 snd_seq_oss,snd_seq
snd_intel8x0 29084 0
snd_ac97_codec 97828 2 snd_intel8x0m,snd_intel8x0
snd_pcm_oss 38432 0
snd_pcm 70404 4 snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer 19588 2 snd_seq,snd_pcm
snd_page_alloc 8072 3 snd_intel8x0m,snd_intel8x0,snd_pcm
snd_mixer_oss 14848 1 snd_pcm_oss
snd 46436 10 snd_intel8x0m,snd_seq_oss,snd_seq,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore 6496 1 snd
ac97_bus 2304 1 snd_ac97_codec
orinoco_pci 5376 0
orinoco 38676 1 orinoco_pci
hostap_pci 48912 2
hostap 103428 1 hostap_pci
ieee80211_crypt 4992 1 hostap
hermes 6656 2 orinoco_pci,orinoco
slhc 6016 1 ppp_generic
eepro100 27024 0
e100 32524 0
mii 4992 2 eepro100,e100
netcfg2 output
[root@arch wmccann]# netcfg2 mom_dads
:: mom_dads up [DONE]
...and it isn't working.
Before I got to this point I have had so many errors: DHCP lease attempt failed (installed dhclient?), Association failed (disabled WPA for now), and it seems that iwlist scan only works after i attempt to connect to a network (what does this say about my setup?)
Please help me sort this out!
If you need anything else just ask...
Thanks
Offline
What if you rule out all other setups, rc.conf, netcg2, networkmanager, dhclient, etc... so nothing is left automated.
And then try to set things up manually first.
So for example, right after boot:
ifconfig wlan0 up
iwlist wlan0 scanning
iwconfig wlan0 essid "drahtlosnetz"
dhcpcd wlan0
Try to use dhcpcd in stead of dhclient, if you don't have it already install it with "pacman -S dhcpcd"
Once you got you network running you can try setting up an automated device, and see if you can get that to work too...
Just how I get things working everytime... hope it can help you.
Offline
After a fresh boot...
[root@arch wmccann]# ifconfig wlan0 up
[root@arch wmccann]# iwlist wlan0 scanning
wlan0 No scan results
[root@arch wmccann]# iwconfig wlan0 essid "drahtlosnetz"
[root@arch wmccann]# dhcpcd wlan0
err, wlan0: timed out
warn, wlan0: using IPV4LL address 169.254.54.78
Offline
Good approach ibendiben.
I'm a noob, but if iwlist fails ("No scan results"), then there's not much use in assigning essid "drahtlosnetzwerk" to wlan0. Try to find out why you're not getting a signal first... Does the access point really work? If it is a laptop, have you tried pressing the Wireless-LAN button?
Offline
I'm on a thinkpad T30 2367. There isn't an on button for it on the case as far as I can tell.
iwlist scan works if I try to connect to a network first. I get several networks that are in range.
Offline
iwlist scan works if I try to connect to a network first. I get several networks that are in range.
What do you mean by "if I try to connect to a network first?"
What happens if you perform the other steps (iwconfig, dhcpcd) now?
Offline
You do not happen to use some kind of encryption do you?
Can you tell me what this wifi0 interface is?
Your error is a very strange one, for what I found. I had it too when setting up my network. But then sometimes it would just work.
And once I finally got it working, it wouldn't fail on me again, so there's hope
Last edited by ibendiben (2008-04-06 22:49:08)
Offline
another thing is this wpa encryption? if you are using that, youll need the wpa supplicant as well. I'd be curious what happens if you do what ibendiben says and do an iwconfig wifi0 essid networkid, then do a dhcpcd? What kind of device is this wifi? on my bcm card, even though it showed up, it didnt want to start up right unless i modified the rc.conf to include the ndiswrapper module at boot.... details please? lsusb, lspci?
Thanks
"As long as people are going to call you a lunatic anyway,
why not get the benefit of it? It liberates you from convention. "
Offline
lspci
[root@Kara wmccann]# lspci
00:00.0 Host bridge: Intel Corporation 82845 845 [Brookdale] Chipset Host Bridge (rev 04)
00:01.0 PCI bridge: Intel Corporation 82845 845 [Brookdale] Chipset AGP Bridge (rev 04)
00:1d.0 USB Controller: Intel Corporation 82801CA/CAM USB Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801CA/CAM USB Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801CA/CAM USB Controller #3 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 42)
00:1f.0 ISA bridge: Intel Corporation 82801CAM ISA Bridge (LPC) (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801CAM IDE U100 Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801CA/CAM SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801CA/CAM AC'97 Audio Controller (rev 02)
00:1f.6 Modem: Intel Corporation 82801CA/CAM AC'97 Modem Controller (rev 02)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500]
02:00.0 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller (rev 01)
02:00.1 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller (rev 01)
02:02.0 Network controller: Intersil Corporation Prism 2.5 Wavelan chipset (rev 01)
02:08.0 Ethernet controller: Intel Corporation 82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller (rev 42)
I'd be curious what happens if you do what ibendiben says and do an iwconfig wifi0 essid networkid, then do a dhcpcd?
[root@Kara wmccann]# ifconfig wifi0 up
[root@Kara wmccann]# iwlist wifi0 scanning
wifi0 No scan results
[root@Kara wmccann]# dhcpcd wifi0
err, wifi0: interface is not Ethernet, FireWire, InfiniBand or Token Ring
[root@Kara wmccann]#
What do you mean by "if I try to connect to a network first?"
I netcfg2 mom_dads. It outputs done. Then I can iwlist and it scans perfectly. I tried a iwconf......etc...etc. and no go. I like the idea of manually connecting first; I went through my rc.conf and made some changes to accomodate that approach... tell me if my networking and daemon matrices are legit. Thanks for your help so far guys. Good Ideas. Thanks!
rc.conf
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="Kara"
#
# 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")
#
eth0="dhcp"
wlan0="dhcp"
INTERFACES=(eth0 wlan0)
#
# 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
#
#NETWORKS=(scott_klaras)
#
# -----------------------------------------------------------------------
# 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 slim !net-profiles)
Last edited by wmccann (2008-04-07 02:43:34)
Offline
im sorry...maybe its the glass of wine i had tonight, maybe im crazy but earlier your iwconfig shows two wireless devices...wifi0 and wlan0 what are these two devices and why cant you use the wlan0 device with the above commands?
"As long as people are going to call you a lunatic anyway,
why not get the benefit of it? It liberates you from convention. "
Offline
I tried earlier in this thread. Now, after changing my rc.conf, I get:
[root@Kara wmccann]# ifconfig wlan0 up
[root@Kara wmccann]# iwlist wlan0 scanning
wlan0 No scan results
[root@Kara wmccann]# iwconfig wlan0 essid "drahtlosnetz"
[root@Kara wmccann]# dhcpcd wlan0
err, wlan0: dhcpcd already running on pid 6383 (/var/run/dhcpcd-wlan0.pid)
Offline
Run /etc/rc.d/dhpcd stop and try the above commands again. Dhcpd is running already cause you have it in your rc.conf, but netcfg calls it when selecting a profile if set to dhcp (IP=dhcp) which you do. So you might want to remove the wlan0 from your rc.conf and just use netcfg2.
~jnengland77
Offline
Dhcpcd isn't in the rc.d. I have tried letting netcfg2 run the show before but to no avail.
Offline
Edit your rc.conf so it looks like this:
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="Kara"
#
# 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")
#
#eth0="dhcp"
#wlan0="dhcp"
#INTERFACES=(eth0 wlan0)#
# 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
#
#NETWORKS=(scott_klaras)#
# -----------------------------------------------------------------------
# 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 slim !net-profiles)
To sum up:
- comment all lines declaring interfaces or dhcp,
- comment the "gataway=("-line when you use dhcp this line should always be commented
- prefix the network deamon with a ! to disable it.
Now you perform the steps I told you earlier. See what happens then.
Succes!
If dhcpcd reports to be running already you can stop it with:
dhcpcd -x wlan0
Offline
# NETWORKING
...
lo="lo 127.0.0.1"
eth0="dhcp"
eth1="dhcp"
wlan_eth1="eth1 mode managed essid MY-ESSID key MY-WAP-KEY open"
WLAN_INTERFACES=(eth1)
INTERFACES=(lo eth0 eth1)
...
Try the above; it works for me.
Offline
Pages: 1