LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-21-2007, 07:23 AM   #16
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422

OK, that was a nice bit of work on your part and you're right, it is looking good. Right now the things to check are:

lsmod - make sure bcm43xx is NOT loaded, and if it is unload it(modprobe -r bcm43xx). If you have both ndiswrapper and bcm43xx loaded at the same time, you've got trouble.

iwconfig - check that your configurations have taken. Are you using either WEP or WPA encryption?

ifconfig - see if you've gotten and IP address.

Post the outputs of any of those if you've got questions.
 
Old 05-22-2007, 09:28 PM   #17
SyCo123
Member
 
Registered: May 2007
Posts: 96

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Hangdog42
lsmod - make sure bcm43xx is NOT loaded, and if it is unload it(modprobe -r bcm43xx). If you have both ndiswrapper and bcm43xx loaded at the same time, you've got trouble.
lsmod shows no sign of bcm43xx
Code:
simon@ubuntu:~$ lsmod
Module                  Size  Used by
binfmt_misc            12680  1 
rfcomm                 40856  0 
l2cap                  25728  5 rfcomm
bluetooth              55908  4 rfcomm,l2cap
fglrx                 540004  11 
ppdev                  10116  0 
ipv6                  268704  8 
powernow_k8            16064  0 
cpufreq_powersave       2688  0 
cpufreq_userspace       5408  0 
cpufreq_ondemand        9228  1 
cpufreq_conservative     8200  0 
cpufreq_stats           7360  0 
Hfreq_table              5792  3 powernow_k8,cpufreq_ondemand,cpufreq_stats
tc1100_wmi              8068  0 
pcc_acpi               13184  0 
sony_acpi               6284  0 
dev_acpi               12292  0 
ac                      6020  0 
video                  16388  0 
button                  8720  0 
sbs                    15652  0 
i2c_ec                  5888  1 sbs
container               5248  0 
battery                10756  0 
dock                   10268  0 
asus_acpi              17308  0 
backlight               7040  1 asus_acpi
joydev                 10816  0 
sbp2                   23812  0 
parport_pc             36388  0 
lp                     12452  0 
parport                36936  3 ppdev,parport_pc,lp
pcmcia                 39212  0 
snd_atiixp_modem       17160  0 
snd_atiixp             20620  1 
snd_seq_dummy           4740  0 
snd_seq_oss            32896  0 
snd_seq_midi            9600  0 
snd_rawmidi            25472  1 snd_seq_midi
snd_ac97_codec         98336  2 snd_atiixp_modem,snd_atiixp
snd_seq_midi_event      8448  2 snd_seq_oss,snd_seq_midi
snd_seq                52592  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
k8temp                  6656  0 
psmouse                38920  0 
ac97_bus                3200  1 snd_ac97_codec
snd_pcm_oss            44544  0 
snd_mixer_oss          17408  1 snd_pcm_oss
snd_pcm                79876  4 snd_atiixp_modem,snd_atiixp,snd_ac97_codec,snd_pcm_oss
snd_timer              23684  2 snd_seq,snd_pcm
serio_raw               7940  0 
snd_seq_device          9100  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
pcspkr                  4224  0 
yenta_socket           27532  1 
rsrc_nonstatic         14080  1 yenta_socket
pcmcia_core            40852  3 pcmcia,yenta_socket,rsrc_nonstatic
snd                    54020  13 snd_atiixp_modem,snd_atiixp,snd_seq_oss,snd_rawmidi,snd_ac97_codec,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_seq_device
soundcore               8672  1 snd
tifm_7xx1              10240  0 
tifm_core               9856  1 tifm_7xx1
sdhci                  18700  0 
mmc_core               26756  1 sdhci
af_packet              23816  2 
snd_page_alloc         10888  3 snd_atiixp_modem,snd_atiixp,snd_pcm
ati_agp                10124  0 
agpgart                35400  2 fglrx,ati_agp
i2c_piix4               9740  0 
i2c_core               22784  2 i2c_ec,i2c_piix4
shpchp                 34324  0 
pci_hotplug            32576  1 shpchp
tsdev                   8768  0 
evdev                  11008  5 
ide_cd                 32672  0 
cdrom                  37664  1 ide_cd
ide_disk               17024  2 
8139cp                 25088  0 
ata_generic             9092  0 
generic                 5124  0 [permanent]
8139too                27648  0 
mii                     6528  2 8139cp,8139too
ohci1394               36528  0 
ieee1394              299448  2 sbp2,ohci1394
atiixp                  7440  0 [permanent]
thermal                14856  0 
processor              31048  2 powernow_k8,thermal
fan                     5636  0 
fbcon                  42656  0 
tileblit                3584  1 fbcon
font                    9216  1 fbcon
bitblit                 6912  1 fbcon
softcursor              3200  1 bitblit
vesafb                  9220  0 
capability              5896  0 
commoncap               8192  1 capability
nls_iso8859_1           5120  0 
nls_cp437               6784  0 
nls_utf8                3072  0 
squashfs               49028  0 
unionfs                74020  0 
loop                   17800  6 
fuse                   46612  3 
ntfs                  107764  0 
hfs                    49924  0 
hfsplus                78212  0 
isofs                  36284  0 
xfs                   562008  0 
jfs                   188900  0 
vfat                   14208  0 
fat                    53916  1 vfat
reiserfs              247680  0 
ext3                  133128  2 
jbd                    59816  1 ext3
ext2                   66824  0 
mbcache                 9604  2 ext3,ext2
sata_vsc               10116  0 
sata_via               12548  0 
sata_uli                8836  0 
sata_sx4               14596  0 
sata_svw                9220  0 
sata_sis               10500  0 
sata_sil               12808  0 
sata_sil24             15492  0 
sata_qstor             10500  0 
sata_promise           13316  0 
sata_nv                20868  0 
sata_mv                20232  0 
sata_inic162x          13060  0 
pdc_adma               10372  0 
pata_sis               14220  1 sata_sis
ata_piix               15492  0 
usb_storage            72256  0 
libusual               17936  1 usb_storage
ohci_hcd               22532  0 
uhci_hcd               25360  0 
ehci_hcd               34188  0 
usbcore               134280  6 usb_storage,libusual,ohci_hcd,uhci_hcd,ehci_hcd
sd_mod                 23428  0 
libata                125720  17 ata_generic,sata_vsc,sata_via,sata_uli,sata_sx4,sata_svw,sata_sis,sata_sil,sata_sil24,sata_qstor,sata_promise,sata_nv,sata_mv,sata_inic162x,pdc_adma,pata_sis,ata_piix
scsi_mod              142348  4 sbp2,usb_storage,sd_mod,libata
raid0                   9600  0 
raid1                  25600  0 
md_mod                 79764  2 raid0,raid1
Quote:
Originally Posted by Hangdog42
iwconfig - check that your configurations have taken. Are you using either WEP or WPA encryption?
with windows i have WPA (and WPA2 i think)
Here's the iwconfig output
Code:
simon@ubuntu:~$ iwconfig
lo        no wireless extensions.
eth0      no wireless extensions.
Quote:
Originally Posted by Hangdog42
ifconfig - see if you've gotten and IP address.
Here's ifconfig output with a wired connetion
Code:
simon@ubuntu:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:D4:39:03:9C  
          inet addr:192.168.2.4  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::216:d4ff:fe39:39c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10449 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6068 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:15533858 (14.8 MiB)  TX bytes:446006 (435.5 KiB)
          Interrupt:21 Base address:0x400 

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:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:100 (100.0 b)  TX bytes:100 (100.0 b)
Thanks again for your continued help with this.

Any ideas what I can try next?
 
Old 05-23-2007, 07:07 AM   #18
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
lsmod shows no sign of bcm43xx
That is very good. What is extremely unfortunate however is that lsmod also shows no signs of ndiswrapper. Are you loading the module (moprobe ndiswrapper)? Not having ndiswrapper loaded would also explain your lack of a wireless device in the iwconfig output.
 
Old 05-23-2007, 08:23 AM   #19
SyCo123
Member
 
Registered: May 2007
Posts: 96

Original Poster
Rep: Reputation: 15
humm, i wondered if that should be there.

So the gaps in my knowledge are beginning to show now I'm not sure how I would load the module. Would I have to enter that command every time or where would I enter it to load itself on boot?
 
Old 05-23-2007, 08:50 AM   #20
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
You will have to load ndiswrapper each time you boot, but lets see if we can get it working before we worry about loading it on boot. The command to load it is (you need to be root):

modprobe ndiswrapper

Modprobe only complains if there is an error, so if you just get a command line back, that is a good thing. You can also check lsmod and see if ndiswrapper is loaded. Once it was loaded, you should see a new wireless interface in iwconfig.
 
Old 05-23-2007, 09:34 AM   #21
srikar_gottipati
LQ Newbie
 
Registered: Mar 2007
Distribution: Mandriva Spring
Posts: 21

Rep: Reputation: 15
This Broadcomm cards are very tricky cards and its a pain to get them to work on Ubuntu. Once you install your ndiswrapper, try these steps:

ndiswrapper -l (Lists all the drivers present)
ndiswrapper -i bcmwl5.inf (This installs the wireless driver)
ndiswrapper -l (You should see ur driver now)
ndiswrapper -m (This is required to start ndiswrapper everytime on startup)
modprobe ndiswrapper (This starts the ndiswrapper module).

Then you have to do some blacklisting stuff in Ubuntu,which im not aware of. I use Mandriva Spring and its a cake walk to configure wireless and other hardware there. Not really sure of how to go about to configure in Ubuntu,once ndiswrapper is loaded.
 
Old 05-23-2007, 07:45 PM   #22
SyCo123
Member
 
Registered: May 2007
Posts: 96

Original Poster
Rep: Reputation: 15
still no joy here's the results

Code:
simon@ubuntu:~$ sudo modprobe ndiswrapper
Password:
simon@ubuntu:~$ lsmod
Module                  Size  Used by
ndiswrapper           185052  0 
binfmt_misc            12680  1 
rfcomm                 40856  0 
l2cap                  25728  5 rfcomm
bluetooth              55908  4 rfcomm,l2cap
ppdev                  10116  0 
fglrx                 540004  11 
powernow_k8            16064  0 
cpufreq_powersave       2688  0 
cpufreq_userspace       5408  0 
cpufreq_ondemand        9228  1 
cpufreq_conservative     8200  0 
cpufreq_stats           7360  0 
freq_table              5792  3 powernow_k8,cpufreq_ondemand,cpufreq_stats
tc1100_wmi              8068  0 
pcc_acpi               13184  0 
sony_acpi               6284  0 
dev_acpi               12292  0 
ac                      6020  0 
video                  16388  0 
button                  8720  0 
sbs                    15652  0 
i2c_ec                  5888  1 sbs
container               5248  0 
battery                10756  0 
dock                   10268  0 
asus_acpi              17308  0 
backlight               7040  1 asus_acpi
ipv6                  268704  8 
sbp2                   23812  0 
parport_pc             36388  0 
lp                     12452  0 
parport                36936  3 ppdev,parport_pc,lp
joydev                 10816  0 
pcmcia                 39212  0 
snd_atiixp_modem       17160  0 
snd_atiixp             20620  1 
snd_seq_dummy           4740  0 
snd_ac97_codec         98336  2 snd_atiixp_modem,snd_atiixp
snd_seq_oss            32896  0 
snd_seq_midi            9600  0 
snd_rawmidi            25472  1 snd_seq_midi
pcspkr                  4224  0 
ac97_bus                3200  1 snd_ac97_codec
snd_pcm_oss            44544  0 
snd_mixer_oss          17408  1 snd_pcm_oss
snd_pcm                79876  4 snd_atiixp_modem,snd_atiixp,snd_ac97_codec,snd_pcm_oss
psmouse                38920  0 
snd_seq_midi_event      8448  2 snd_seq_oss,snd_seq_midi
serio_raw               7940  0 
tifm_7xx1              10240  0 
tifm_core               9856  1 tifm_7xx1
snd_seq                52592  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
yenta_socket           27532  1 
rsrc_nonstatic         14080  1 yenta_socket
pcmcia_core            40852  3 pcmcia,yenta_socket,rsrc_nonstatic
sdhci                  18700  0 
mmc_core               26756  1 sdhci
snd_timer              23684  2 snd_pcm,snd_seq
snd_seq_device          9100  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
k8temp                  6656  0 
af_packet              23816  4 
snd                    54020  13 snd_atiixp_modem,snd_atiixp,snd_ac97_codec,snd_seq_oss,snd_rawmidi,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq,snd_timer,snd_seq_device
soundcore               8672  1 snd
i2c_piix4               9740  0 
ati_agp                10124  0 
snd_page_alloc         10888  3 snd_atiixp_modem,snd_atiixp,snd_pcm
i2c_core               22784  2 i2c_ec,i2c_piix4
agpgart                35400  2 fglrx,ati_agp
shpchp                 34324  0 
pci_hotplug            32576  1 shpchp
tsdev                   8768  0 
evdev                  11008  5 
ide_disk               17024  2 
ide_cd                 32672  0 
cdrom                  37664  1 ide_cd
8139cp                 25088  0 
ata_generic             9092  0 
generic                 5124  0 [permanent]
8139too                27648  0 
mii                     6528  2 8139cp,8139too
ohci1394               36528  0 
ieee1394              299448  2 sbp2,ohci1394
atiixp                  7440  0 [permanent]
thermal                14856  0 
processor              31048  2 powernow_k8,thermal
fan                     5636  0 
fbcon                  42656  0 
tileblit                3584  1 fbcon
font                    9216  1 fbcon
bitblit                 6912  1 fbcon
softcursor              3200  1 bitblit
vesafb                  9220  0 
capability              5896  0 
commoncap               8192  1 capability
nls_iso8859_1           5120  0 
nls_cp437               6784  0 
nls_utf8                3072  0 
squashfs               49028  0 
unionfs                74020  0 
loop                   17800  6 
fuse                   46612  3 
ntfs                  107764  0 
hfs                    49924  0 
hfsplus                78212  0 
isofs                  36284  0 
xfs                   562008  0 
jfs                   188900  0 
vfat                   14208  0 
fat                    53916  1 vfat
reiserfs              247680  0 
ext3                  133128  2 
jbd                    59816  1 ext3
ext2                   66824  0 
mbcache                 9604  2 ext3,ext2
sata_vsc               10116  0 
sata_via               12548  0 
sata_uli                8836  0 
sata_sx4               14596  0 
sata_svw                9220  0 
sata_sis               10500  0 
sata_sil               12808  0 
sata_sil24             15492  0 
sata_qstor             10500  0 
sata_promise           13316  0 
sata_nv                20868  0 
sata_mv                20232  0 
sata_inic162x          13060  0 
pdc_adma               10372  0 
pata_sis               14220  1 sata_sis
ata_piix               15492  0 
usb_storage            72256  0 
libusual               17936  1 usb_storage
ohci_hcd               22532  0 
uhci_hcd               25360  0 
ehci_hcd               34188  0 
usbcore               134280  7 ndiswrapper,usb_storage,libusual,ohci_hcd,uhci_hcd,ehci_hcd
sd_mod                 23428  0 
libata                125720  17 ata_generic,sata_vsc,sata_via,sata_uli,sata_sx4,sata_svw,sata_sis,sata_sil,sata_sil24,sata_qstor,sata_promise,sata_nv,sata_mv,sata_inic162x,pdc_adma,pata_sis,ata_piix
scsi_mod              142348  4 sbp2,usb_storage,sd_mod,libata
raid0                   9600  0 
raid1                  25600  0 
md_mod                 79764  2 raid0,raid1
simon@ubuntu:~$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11g  ESSID:off/any  
          Mode:Managed  Frequency:2.462 GHz  Access Point: Not-Associated   
          Bit Rate=54 Mb/s   Tx-Power:32 dBm   
          RTS thr=2347 B   Fragment thr=2346 B   
          Power Management:off
          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

simon@ubuntu:~$ ndiswrapper -l
bcmwl5 : driver installed
        device (14E4:4318) present (alternate driver: bcm43xx)
simon@ubuntu:~$ ndiswrapper -i bcmwl5.inf 
driver bcmwl5 is already installed
 
Old 05-24-2007, 07:21 AM   #23
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
still no joy here's the results
I beg to disagree, there is joy because now iwconfig shows a functional wireless device (eth1). The only thing left to do is configure it and request an IP address.

So set your SSID with the command iwconfig eth1 essid YourSSID

If you're using a WEP key, you set that:

iwconfig eth1 key YourWEPKeyInHex (if you look at the iwconfig man page, there are also ways of entering the text key if that is what you have).

If you're using WPA encryption, we'll have to work on getting wpa_supplicant to run. In either case (WEP or WPA) you might want turn it off at the router temporarily just to see if the driver is working.

Once you've gotten the SSID entered (and a key if needed) you should see a MAC address appear in the Access Point field of your iwconfig output. That means you've successfully associated with the AP, and all that you need to do is request an IP address. I'm pretty sure Ubuntu uses the ifup command, so try:

ifup eth1

If that is successful, you should see an IP address assigned to eth1 in the ifconfig output and you should be good to go. By the way, both the iwconfig and ifup commands need to be run as root.
 
Old 05-27-2007, 02:29 PM   #24
SyCo123
Member
 
Registered: May 2007
Posts: 96

Original Poster
Rep: Reputation: 15
cool!, i though eth1 was the wired correction, happy to be mistaken!

I turned off WEP and WPA at the router as suggested and added the ssid aparently without error but can't see a MAC address in the iwconfig output.

Code:
simon@ubuntu:~$ sudo iwconfig eth1 essid fortress
simon@ubuntu:~$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11g  ESSID:off/any  
          Mode:Managed  Frequency:2.462 GHz  Access Point: Not-Associated   
          Bit Rate=54 Mb/s   Tx-Power:32 dBm   
          RTS thr=2347 B   Fragment thr=2346 B   
          Power Management:off
          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

imon@ubuntu:~$ sudo ifup eth1
ifup: interface eth1 already configured
simon@ubuntu:~$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11g  ESSID:off/any  
          Mode:Managed  Frequency:2.462 GHz  Access Point: Not-Associated   
          Bit Rate=54 Mb/s   Tx-Power:32 dBm   
          RTS thr=2347 B   Fragment thr=2346 B   
          Power Management:off
          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

simon@ubuntu:~$
 
Old 05-27-2007, 02:37 PM   #25
SyCo123
Member
 
Registered: May 2007
Posts: 96

Original Poster
Rep: Reputation: 15
a quick google and i've found these commands to try
Code:
iwpriv eth1 network_type g
iwconfig eth1 essid "any"
ifconfig eth1 up
iwlist eth1 scan
here's the output of the scan

