You are not logged in.

#1 2011-12-18 22:51:44

mcduling
Member
Registered: 2011-12-16
Posts: 67

(SOLVED) Adding wlan0

I am trying to set up my wifi connecton on my HP Pavillion dv4000 and decided to get Arch up and running first before attending to the wireless connection. My system runs fine now and all I need to do to get it to my satisfaction is set up the wireless connection.

I don't have wlan0 at present and can't seem to add it. I have read the documentation as well as Lifehacker's excellent instructions. I don't see wlan0 when i run iwconfig, only lo and eth0. How can I go about addiding wlan0 as the wireless interface?

Last edited by mcduling (2012-10-23 00:13:18)

Offline

#2 2011-12-18 22:55:22

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: (SOLVED) Adding wlan0

If you please post the output of ip link and of lspci -nn  (That is two n's, not an m)

edit: typo

Last edited by ewaller (2011-12-18 22:55:50)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2011-12-18 22:56:24

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: (SOLVED) Adding wlan0

So you've read this?

Offline

#4 2011-12-19 09:36:42

mcduling
Member
Registered: 2011-12-16
Posts: 67

Re: (SOLVED) Adding wlan0

output of ip link is:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 00:0a:e4:dd:4a:5b brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 00:15:00:4e:75:ec brd ff:ff:ff:ff:ff:ff
Output of lspci -nn is:
00:00.0 Host bridge [0600]: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller [8086:2590] (rev 04)
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller [8086:2592] (rev 04)
00:02.1 Display controller [0380]: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller [8086:2792] (rev 04)
00:1c.0 PCI bridge [0604]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 [8086:2660] (rev 04)
00:1d.0 USB controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 [8086:2658] (rev 04)
00:1d.1 USB controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 [8086:2659] (rev 04)
00:1d.2 USB controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 [8086:265a] (rev 04)
00:1d.3 USB controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 [8086:265b] (rev 04)
00:1d.7 USB controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller [8086:265c] (rev 04)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev d4)
00:1e.2 Multimedia audio controller [0401]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller [8086:266e] (rev 04)
00:1e.3 Modem [0703]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller [8086:266d] (rev 04)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge [8086:2641] (rev 04)
00:1f.1 IDE interface [0101]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller [8086:266f] (rev 04)
00:1f.3 SMBus [0c05]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller [8086:266a] (rev 04)
06:05.0 Network controller [0280]: Intel Corporation PRO/Wireless 2200BG [Calexico2] Network Connection [8086:4220] (rev 05)
06:06.0 CardBus bridge [0607]: Texas Instruments PCIxx21/x515 Cardbus Controller [104c:8031]
06:06.2 FireWire (IEEE 1394) [0c00]: Texas Instruments OHCI Compliant IEEE 1394 Host Controller [104c:8032]
06:06.3 Mass storage controller [0180]: Texas Instruments PCIxx21 Integrated FlashMedia Controller [104c:8033]
06:06.4 SD Host controller [0805]: Texas Instruments PCI6411/6421/6611/6621/7411/7421/7611/7621 Secure Digital Controller [104c:8034]
06:07.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ [10ec:8139] (rev 10)

Offline

#5 2011-12-19 09:37:28

mcduling
Member
Registered: 2011-12-16
Posts: 67

Re: (SOLVED) Adding wlan0

Tomk, yes I have read that.

Offline

#6 2011-12-19 09:45:35

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: (SOLVED) Adding wlan0

mcduling wrote:

output of ip link is:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 00:0a:e4:dd:4a:5b brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 00:15:00:4e:75:ec brd ff:ff:ff:ff:ff:ff
Output of lspci -nn is:
00:00.0 Host bridge [0600]: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller [8086:2590] (rev 04)
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller [8086:2592] (rev 04)
00:02.1 Display controller [0380]: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller [8086:2792] (rev 04)
00:1c.0 PCI bridge [0604]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 [8086:2660] (rev 04)
00:1d.0 USB controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 [8086:2658] (rev 04)
00:1d.1 USB controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 [8086:2659] (rev 04)
00:1d.2 USB controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 [8086:265a] (rev 04)
00:1d.3 USB controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 [8086:265b] (rev 04)
00:1d.7 USB controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller [8086:265c] (rev 04)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev d4)
00:1e.2 Multimedia audio controller [0401]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller [8086:266e] (rev 04)
00:1e.3 Modem [0703]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller [8086:266d] (rev 04)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge [8086:2641] (rev 04)
00:1f.1 IDE interface [0101]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller [8086:266f] (rev 04)
00:1f.3 SMBus [0c05]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller [8086:266a] (rev 04)
06:05.0 Network controller [0280]: Intel Corporation PRO/Wireless 2200BG [Calexico2] Network Connection [8086:4220] (rev 05)
06:06.0 CardBus bridge [0607]: Texas Instruments PCIxx21/x515 Cardbus Controller [104c:8031]
06:06.2 FireWire (IEEE 1394) [0c00]: Texas Instruments OHCI Compliant IEEE 1394 Host Controller [104c:8032]
06:06.3 Mass storage controller [0180]: Texas Instruments PCIxx21 Integrated FlashMedia Controller [104c:8033]
06:06.4 SD Host controller [0805]: Texas Instruments PCI6411/6421/6611/6621/7411/7421/7611/7621 Secure Digital Controller [104c:8034]
06:07.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ [10ec:8139] (rev 10)

