LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-20-2012, 08:24 PM   #1
wubai
Member
 
Registered: Dec 2009
Posts: 103

Rep: Reputation: 20
[solved]why my wireless can't connect without wired connection?


I'm using wicd as network manager , but it can't connect successfully without wired connection. i have to use wired first, then i connect wireless , it can connect successfully, otherwise, it just can't connect to internet.

please help.

Last edited by wubai; 10-25-2012 at 09:45 PM.
 
Old 09-21-2012, 09:31 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,712

Rep: Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458
What distro/version?
 
Old 09-25-2012, 12:16 AM   #3
wubai
Member
 
Registered: Dec 2009
Posts: 103

Original Poster
Rep: Reputation: 20
slackware 13.37, Broadcom Corporation BCM4313
 
Old 09-25-2012, 08:23 PM   #4
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,712

Rep: Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458
I'm wondering whether your wireless is actually connecting. Slackware does not include Broadcom support by default, but you can find what you need on Slackbuilds.org. If you have done something it install the Broadcom support, please outline what you've done.

Have you compared the output of ifconfig -a when the wired is not connected, when it alone is connected, then again when the wired (and wireless) are connected? If you post that here, be sure to surround it in code tags, which become available when you click the "Go Advanced" button at the bottom of the "Quick Reply" window.

Also, are you using a network manager or init files to configure your connection? That could also be useful information.

I struggled with Broadcom on Slackware Current myself, and eventually got it working with the help of LQ. You can see the replies to my thread here. You might find something useful there.

http://www.linuxquestions.org/questi...urrent-926077/
 
Old 09-27-2012, 11:46 PM   #5
wubai
Member
 
Registered: Dec 2009
Posts: 103

Original Poster
Rep: Reputation: 20
I think BCM4313 is recognized as eth1 in my system, cause there is no wlan0. It can connect to router every time, [I can access the interface of router] but i can't access any website, it always shows 'checking the dns' sort of thing, unless i keep the wired connection on for a while. i tried to add the dns ip into /etc/resolv.conf and 'chattr +i' that file, it still doesn't work. it's frustrated, i feel i'll never work this out.
 
Old 09-28-2012, 08:28 PM   #6
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,712

Rep: Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458
Could you post the output of ifconfig -a and the contents of you config files as requested above, as well as the output of lspci? That might us a hint.

Please surround them in code tags, as noted above. It makes them a lot easier to read.

Here'a link to the networking section from the Slackbook; it's a little outdated, but maybe it will help.

http://www.slackbook.org/html/book.h...GURATION-TCPIP
 
Old 10-07-2012, 07:38 PM   #7
wubai
Member
 
Registered: Dec 2009
Posts: 103

Original Poster
Rep: Reputation: 20
sorry i replied this so late,

Code:
$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 18:03:73:8d:55:97
UP BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:45 Base address:0x6000

eth1 Link encap:Ethernet HWaddr cc:af:78:a5:6c:75
inet addr:192.168.1.105 Bcast:255.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1594 (1.5 KiB) TX bytes:1892 (1.8 KiB)
Interrupt:18

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


$ lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] Device 1705
00:01.0 VGA compatible controller: ATI Technologies Inc Device 9648
00:01.1 Audio device: ATI Technologies Inc Device 1714
00:04.0 PCI bridge: Advanced Micro Devices [AMD] Device 1709
00:06.0 PCI bridge: Advanced Micro Devices [AMD] Device 170b
00:10.0 USB Controller: Advanced Micro Devices [AMD] Hudson USB XHCI Controller (rev 03)
00:10.1 USB Controller: Advanced Micro Devices [AMD] Hudson USB XHCI Controller (rev 03)
00:11.0 SATA controller: Advanced Micro Devices [AMD] Hudson SATA Controller [AHCI mode] (rev 40)
00:12.0 USB Controller: Advanced Micro Devices [AMD] Hudson USB OHCI Controller (rev 11)
00:12.2 USB Controller: Advanced Micro Devices [AMD] Hudson USB EHCI Controller (rev 11)
00:13.0 USB Controller: Advanced Micro Devices [AMD] Hudson USB OHCI Controller (rev 11)
00:13.2 USB Controller: Advanced Micro Devices [AMD] Hudson USB EHCI Controller (rev 11)
00:14.0 SMBus: Advanced Micro Devices [AMD] Hudson SMBus Controller (rev 13)
00:14.1 IDE interface: Advanced Micro Devices [AMD] Hudson IDE Controller
00:14.2 Audio device: Advanced Micro Devices [AMD] Hudson Azalia Controller (rev 01)
00:14.3 ISA bridge: Advanced Micro Devices [AMD] Hudson LPC Bridge (rev 11)
00:14.4 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI Bridge (rev 40)
00:14.5 USB Controller: Advanced Micro Devices [AMD] Hudson USB OHCI Controller (rev 11)
00:14.7 SD Host controller: Advanced Micro Devices [AMD] Hudson SD Flash Controller
00:15.0 PCI bridge: Advanced Micro Devices [AMD] Device 43a0
00:15.1 PCI bridge: Advanced Micro Devices [AMD] Device 43a1
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 0 (rev 43)
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 6
00:18.6 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 5
00:18.7 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 7
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 05)
02:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)

Last edited by wubai; 10-07-2012 at 07:45 PM. Reason: as u see, eth1 can get ip, which means it can connect to router, but i can't access any web
 
Old 10-07-2012, 08:18 PM   #8
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,712

Rep: Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458
Re: Your late reply: all I can say is how dare you have a life?

Your wired connection would be eth0; eth1 should be your wireless card, correct.

What network manager are you using and does it show any wireless networks as available when you know you are in range of wifi? wicd is my preferred network manager for wireless, but I have had situations in which network-manager was preferable.

There is some very useful diagnostic information here:

http://linuxwireless.org/en/users/Drivers/b43

I don't have a solution to offer you, but, if we keep plugging, we'll get there.
 
Old 10-07-2012, 08:41 PM   #9
wubai
Member
 
Registered: Dec 2009
Posts: 103

Original Poster
Rep: Reputation: 20
hehe.

I am using wicd , honestly i don't know if the 'network-manager' is runing at the same time, i run 'pgrep network-manager' , get nothing , I'm quite sure wicd does show there is wireless card available, and it says eth1 is the wireless

yeah, like you said, problems eventually get fixed, sometimes it takes so long time and when u finally get it right u even forget when u started, torture with joy
 
Old 10-08-2012, 07:46 PM   #10
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,712

Rep: Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458
Does wicd show any available wireless networks when you start the GUI? (I think it's called wicd-client).
 
Old 10-10-2012, 09:36 PM   #11
wubai
Member
 
Registered: Dec 2009
Posts: 103

Original Poster
Rep: Reputation: 20
yes, it shows two wireless networks available, one is my own wireless router, another one is somewhere around neighbourhood, the only problem about wireless stuff is that dns part doesn't work, i can access my router with wired connection unpluged, but if i open any website, always showing alynasis dns on the bar of brower, and can never get it. i set the dns in many ways, gloable, static, etc. still doesn't work. i think the dirver may be not complete functional yet, i check all the links in your post and followed some instructions, it shows BCM4313's PCI-ID of my computer is 14e4:4727 , which is not in supported list, but I am not sure, english reading is quite challenging.

Last edited by wubai; 10-10-2012 at 09:41 PM.
 
Old 10-11-2012, 02:50 AM   #12
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,446
Blog Entries: 11

Rep: Reputation: 182Reputation: 182
If you are having problem with dns most of the time could you try and connect using an IP address? Pick one.
Code:
google.com.		114	IN	A	173.194.70.113
google.com.		114	IN	A	173.194.70.100
google.com.		114	IN	A	173.194.70.102
google.com.		114	IN	A	173.194.70.139
google.com.		114	IN	A	173.194.70.138
google.com.		114	IN	A	173.194.70.101
Also cat your /etc/resolv.conf before and after making connections with the network. Either wired or wiredless. So we can see if and with what values it gets.
I'm having the impression that the wirelesscard does not get any dns server through dhcp. Did you check your access point settings for valid dns options?
 
Old 10-11-2012, 08:14 PM   #13
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,712

Rep: Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458
It sounds as if your wireless card is working okay, but for some reason it's not picking up a valid DNS.

When you look in your router configuration, what does the router show for primary and secondary DNS? Also, what is the output of cat /etc/resolv.conf using the wireless alone and using the wired alone?

This link will explain why I ask that second question: http://www.slackbook.org/html/book.h...TCPIP-RESOLVER Briefly, to see whether there's a difference in the DNS settings between wired and wireless.
 
Old 10-13-2012, 11:40 PM   #14
wubai
Member
 
Registered: Dec 2009
Posts: 103

Original Poster
Rep: Reputation: 20
thank you all first. : )

zhjim, I didn't tried access website through ip directly, i did try to ping ip, like 8.8.8.8 or www.baidu.com , both didn't work, I'll try it next time after i reboot my machine , right now wireless is working with wired connection. I can't reboot my machine now :P

frankbell, about difference, when first i installed wicd , the default configuration of wicd, there was an extra line ' domain domain ' in the resolve.conf file, which doesn't exist when i used wired connection. I edited the dns sectoion in router and then there is no diffrence in resolve.conf between wireless and wired connection, but problem remains

I'd like to ask another quesiton, what is '/var/run/wicd/wicd.pid' for ? why can't i reboot wicd before I delete this file and command 'pgrep wicd' shows nothing?

Last edited by wubai; 10-13-2012 at 11:42 PM.
 
Old 10-14-2012, 02:34 AM   #15
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Please post the output of the route command or 'ip route show'. It sounds to me that eth0 is your default route even when using just wireless is being used. Without a default route you can't reach the internet.

Also check your router. Does it filter your wireless connection based on MAC address.

You may need to shut down the wired connection so you don't have two interfaces on the same network segment

Last edited by jschiwal; 10-14-2012 at 02:48 AM.
 
  


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
installed mint 10, cannot connect to wireless or wired internet connection vnag Linux - Newbie 3 03-04-2011 01:17 PM
[SOLVED] DSL connection slow on Linux wired connection but fast on Windows wireless Pandarsson Linux - Wireless Networking 9 12-17-2010 05:55 PM
how to connect to internet using dsl connection at a time for wireless and wired itrilok Linux - Networking 2 06-14-2010 09:27 AM
Slackware 13.0 & WICD - Slow wired connection, no wireless connection xTyrant Linux - Laptop and Netbook 2 10-14-2009 11:58 PM
Unable to connect to internet via wireless OR wired connection frznchckn Linux - Wireless Networking 5 06-19-2008 01:12 PM


All times are GMT -5. The time now is 02:48 AM.

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