Code:
eth1      Scan completed :
          Cell 01 - Address: 00:C0:49:F0:EE:0A
                    ESSID:"fortress"
                    Protocol:IEEE 802.11g
                    Mode:Managed
                    Frequency:2.462 GHz (Channel 11)
                    Quality:73/100  Signal level:-49 dBm  Noise level:-96 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
                              12 Mb/s; 48 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=0
          Cell 02 - Address: 00:18:F8:FE:E0:68
                    ESSID:"linksys"
                    Protocol:IEEE 802.11g
                    Mode:Managed
                    Frequency:2.437 GHz (Channel 6)
                    Quality:18/100  Signal level:-84 dBm  Noise level:-96 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
                              12 Mb/s; 48 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=0
looking better! Still no wireless connection though ifup eth1 says
ifup: interface eth1 already configured

No wireless connection listed in the router either.

Heres the routers status page info (refreshed).
Code:
The router is connected to the Internet.

Click the Refresh button at the bottom of the page to display the latest values.
Device
Name: 	U.S. Robotics Wireless MAXg Router (USR5461)
Firmware: 	3.91.37.0.2 (Mar 11 2005)
Boot loader: 	CFE 3.91.37.0.1
Printer status: 	Not Ready
Printer location: 	http://192.168.2.1:1631/printers/My_Printer
 
Security
Method: 	None
Encryption: 	TKIP and AES
Pass phrase: 	(removed)
Key: 	(removed)
RADIUS server: 	
RADIUS port: 	1812
RADIUS key: 	
Wireless MAC filter: 	Disabled
 
Wireless
Network name: 	fortress
Broadcast name: 	Enabled
MAC address: 	00:C0:49:F0:EE:0A
Mode: 	Access Point
WDS restrictions: 	Disabled
 
WAN
Protocol: 	DHCP
MAC address: 	00:C0:49:F0:EE:0B
IP address: 	75.70.37.83
Subnet mask: 	255.255.248.0
Gateway: 	75.70.32.1
DNS server 1: 	68.87.85.98
DNS server 2: 	68.87.69.146
Lease expires: 	40 minutes, 20 seconds
 
	
 
LAN
IP address: 	192.168.2.1
Subnet mask: 	255.255.255.0
MAC address: 	00:C0:49:F0:EE:0B


Clients
Type 	Name 	MAC Address 	IP Address 	Expiration
wired	ubuntu	00:16:D4:39:03:9C	192.168.2.2	55 minutes, 27 seconds
wired	Slim	00:16:E3:95:E1:1D	192.168.2.3	21 minutes, 4 seconds
wired	doodar	00:14:A5:BD:00:60	192.168.2.4	Expired

Last edited by SyCo123; 05-27-2007 at 04:43 PM.
 
Old 05-27-2007, 05:17 PM   #26
SyCo123
Member
 
Registered: May 2007
Posts: 96

Original Poster
Rep: Reputation: 15
Have been googling and tried a few things but not sure if this was the case before but I can connect to my router wirelessly!! I think it was the command

sudo dhclient

that worked.

This is a major step but I still can't connect to the internet wirelessly so it has to be a configuration thing now?

I have a wireless connection to my router (fortress) in System>admin>network

I'd really like to be able to simply boot up and connect wirelessly with wpa and without having to open a terminal every time. Do you think this is going to be possible?


so here's some outputs to let you know whats going on.

Code:
simon@ubuntu:/$ ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:16:D4:39:03:9C  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:23732 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18121 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:26336204 (25.1 MiB)  TX bytes:1877182 (1.7 MiB)
          Interrupt:21 Base address:0x400 

eth1      Link encap:Ethernet  HWaddr 00:14:A5:BD:00:60  
          inet addr:192.168.2.4  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::214:a5ff:febd:60/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1678 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1646 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:799809 (781.0 KiB)  TX bytes:149662 (146.1 KiB)
          Interrupt:22 Memory:c0204000-c0206000 

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:140 errors:0 dropped:0 overruns:0 frame:0
          TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:12804 (12.5 KiB)  TX bytes:12804 (12.5 KiB)

simon@ubuntu:/$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11g  ESSID:"fortress"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:C0:49:F0:EE:0A   
          Bit Rate=54 Mb/s   Tx-Power:32 dBm   
          RTS thr=2347 B   Fragment thr=2346 B   
          Power Management:off
          Link Quality:71/100  Signal level:-50 dBm  Noise level:-96 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

simon@ubuntu:/$

Last edited by SyCo123; 05-27-2007 at 05:22 PM.
 
Old 05-27-2007, 06:14 PM   #27
SyCo123
Member
 
Registered: May 2007
Posts: 96

Original Poster
Rep: Reputation: 15
just tried

sudo ifdown eth1 && sudo ifup eth1

and this is coming to you wirelessy in Ubuntu!!!!

I kind of stumbled to this result so if I can get this to happen again after rebooting that'll be another thing!

WPA and connecting on boot is all that I need now.

thanks for helping me to get this far!
 
Old 05-28-2007, 01:35 PM   #28
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Congrats! I'm hoping that you've been able to recreate your wireless setup. As far as WPA goes, you'll need to install and run wpa_supplicant. I've got some instructions on doing that on my help site as well as examples of how the configuration needs to look. The good news is that wpa_supplicant will take over the configuration duties, so you'll just need to start it and then if all goes well, request an IP address.

If you hang in there with the console until you get WPA sorted out, it should be easy to either get whatever GUI monstrosity Ubuntu uses for configuring wireless cards or to write a brief script that runs at boot time.
 
Old 09-05-2007, 10:30 AM   #29
SyCo123
Member
 
Registered: May 2007
Posts: 96

Original Poster
Rep: Reputation: 15
UPDATE
=======

Not sure if it worth sarting a new thread here but I hope someone can help.

It's been a while since posting in this thread because Wubi developed a problem so I've installed edgy (then upgraded to fiesty) to a partition and following this thread I'm back to where is was.

Using ndiswrapper I have a wireless light and can connect wirelessly if I disable security on the router.

I would like to have WPA and WPA2 enabled at the router


Here's some info, if you need more I'll post it.

my wpa_supplicant.conf

Code:
ctrl_interface=/var/run/wpa_supplicant
 network={
   ssid="fortress"
   psk="hTvHAivbq1KEYKEYKEYHnl8bgTNUdk"
   key_mgmt=WPA-PSK
   proto=WPA
   pairwise=TKIP
 }
Code:
simon@simon-laptop:~$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11g  ESSID:"fortress"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:C0:49:F0:EE:0A   
          Bit Rate=54 Mb/s   Tx-Power:32 dBm   
          RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality:65/100  Signal level:-54 dBm  Noise level:-96 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:7  Invalid misc:268   Missed beacon:0

simon@simon-laptop:~$
Code:
simon@simon-laptop:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:D4:39:03:9C  
          inet addr:192.168.2.6  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::216:d4ff:fe39:39c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5270 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3857 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5799774 (5.5 MiB)  TX bytes:568105 (554.7 KiB)
          Interrupt:22 Base address:0xa400 

eth1      Link encap:Ethernet  HWaddr 00:14:A5:BD:00:60  
          inet6 addr: fe80::214:a5ff:febd:60/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:853 errors:0 dropped:0 overruns:0 frame:0
          TX packets:918 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:96389 (94.1 KiB)  TX bytes:131935 (128.8 KiB)
          Interrupt:21 Memory:c0204000-c0206000 

eth1:avah Link encap:Ethernet  HWaddr 00:14:A5:BD:00:60  
          inet addr:169.254.5.118  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          Interrupt:21 Memory:c0204000-c0206000 

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:21 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1724 (1.6 KiB)  TX bytes:1724 (1.6 KiB)

simon@simon-laptop:
~$


Code:
simon@simon-laptop:~$ sudo /etc/init.d/networking restart
Password:
 * Reconfiguring network interfaces...                                          There is already a pid file /var/run/dhclient.eth0.pid with pid 5485
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:16:d4:39:03:9c
Sending on   LPF/eth0/00:16:d4:39:03:9c
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.2.1 port 67
There is already a pid file /var/run/dhclient.eth1.pid with pid 5417
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:14:a5:bd:00:60
Sending on   LPF/eth1/00:14:a5:bd:00:60
Sending on   Socket/fallback
DHCPRELEASE on eth1 to 192.168.2.1 port 67
There is already a pid file /var/run/dhclient.eth0.pid with pid 6847440
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:16:d4:39:03:9c
Sending on   LPF/eth0/00:16:d4:39:03:9c
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPOFFER from 192.168.2.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.2.1
bound to 192.168.2.6 -- renewal in 1433 seconds.
Error for wireless request "Set Encode" (8B2A) :
    invalid argument "hTvHAivbq1uj2KdPkPWTnHnl8bgTNUdk".
There is already a pid file /var/run/dhclient.eth1.pid with pid 6847440
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:14:a5:bd:00:60
Sending on   LPF/eth1/00:14:a5:bd:00:60
Sending on   Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
eth2: ERROR while getting interface flags: No such device
There is already a pid file /var/run/dhclient.eth2.pid with pid 6847440
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

SIOCSIFADDR: No such device
eth2: ERROR while getting interface flags: No such device
eth2: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up eth2.
ath0: ERROR while getting interface flags: No such device
There is already a pid file /var/run/dhclient.ath0.pid with pid 6847440
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

SIOCSIFADDR: No such device
ath0: ERROR while getting interface flags: No such device
ath0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up ath0.
wlan0: ERROR while getting interface flags: No such device
There is already a pid file /var/run/dhclient.wlan0.pid with pid 6847440
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

SIOCSIFADDR: No such device
wlan0: ERROR while getting interface flags: No such device
wlan0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up wlan0.
                                                                         [ OK ]
simon@simon-laptop:~$
 
Old 09-05-2007, 12:32 PM   #30
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
You'll need to refresh my memory on how you're starting wpa_supplicant. It looks like it is getting started, but any flags you use might give a clue.


Quote:
Listening on LPF/eth0/00:16:d4:39:03:9c
Sending on LPF/eth0/00:16:d4:39:03:9c
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPOFFER from 192.168.2.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.2.1
bound to 192.168.2.6 -- renewal in 1433 seconds.
Error for wireless request "Set Encode" (8B2A) :
invalid argument "hTvHAivbq1uj2KdPkPWTnHnl8bgTNUdk".
There is already a pid file /var/run/dhclient.eth1.pid with pid 6847440
This little exchange is kind of interesting in that it looks to me like DHCP is working, at least for eth0. You might want to double check your settings because one possible interpretation of this is that wpa_supplicant is trying to set a wireless key on eth0, which it obviously can't since eth1 is the wireless card.

It also looks as if it is barfing on the various .pid files. You might try removing them and then starting your network services.

Also, is your WPA key really that long? I don't know if there is a length limit for passphrases, but that does seem a touch overdone.
 
  


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
Broadcom Wireless (BCM4306) Wireless problems: modprobe ndiswrapper freezes HP Laptop shthap3ns Linux - Hardware 11 02-11-2007 12:53 PM
Broadcom 4318 woes poblano Linux - Wireless Networking 4 11-13-2006 02:12 AM
[FC-6 x86_64] Broadcom Corporation Dell Wireless 1390 woes homer420 Linux - Laptop and Netbook 2 11-02-2006 01:54 PM
HP Laptop, Broadcom 54G Woes. Noctaire Mandriva 3 12-04-2005 11:50 AM
wireless problems; Broadcom 802.11G Mini PCI Wireless with redhat WS surfbass Linux - Laptop and Netbook 1 12-17-2004 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:18 PM.

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