LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 05-08-2007, 12:14 AM   #1
yteckong
LQ Newbie
 
Registered: May 2007
Posts: 8

Rep: Reputation: 0
Neat : After wireless Active, it become Inactive Again


Hi guys,

I have this problem where I have done all the iwconfig to connect to a router, the Wireless Device in Network Configuration becomes Active but inexplicably got turned off after a few seconds.

I have been able to connect to Router without problem before this.

The commands that I used are
1. iwconfig eth1 essid "network-name"
2. iwconfig eth1 channel number
3. dhclient eth1

After the first set of this commands, subsequent tries, I will make sure that I do a killall dhclient, to turn off any dhclient (found that dhclient will interfere with subsequent re-tries)

Please advise on how to solve this interface become Inactive after activer for a few seconds.

Teck Ong
 
Old 05-08-2007, 01:08 AM   #2
deadeyes
Member
 
Registered: Aug 2006
Posts: 605

Rep: Reputation: 78
Quote:
Originally Posted by yteckong
Hi guys,

I have this problem where I have done all the iwconfig to connect to a router, the Wireless Device in Network Configuration becomes Active but inexplicably got turned off after a few seconds.

I have been able to connect to Router without problem before this.

The commands that I used are
1. iwconfig eth1 essid "network-name"
2. iwconfig eth1 channel number
3. dhclient eth1

After the first set of this commands, subsequent tries, I will make sure that I do a killall dhclient, to turn off any dhclient (found that dhclient will interfere with subsequent re-tries)

Please advise on how to solve this interface become Inactive after activer for a few seconds.

Teck Ong
Look if you can scan the network.
iwlist [interface] scanning

Be sure your wireless card is working ok.
If you type ifconfig (without -a option) is it in the list?
What is your wireless device?
 
Old 05-08-2007, 02:21 AM   #3
yteckong
LQ Newbie
 
Registered: May 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Look if you can scan the network.
iwlist [interface] scanning

Be sure your wireless card is working ok.
If you type ifconfig (without -a option) is it in the list?
What is your wireless device?


I have done iwlist eth1 scanning. It s able to scan the network.

with ifconfig, my eth1 is also in the list.

I am using Intel Pro 2200 wireless card

Last edited by yteckong; 05-08-2007 at 02:22 AM.
 
Old 05-09-2007, 01:23 AM   #4
deadeyes
Member
 
Registered: Aug 2006
Posts: 605

Rep: Reputation: 78
Quote:
Originally Posted by yteckong
Look if you can scan the network.
iwlist [interface] scanning

Be sure your wireless card is working ok.
If you type ifconfig (without -a option) is it in the list?
What is your wireless device?


I have done iwlist eth1 scanning. It s able to scan the network.

with ifconfig, my eth1 is also in the list.

I am using Intel Pro 2200 wireless card
Then I think it has to do with the configuration.iwconfig

Did you do the following before doing the other commands? (I am not sure if this is absolutely possible)
iwconfig wlan0 mode Managed


Do you use encryption?
WEP or WAP?

First setup your wireless access point so it uses no encryption at all and try to connect.

then re-enable your encryption.

Is there anything in your syslog? (tail /var/log/syslog)
or in dmesg (just type "dmesg" at console).
or in the messages (tail /var/log/messages)
Look if there is in any of those files something that could be to do with your problem.

You say it is active for a few seconds... Do you mean you can a few seconds ping the router or something else?

And what distro do you use?
Probably there is already a nice howto

Last edited by deadeyes; 05-09-2007 at 01:24 AM.
 
Old 05-09-2007, 07:00 AM   #5
yteckong
LQ Newbie
 
Registered: May 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by deadeyes
Then I think it has to do with the configuration.iwconfig

Did you do the following before doing the other commands? (I am not sure if this is absolutely possible)
iwconfig wlan0 mode Managed


Do you use encryption?
WEP or WAP?

First setup your wireless access point so it uses no encryption at all and try to connect.

then re-enable your encryption.

Is there anything in your syslog? (tail /var/log/syslog)
or in dmesg (just type "dmesg" at console).
or in the messages (tail /var/log/messages)
Look if there is in any of those files something that could be to do with your problem.

You say it is active for a few seconds... Do you mean you can a few seconds ping the router or something else?

And what distro do you use?
Probably there is already a nice howto
Hi,

I attach the message that I got below:-

May 9 19:40:01 localhost dhclient: Internet Systems Consortium DHCP Client V3.0.5-RedHat
May 9 19:40:01 localhost dhclient: Copyright 2004-2006 Internet Systems Consortium.
May 9 19:40:01 localhost dhclient: All rights reserved.
May 9 19:40:01 localhost dhclient: For info, please visit
May 9 19:40:01 localhost dhclient:
May 9 19:40:01 localhost dhclient: Listening on LPF/eth1/00:0e:35:34:e2:2a
May 9 19:40:01 localhost dhclient: Sending on LPF/eth1/00:0e:35:34:e2:2a
May 9 19:40:01 localhost dhclient: Sending on Socket/fallback
May 9 19:40:01 localhost dhclient: DHCPREQUEST on eth1 to 255.255.255.255 port 67
May 9 19:40:03 localhost avahi-daemon[2881]: New relevant interface eth1.IPv6 for mDNS.
May 9 19:40:03 localhost avahi-daemon[2881]: Joining mDNS multicast group on interface eth1.IPv6 with address fe80::20e:35ff:fe34:e22a.
May 9 19:40:03 localhost avahi-daemon[2881]: Registering new address record for fe80::20e:35ff:fe34:e22a on eth1.
May 9 19:40:09 localhost dhclient: DHCPREQUEST on eth1 to 255.255.255.255 port 67
May 9 19:40:28 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6
May 9 19:40:34 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 21
May 9 19:40:55 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 20
May 9 19:41:15 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
May 9 19:41:22 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
May 9 19:41:29 localhost dhclient: No DHCPOFFERS received.
May 9 19:41:29 localhost dhclient: Trying recorded lease 172.16.0.18
May 9 19:41:29 localhost kernel: audit(1178710889.075:28): avc: denied { search } for pid=4004 comm="ping" name="locale" dev=dm-0 ino=2777138 scontext=user_u:system_ring_t:s0 tcontext=system_ubject_r:locale_t:s0 tclass=dir
May 9 19:41:29 localhost kernel: audit(1178710889.075:29): avc: denied { search } for pid=4004 comm="ping" name="locale" dev=dm-0 ino=2777178 scontext=user_u:system_ring_t:s0 tcontext=system_ubject_r:locale_t:s0 tclass=dir
May 9 19:41:29 localhost kernel: audit(1178710889.075:33): avc: denied { search } for pid=4004 comm="ping" name="locale" dev=dm-0 ino=2777138 scontext=user_u:system_ring_t:s0 tcontext=system_ubject_r:locale_t:s0 tclass=dir
May 9 19:41:29 localhost kernel: audit(1178710889.075:34): avc: denied { search } for pid=4004 comm="ping" name="locale" dev=dm-0 ino=2777138 scontext=user_u:system_ring_t:s0 tcontext=system_ubject_r:locale_t:s0 tclass=dir
May 9 19:41:29 localhost kernel: audit(1178710889.075:35): avc: denied { search } for pid=4004 comm="ping" name="locale" dev=dm-0 ino=2777138 scontext=user_u:system_ring_t:s0 tcontext=system_ubject_r:locale_t:s0 tclass=dir
May 9 19:41:29 localhost avahi-daemon[2881]: New relevant interface eth1.IPv4 for mDNS.
May 9 19:41:29 localhost avahi-daemon[2881]: Joining mDNS multicast group on interface eth1.IPv4 with address 172.16.0.18.
May 9 19:41:29 localhost avahi-daemon[2881]: Registering new address record for 172.16.0.18 on eth1.
May 9 19:41:29 localhost avahi-daemon[2881]: Withdrawing address record for 172.16.0.18 on eth1.
May 9 19:41:29 localhost avahi-daemon[2881]: Leaving mDNS multicast group on interface eth1.IPv4 with address 172.16.0.18.
May 9 19:41:29 localhost avahi-daemon[2881]: iface.c: interface_mdns_mcast_join() called but no local address available.
May 9 19:41:29 localhost avahi-daemon[2881]: Interface eth1.IPv4 no longer relevant for mDNS.
May 9 19:41:29 localhost avahi-daemon[2881]: New relevant interface eth1.IPv4 for mDNS.
May 9 19:41:29 localhost avahi-daemon[2881]: Joining mDNS multicast group on interface eth1.IPv4 with address 172.16.0.18.
May 9 19:41:29 localhost avahi-daemon[2881]: Registering new address record for 172.16.0.18 on eth1.
May 9 19:41:32 localhost avahi-daemon[2881]: Withdrawing address record for 172.16.0.18 on eth1.
May 9 19:41:32 localhost avahi-daemon[2881]: Leaving mDNS multicast group on interface eth1.IPv4 with address 172.16.0.18.
May 9 19:41:32 localhost avahi-daemon[2881]: iface.c: interface_mdns_mcast_join() called but no local address available.
May 9 19:41:32 localhost avahi-daemon[2881]: Interface eth1.IPv4 no longer relevant for mDNS.
May 9 19:41:32 localhost avahi-daemon[2881]: Interface eth1.IPv6 no longer relevant for mDNS.
May 9 19:41:32 localhost avahi-daemon[2881]: Leaving mDNS multicast group on interface eth1.IPv6 with address fe80::20e:35ff:fe34:e22a.
May 9 19:41:32 localhost avahi-daemon[2881]: Withdrawing address record for fe80::20e:35ff:fe34:e22a on eth1.
May 9 19:41:32 localhost dhclient: No working leases in persistent database - sleeping.
May 9 19:41:32 localhost dhclient: receive_packet failed on eth1: Network is down


Can you advise on what went wrong?

Thanks.

TEck ONg
 
  


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
wireless & wired active? ste Linux - Wireless Networking 1 04-26-2007 05:31 PM
wireless card active no connection to router djpacman Linux - Wireless Networking 18 05-17-2006 06:42 PM
wireless connection doesn't stay active after reboot sublyme718 Linux - Wireless Networking 1 11-07-2005 09:34 PM
This is really Neat BUT.... hogg85 LinuxQuestions.org Member Success Stories 3 06-13-2005 01:55 PM
need help to make card active & respond to the wireless network southamptonfc Linux - Newbie 6 12-09-2004 11:40 PM


All times are GMT -5. The time now is 05:30 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