Please help your readers help you by using

code blocks.

Now, your system has mapped eth1 rather than wlan0 to your wireless. Don't worry, I had the same problem. You can either keep using eth1 as a drop-in name for wlan0, or you can check out the wiki.

The wiki method may seem a little harder at first, but if you plan to use Arch for a long time, it's worth the initial investment.

Last edited by /dev/zero (2011-12-19 09:51:05)

Offline

#7 2011-12-19 22:56:42

mcduling
Member
Registered: 2011-12-16
Posts: 67

Re: (SOLVED) Adding wlan0

Thanks for the suggestions, and insights. I have decided to undertake this using the ifrename option. I have installed wireless_tools and run ifrename -i eht1 -n wlan0 but get this reply: Can't open configuration file: No such file or directory.

Last edited by mcduling (2011-12-19 22:59:42)

Offline

#8 2011-12-19 23:14:49

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: (SOLVED) Adding wlan0

mcduling wrote:

Thanks for the suggestions, and insights. I have decided to undertake this using the ifrename option. I have installed wireless_tools and run ifrename -i eht1 -n wlan0 but get this reply: Can't open configuration file: No such file or directory.

Sorry, I haven't used ifrename. I just created a couple of simple udev rules. It's really no harder than finding out your cards' MAC addresses using ifconfig, and substituting into the appropriate place in /etc/udev/rules.d/10-network.rules like so

Wiki wrote:

SUBSYSTEM=="net", ATTR{address}=="aa:bb:cc:dd:ee:ff", NAME="lan0"
SUBSYSTEM=="net", ATTR{address}=="ff:ee:dd:cc:bb:aa", NAME="wlan0"

Edit - looking at this again:

mcduling wrote:

ifrename -i eht1 -n wlan0

That's a typo there, eht1 -> eth1. Does that fix your ifrename problem?

Last edited by /dev/zero (2011-12-19 23:20:34)

Offline

#9 2011-12-19 23:21:33

mcduling
Member
Registered: 2011-12-16
Posts: 67

Re: (SOLVED) Adding wlan0

