LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 02-01-2004, 08:24 PM   #1
sokar
LQ Newbie
 
Registered: Oct 2003
Posts: 28

Rep: Reputation: 15
wireless lan configuration - why is it wlan0 and not eht1?


i have 2 usb wlan adapters, edimax 7117U (zydas 1201 chipset) and a white brand (atmel chipset)

i started by trying to install wlanctl-ng (for the 7117U) but i gave up and decided to try the atmel drivers, and they worked.

my problem is that i don't know how to request a IP from the DHCP server (on a PC running Windows). For the ethernet card i do it the only way i know, i just type "service network restart". But restarting this service doesn't include wlanX interfaces!

(there is a service named "wlan", but i don't know if this service was installed by the wlanctl-ng, or was damaged by it, it doesn't work)

So, how can i get an IP address for my wireless interface? Or how can i make it eth1 instead of wlan0?


Thanks
 
Old 02-01-2004, 08:44 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
dhcpcd wlan0
 
Old 02-01-2004, 10:39 PM   #3
locutus233
Member
 
Registered: Aug 2003
Location: South Surrey, BC
Distribution: Redhat, Gentoo
Posts: 47

Rep: Reputation: 15
dhclient wlan0 will get you an ipaddress.

Trick is to get the script to do what you need on startup and on restart of the network service. On redhat and redhat based system there are files in the folder /etc/sysconfig/networking/devices and in /etc/sysconfig/network-scripts in the network-scripts folders are examples and in the networking/devices folder are the ones run when you start and stop the network service.

Modifying or adding files in the networking/devices folder will likely resolve your problems. Make sure you have wireless tools installed so iwconfig works.
 
Old 02-02-2004, 10:57 AM   #4
sokar
LQ Newbie
 
Registered: Oct 2003
Posts: 28

Original Poster
Rep: Reputation: 15
it works - sort of

ok, i now have wlan0 working, i can get an ip addr by dhcp, (which means i am communicating with my Windows PC), and i added the ifcfg-wlan0 to that directory, so the network service also includes wlan0, but...

I have no internet/network access. I get an IP address from my windows pc (192.168.0.1) but i can't even ping that machine

another thing is also strange... when i see the wlan0 properties, by typing iwconfig, it says i have a good signal (almost 100) but the "Link" is 0!

any thoughts?
 
Old 02-02-2004, 11:00 AM   #5
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
I would ignore the link stats for now, lots of drivers just don't implement that feature. Type route and show us the output.
 
Old 02-02-2004, 11:48 AM   #6
sokar
LQ Newbie
 
Registered: Oct 2003
Posts: 28

Original Poster
Rep: Reputation: 15
route results

(not including the 169.x network and 127.x loop)

connected with ethernet:
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
default universo.mshome 0.0.0.0 UG equal above



when connected with wireless the "default" route takes a while to appear, and is "192.168.0.1" instead of "universo.mshome"
 
Old 02-02-2004, 01:40 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Moved to Wireless
 
Old 02-02-2004, 02:24 PM   #8
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
Does the eth0 change to wlan0?
Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.0.0 * 255.255.0.0 U 0 0 0 wlan0
loopback localhost 255.0.0.0 UG 0 0 0 lo
default homeportal.gate 0.0.0.0 UG 0 0 0 wlan0

Is about what it should look like.... If it doesn't you need to set the default route to use iface wlan0
 
Old 02-02-2004, 03:02 PM   #9
sokar
LQ Newbie
 
Registered: Oct 2003
Posts: 28

Original Poster
Rep: Reputation: 15
wlan mistery

yes, it appears wlan0

default 192.168.0.1 .... UG .............. wlan0


why is it that the default route for eth0 is universo.mshome and the default route for wlan0 is 192.168.0.1?
 
Old 02-03-2004, 12:50 PM   #10
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
Just one point in answer to below: according to README,linux-wlan-ng packages only partly implement the 'wireless' features, so iw* commands give unreliable info, such as only polling certain features. They recommend using the wlan* controls, which aren't much fun to use.

>>another thing is also strange... when i see the wlan0 properties, by typing >>iwconfig, it says i have a good signal (almost 100) but the "Link" is 0!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving a Wlan0 configuration cryonic90 Linux - Wireless Networking 4 08-23-2005 09:50 AM
wireless eth1 to wlan0? ferreter Fedora 0 09-11-2004 02:19 PM
ndiswrapper: error: wlan0 can't find configuration nulinuxusr Linux - Wireless Networking 3 08-21-2004 08:05 AM
Wlan0: no wireless exentions zaicheke Linux - Wireless Networking 4 05-08-2004 09:23 AM
Broadcom wireless with ndiswrapper: ifconfig wlan0 works; ifup wlan0 fails orangechicken Linux - Wireless Networking 2 04-17-2004 05:39 PM


All times are GMT -5. The time now is 07:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration