LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-06-2008, 09:15 AM   #1
can564
Member
 
Registered: Apr 2004
Location: Vermont,USA
Distribution: Fedora Core 1
Posts: 67

Rep: Reputation: 15
Improperly formed /etc/network/interfaces


I am not sure I have properly formed my /etc/network/interfaces file

I am setting up a Belkin F5D7050 ver 3000 - USB ID 050d:705a - Ralink rt73 Driver Installation from the Ubuntu Guide here https://help.ubuntu.com/community/Wi...nk_rt73_driver)

On my Ubuntu 7.10 2.6.22-14-generic kernel.All other modules besides RT73 are blacklisted and the Ralink RT73 drivers RT73_Linux_STA_Drv1.0.4.0 compiled without errors and rtmp_def.h included my usb device {USB_DEVICE(0x050d,0x705a)}, /* Belkin F5D7050 ver 3000 */ \

In the guide it says to add to your /etc/network/interfaces file something like this

# rt73 wireless network device using DHCP
iface rausb0 inet dhcp
pre-up ifconfig rausb0 up
wireless-essid MY_ESSID
# wireless-key XXXXXXXXXXXXXXXXXXXXXXXXXX # This line for hexidecimal keys
# wireless-key s:XXXXXXXXXXXXX # This line for ASCII (string) keys
auto rausb0


I am setup up Auto DHCP and my access point has a essid called 802_11g with no security channel 1. I changed only the wireless-essid line to match my access point and left both key lines commented out because I am not using any security.It looks like this

auto lo
iface lo inet loopback

# rt73 wireless network device using DHCP
iface rausb0 inet dhcp
pre-up ifconfig rausb0 up
wireless-essid 802_11g
# wireless-key XXXXXXXXXXXXXXXXXXXXXXXXXX # This line for hexidecimal keys
# wireless-key s:XXXXXXXXXXXXX # This line for ASCII (string) keys
auto rausb0


My RT73 module is loading.my Belkin USB adapter is recognized.But iwconfig gives this.

marge@marge-desktop:~$ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

rausb0 RT73 WLAN ESSIDff/any
Mode:Auto Channel=1 Bit Rate=54 Mb/s
RTS thrff Fragment thrff


In networks tools rausb0 shows.It even shows it has transmitted and recieved packets.But it seems to not be accepting my setup.

So
is my /etc/network/interfaces file screwed up?

Where could I look for a log file thats would show the failed attempt?

dmseg simply shows
[ 930.785624] usb 2-1: new full speed USB device using uhci_hcd and address 3
[ 931.116985] usb 2-1: configuration #1 chosen from 1 choice
[ 931.119926] idVendor = 0x50d, idProduct = 0x705a
[ 931.238190] rt73 driver version - 1.0.4.0
[ 942.649287] rausb0: no IPv6 routers present


Which would be correct if it never negoitiated with the access point
 
Old 01-06-2008, 09:43 AM   #2
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
Hi,


Are you worried for the 'lo/eth0 no wireless extensions' and that's why you think that you're configuration isn't working? if so, you shouldn't...

And if rausb0 is actually sending/recieving packages, you should have net access right?

If you do this:
Code:
sudo ifdown rausb0 && sudo ifup rausb0 && iwconfig rausb0

The output is the same?

Also, it could be helpfull to know the output of netstat -rn




Regards

Last edited by Acron_0248; 01-06-2008 at 09:49 AM.
 
Old 01-06-2008, 01:51 PM   #3
can564
Member
 
Registered: Apr 2004
Location: Vermont,USA
Distribution: Fedora Core 1
Posts: 67

Original Poster
Rep: Reputation: 15
Thank you for the reply!!

My concern was the rausb0 RT73 WLAN ESSID:off/any

I had told the /etc/network/interfaces file wireless-essid 802_11g,with no quotes, and I also wasn't sure if leaving the both key lines commented out, was proper for open or no WEP WPA.

The info you asked me for raises more questions

Quote:
marge@marge-desktop:~$ sudo ifdown rausb0 && sudo ifup rausb0 && iwconfig rausb0
[sudo] password for marge:
RTNETLINK answers: No such process
There is already a pid file /var/run/dhclient.rausb0.pid with pid 5189
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/rausb0/00:1c:df:1b:c6:9d
Sending on LPF/rausb0/00:1c:df:1b:c6:9d
Sending on Socket/fallback
Error for wireless request "Set ESSID" (8B1A) :
SET failed on device rausb0 ; Network is down.
There is already a pid file /var/run/dhclient.rausb0.pid with pid 134519120
Internet Systems Consortium DHCP Client V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/rausb0/00:1c:df:1b:c6:9d
Sending on LPF/rausb0/00:1c:df:1b:c6:9d
Sending on Socket/fallback
DHCPDISCOVER on rausb0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on rausb0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on rausb0 to 255.255.255.255 port 67 interval 10
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
rausb0 RT73 WLAN ESSID:off/any
Mode:Auto Channel=1 Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Then

Quote:
marge@marge-desktop:~$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 rausb0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 rausb0
marge@marge-desktop:~
$

I do no not know where the rausb0 ip range 169.254.0.0 is coming from!!And I am not sure the direction I should take.
Also Error for wireless request "Set ESSID"My network is wide open and I can have always connected under "802_11g"

I also want to add the output of ifconfig
Quote:
marge@marge-desktop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:08:02:35:55:2E
inet addr:192.168.0.107 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::208:2ff:fe35:552e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8928 errors:0 dropped:0 overruns:0 frame:0
TX packets:7734 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6673616 (6.3 MB) TX bytes:1316318 (1.2 MB)

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:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:704 (704.0 b) TX bytes:704 (704.0 b)

rausb0 Link encap:Ethernet HWaddr 00:1C:DF:1B:C6:9D
inet6 addr: fe80::21c:dfff:fe1b:c69d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2942 errors:0 dropped:0 overruns:0 frame:0
TX packets:11375 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:213650 (208.6 KB) TX bytes:848712 (828.8 KB)

rausb0:av Link encap:Ethernet HWaddr 00:1C:DF:1B:C6:9D
inet addr:169.254.8.85 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
this make it look like rausbo:av is "up"

Last edited by can564; 01-06-2008 at 02:14 PM.
 
Old 01-06-2008, 02:01 PM   #4
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
The 169.254.0.0 is set automatically when a DHCP request isn't successful, from the netstat, it seems that you have and eth0 interface connected at your computer, is that true? do you use it?

You don't say too much about the topology of your network so I can't give you many details about what to do since I don't know what you have.

However, check at the /etc/network/interfaces to see if you uncommented a line that is trying to activate eth0, will be something like this:
Code:
iface eth0 inet dhcp
If so, comment that and any related entry to eth0 and restart the rausb0 (ifdown, ifup and so on...)




Regards

Last edited by Acron_0248; 01-06-2008 at 02:03 PM.
 
Old 01-06-2008, 04:21 PM   #5
can564
Member
 
Registered: Apr 2004
Location: Vermont,USA
Distribution: Fedora Core 1
Posts: 67

Original Poster
Rep: Reputation: 15
I am working at home with this computer and have a wired LAN available.I hope to move the computer once I sort out the wireless setup.My current lan use a linksys 4port router (192.168.0.1) with DHCP server on.I have an access point (not sure of the brand)@ ip192.168.0.240. WEP and WPA are off.The ssid is "802_11g" and it says it is on channel 1 and dhcp off.At the top of this post I copied my whole /etc/network/interfaces

auto lo
iface lo inet loopback

# rt73 wireless network device using DHCP
iface rausb0 inet dhcp
pre-up ifconfig rausb0 up
wireless-essid 802_11g
# wireless-key XXXXXXXXXXXXXXXXXXXXXXXXXX # This line for hexidecimal keys
# wireless-key s:XXXXXXXXXXXXX # This line for ASCII (string) keys
auto rausb0

There is no eth0 included.However it works wheneever I plug my LAN in.I do test with it disconnected and have done several hard reboots.

with my LAN unplugged I try to restart

[sudo] password for marge:
marge@marge-desktop:~$ sudo /etc/init.d/networking restart
[sudo] password for marge:
* Reconfiguring network interfaces... There is already a pid file /var/run/dhclient.rausb0.pid with pid 5366
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/rausb0/00:1c:df:1b:c6:9d
Sending on LPF/rausb0/00:1c:df:1b:c6:9d
Sending on Socket/fallback

Error for wireless request "Set ESSID" (8B1A) :
SET failed on device rausb0 ; Network is down.
There is already a pid file /var/run/dhclient.rausb0.pid with pid 134519120
Internet Systems Consortium DHCP Client V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/rausb0/00:1c:df:1b:c6:9d
Sending on LPF/rausb0/00:1c:df:1b:c6:9d
Sending on Socket/fallback
DHCPDISCOVER on rausb0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on rausb0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on rausb0 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
[ OK ]
marge@marge-desktop:~$

Then this is my ifconfig still with my LAN unplugged

marge@marge-desktop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:08:02:35:55:2E
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:841 errors:0 dropped:0 overruns:0 frame:0
TX packets:842 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:796726 (778.0 KB) TX bytes:118863 (116.0 KB)

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:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:352 (352.0 b) TX bytes:352 (352.0 b)

rausb0 Link encap:Ethernet HWaddr 00:1CF:1B:C6:9D
inet6 addr: fe80::21c:dfff:fe1b:c69d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:92 errors:0 dropped:0 overruns:0 frame:0
TX packets:298 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:114247 (111.5 KB) TX bytes:451200 (440.6 KB)

rausb0:av Link encap:Ethernet HWaddr 00:1CF:1B:C6:9D
inet addr:169.254.8.85 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

marge@marge-desktop:~$


My rt73 module is loaded

marge@marge-desktop:~$ lsmod | grep rt
rt73 216192 0
parport_pc 37412 1
parport 37448 3 ppdev,lp,parport_pc
iTCO_vendor_support 4868 1 iTCO_wdt
agpgart 35016 1 intel_agp
usbcore 138632 3 rt73,uhci_hcd
marge@marge-desktop:~$


My Belkin adapter is listed in lsusb

marge@marge-desktop:~$ lsusb
Bus 002 Device 002: ID 050d:705a Belkin Components
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
marge@marge-desktop:~$


and the end of dmesg looks like

[ 1219.562593] e100: eth0: e100_watchdog: link down
[ 1232.210698] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 1247.280393] rt73 driver version - 1.0.4.0
[ 1258.451159] rausb0: no IPv6 routers present


Final I sudo ifdown rausb0 && sudo ifup rausb0 && iwconfig rausb0

and get

marge@marge-desktop:~$ sudo ifdown rausb0 && sudo ifup rausb0 && iwconfig rausb0
There is already a pid file /var/run/dhclient.rausb0.pid with pid 5604
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/rausb0/00:1c:df:1b:c6:9d
Sending on LPF/rausb0/00:1c:df:1b:c6:9d
Sending on Socket/fallback
Error for wireless request "Set ESSID" (8B1A) :
SET failed on device rausb0 ; Network is down.
There is already a pid file /var/run/dhclient.rausb0.pid with pid 134519120
Internet Systems Consortium DHCP Client V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/rausb0/00:1c:df:1b:c6:9d
Sending on LPF/rausb0/00:1c:df:1b:c6:9d
Sending on Socket/fallback
DHCPDISCOVER on rausb0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on rausb0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on rausb0 to 255.255.255.255 port 67 interval 16
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
rausb0 RT73 WLAN ESSIDff/any
Mode:Auto Channel=1 Bit Rate=54 Mb/s
RTS thrff Fragment thrff

marge@marge-desktop:~$

I am stumpped!!
Is essid and ssid the same?
 
Old 01-06-2008, 04:54 PM   #6
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
Try this and check if you get the same error:
Code:
# sudo ifdown rausb0
# sudo iwconfig rausb0 essid 802_11g
# sudo dhclient rausb0

If that works, then, make this changes to the /etc/network/interfaces:
Code:
auto rausb0 
iface rausb0 inet dhcp
post-up iwconfig rausb0 essid 802_11g


Regards
 
Old 01-06-2008, 08:17 PM   #7
can564
Member
 
Registered: Apr 2004
Location: Vermont,USA
Distribution: Fedora Core 1
Posts: 67

Original Poster
Rep: Reputation: 15
Thank you again! I will try this tomorrow and report back.
 
Old 01-08-2008, 06:54 PM   #8
can564
Member
 
Registered: Apr 2004
Location: Vermont,USA
Distribution: Fedora Core 1
Posts: 67

Original Poster
Rep: Reputation: 15
Sorry Acron due to circumstances beyond my control I have had to put this project on hold.But I will repost a soon as possible.
 
  


Reply



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
Network interfaces do not bring up on network restart rajat Linux - Networking 1 06-20-2007 04:44 AM
For laptop - different networks in /etc/network/interfaces, or use network-manager? dmravaet Linux - Wireless Networking 4 03-17-2007 11:42 PM
Manual Network Setup Works, /etc/network/interfaces doesn't verdeboy2k Linux - Wireless Networking 0 05-31-2006 06:56 PM
Two Interfaces on the same Network cspcom Linux - Newbie 6 06-18-2005 04:32 PM
need help with /etc/network/interfaces littlemidget Linux - Networking 1 08-04-2004 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 07:57 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration