LinuxQuestions.org
Register a domain and help support LQ
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 12-06-2012, 07:08 AM   #1
Peleus
Member
 
Registered: Mar 2003
Posts: 77

Rep: Reputation: 15
Backtrack - Next to no diagnosis on linux?


Hi everyone.

Please hear me out first, it could definitely be a problem with my inexperience but I'm finding one aspect of linux rather frustrating.

This is the apparent lack of diagnosis with regards to the command line network management. I was connecting to my network which has a default gateway of 192.168.0.1, and WEP encryption. Mucking around with cracking WEP so I set and easy password of A1B2C3D4E5. Wicd seemed to have an issue with connecting however, often kicking up 'bad password' or not taking advantage of the DHCP server and not assigning an IP. Anyway, I digress, not complaining about Wicd but explaining why I'm mucking around with command line.

Anyway, I enter the following commands.

ifconfig wlan0 192.168.0.100 netmask 255.255.255.0 up
route add default gateway 192.168.0.1
iwconfig wlan0 essid network key A1B2C3D4E5
iwconfig wlan0 mode managed

Point being, that should connect to the network. ping's however went unresolved and it seems for whatever reason it could no connect (in windows it was fine). The most frustrating part was the inability to examine the reason for what was going wrong. Was it getting an authentication rejection? Some reason the IP wasn't being assigned? It also seemed a bit frustrating that there was no apparent way to "force" an association attempt and get feedback, i.e saying iwconfig wlan0 connect or something while outputting feedback.

Does this stuff simply not exist? Or am I being an idiot and I'm just not aware of it?

Cheers.
 
Old 12-07-2012, 06:31 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,206

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
It also seemed a bit frustrating that there was no apparent way to "force" an association attempt and get feedback, i.e saying iwconfig wlan0 connect or something while outputting feedback.
Simply find what's happening behind all those configurations and pinging you made, see them at /var/log/*

Try what happened of the packets if they were sent or not:

Code:
~$ tail /var/log/syslog
or you can even cat them all to see if wlan0 was noted by the kernel--

Code:
~$ cat /var/log/syslog | grep wlan
also

Code:
~$ cat /var/log/messages
~$ dmesg | tail
~$ netstat -s <to examine what you have for network>
~# cat /proc/net/wireless
Just read the manuals for many networking utilities for configuration and debugging net problems:

Code:
~$ man netstat [ man ifconfig, man route, man iwconfig ]
There are more ways than that. Just "PLAY" with your gnu/linux, but don't take it too seriously as to obfuscate the mind with emotions .

HOpe that helps.

Good luck.
 
  


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
disk diagnosis ginda Linux - Hardware 1 03-29-2007 03:02 AM
Any Automated Testinfg Tool for Diagnosis of linux os Basavaraj Linux - Software 1 02-08-2006 01:43 PM
Linux OS diagnosis.... rajsun Programming 2 02-02-2006 12:39 PM
diagnosis? humanveal Linux - General 3 10-16-2002 08:32 AM


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