Thanks /dev/zero. Just so I get this correctly, I change the values or words in inverted commas. So "net" becomes something like eth0 and wlan0 and the I leave in ATTR but substitute {address} with mac. Then for the addresses I insert the actual mac addresses for eth0 and in my case eth1 (which will change to wlan0. I only need two addresses, one for eth0 (which is for the ADSL modem cable) and wlan0 (which is for wireless connectivity). Am I on the right track?

Offline

#10 2011-12-19 23:27:56

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: (SOLVED) Adding wlan0

mcduling wrote:

Thanks /dev/zero. Just so I get this correctly, I change the values or words in inverted commas. So "net" becomes something like eth0 and wlan0 and the I leave in ATTR but substitute {address} with mac. Then for the addresses I insert the actual mac addresses for eth0 and in my case eth1 (which will change to wlan0. I only need two addresses, one for eth0 (which is for the ADSL modem cable) and wlan0 (which is for wireless connectivity). Am I on the right track?

This is the exact content in a file called /etc/udev/rules.d/network-devices.rules on my Arch machine:

SUBSYSTEM=="net", ATTRS{address}=="cc:af:78:00:c1:ee", NAME="wlan0"
SUBSYSTEM=="net", ATTRS{address}=="b8:70:f4:b7:08:c9", NAME="eth0"

So, I'm certainly no udev master, but it seems like the general idea goes something like this: we're creating rules for the udev subsystem called "net"; apply any given line when the address attribute matches the given MAC address; the action of the rule is to change the name to the desired device name.

Last edited by /dev/zero (2011-12-19 23:28:31)

Offline

#11 2011-12-19 23:33:21

samuvuo
Member
From: Finland
Registered: 2011-02-20
Posts: 84

Re: (SOLVED) Adding wlan0

Hope you don't mind me asking: why do  you need to change the name of the interface?

Using eth1 will get you connected just as well as using wlan0. I'm using Wicd for wired and wireless connections and all I need to do on machines that use the ipw2200 module (same as yours) is set "Wireless interface: eth1" in Wicd Preferences. If you connect via command line, just use eth1 instead of wlan0. Or am I missing something?

Offline

#12 2011-12-19 23:40:40

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: (SOLVED) Adding wlan0

samuvuo wrote:

Hope you don't mind me asking: why do  you need to change the name of the interface?

Using eth1 will get you connected just as well as using wlan0. I'm using Wicd for wired and wireless connections and all I need to do on machines that use the ipw2200 module (same as yours) is set "Wireless interface: eth1" in Wicd Preferences. If you connect via command line, just use eth1 instead of wlan0. Or am I missing something?

I insist on having different names because otherwise it remains open for the system to randomly rename the interfaces, depending on what gets loaded first. This makes a difference when scripts (or indeed Wicd) expects a particular interface to be the wireless one.

So, since I prefer to force specific names anyway, I'd rather at the same time provide a more meaningful way to distinguish between cards.

Offline

#13 2011-12-19 23:55:32

samuvuo
Member
From: Finland
Registered: 2011-02-20
Posts: 84

Re: (SOLVED) Adding wlan0

But of course! Had forgotten all about the race condition of eth*. On laptops that use ipw2200 I tend to add the networking modules in rc.conf (or mkinitcpio.conf) making sure ipw2200 loads first and that takes care of the problem.

Edit: the above makes no sense. What I meant was: I load Ethernet controller's module first (gets eth0) and then wireless (eth1). When I control the loading order, there's no more interface name swaps.

Last edited by samuvuo (2011-12-24 04:40:24)

Offline

#14 2011-12-20 00:07:59

mcduling
Member
Registered: 2011-12-16
Posts: 67

Re: (SOLVED) Adding wlan0

Thanks for the assistance. I have added the network.devices.rules and used my mac addresses. All seemed to go fine. I then ran iwconfig and didn't see wlan0.
This is what I received: (Not sure how to code block, so sorry for this)

lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11bg  ESSID:off/any  
          Mode:Managed  Channel:0  Access Point: Not-Associated   
          Bit Rate:0 kb/s   Tx-Power=20 dBm   Sensitivity=8/0  
          Retry limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Last edited by ewaller (2011-12-20 02:31:40)

Offline

#15 2011-12-20 02:34:11

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: (SOLVED) Adding wlan0

mcduling wrote:

... (Not sure how to code block, so sorry for this)

It is easy....   I went ahead and did it for you.  Use the edit link on the post to see what I did.

Also, see The BBCode link below where you post


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#16 2011-12-20 02:36:38

mcduling
Member
Registered: 2011-12-16
Posts: 67

Re: (SOLVED) Adding wlan0

I have just gone into /etc/rc.conf to change the notation for eth0 and wlan0. I will essentially add wlan0 here but do I use the same values for address, net mask, broadcast and gateway for both of them? Or do they have unique values? If unique, where do I find the values for wlan0?

Offline

#17 2011-12-20 02:36:41

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: (SOLVED) Adding wlan0

What does iwlist scan say?

BTW:  My other requests were overcome by events.  The thread moved past the point where they were relevant, so I had nothing to add smile


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#18 2011-12-20 02:43:07

mcduling
Member
Registered: 2011-12-16
Posts: 67

Re: (SOLVED) Adding wlan0

It says:

Usage: iwlist [interface] scanning [essid NNN] [last]
              [interface] frequency 
              [interface] channel 
              [interface] bitrate 
              [interface] rate 
              [interface] encryption 
              [interface] keys 
              [interface] power 
              [interface] txpower 
              [interface] retry 
              [interface] ap 
              [interface] accesspoints 
              [interface] peers 
              [interface] event 
              [interface] auth 
              [interface] wpakeys 
              [interface] genie 
              [interface] modulation 

Last edited by mcduling (2011-12-20 02:45:49)

Offline

#19 2011-12-20 03:02:15

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: (SOLVED) Adding wlan0

???? Did you include the argument "scan"  ????


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#20 2011-12-20 03:39:04

mcduling
Member
Registered: 2011-12-16
Posts: 67

Re: (SOLVED) Adding wlan0

Now it says:
lo Interface doesn't support scanning
wth0 Intrerface doesn't support scanning
eth1 No scan result.

Offline

#21 2011-12-20 03:42:01

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: (SOLVED) Adding wlan0

mcduling wrote:

eth1 No scan result.

Well, there's your problem.

How about the output of rfkill list  ??


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#22 2011-12-20 03:54:23

mcduling
Member
Registered: 2011-12-16
Posts: 67

Re: (SOLVED) Adding wlan0

rfkill said:

0: hp-wifi: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

Offline

#23 2011-12-20 04:53:27

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: (SOLVED) Adding wlan0

Do you know the ESSID of the router to which you are trying to associate?
Do you know if it is open, WEP, WPA or WPA2 ?
If it WEP, do you know the key? 

I want to try to associate by hand using iwconfig from the command line.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#24 2011-12-20 08:17:31

mcduling
Member
Registered: 2011-12-16
Posts: 67

Re: (SOLVED) Adding wlan0

Yes, I do know them. I have a WPA2 set up on my network.

Last edited by mcduling (2011-12-20 08:18:15)

Offline

#25 2011-12-21 10:00:32

mcduling
Member
Registered: 2011-12-16
Posts: 67

Re: (SOLVED) Adding wlan0

I presume when entering the name of my ESSID, if it has more than one word in its name, like The Network, I enter it thus: The_Network.

Am I on the right track?

Offline

Board footer

Powered by FluxBB