LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-19-2007, 12:15 PM   #1
brivy
LQ Newbie
 
Registered: Aug 2007
Posts: 4

Rep: Reputation: 0
iwconfig - ifconfig


Hello, Everyone

I'm using Fedora 8 and trying to get my wireless interface to come up. When I try to use ipconfig or iwconfig this is the output I get. But in the second block of code you see that I have wireless-tools and net-tools installed. Dose anyone have an idea why I can't pull them up in the terminal?

[root@localhost brivy]# ifconfig wlan0
bash: ifconfig: command not found
[root@localhost brivy]# iwconfig wlan0
bash: iwconfig: command not found
[root@localhost brivy]#



[root@localhost brivy]# rpm -q --all --filesbypkg | grep iwconfig
wireless-tools /sbin/iwconfig
wireless-tools /usr/share/man/man8/iwconfig.8.gz
[root@localhost brivy]# rpm -q --all --filesbypkg | grep ipconfig
net-tools /sbin/plipconfig
net-tools /usr/share/man/de/man8/plipconfig.8.gz
net-tools /usr/share/man/fr/man8/plipconfig.8.gz
net-tools /usr/share/man/man8/plipconfig.8.gz
kernel-devel /usr/src/kernels/2.6.23.8-63.fc8-i686/include/net/ipconfig.h


What am I doing wrong?
 
Old 12-19-2007, 12:24 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
You have probably used 'su' to become root. That's fine, but as such it won't modify your environment variables like $PATH (it contains the directories where executables are searched when you type a command in the command line); in other words, the $PATH is the user's and not root's, and regular user's $PATH does not include the sbin directories in which the administrative tools are. For example ifconfig and iwconfig are in /sbin which is in root's $PATH but not regular users'.

Fix one: run with full path
Code:
/sbin/iwconfig
Fix two (easier if you run more than one command): su with dash
Code:
su -
type in password as usually, and after this you get a root command prompt, and your environment is changed to that of root's (reverts back when you 'exit'). After this just
Code:
iwconfig
and it should be found.

If you are using Fedora 8, the graphical tools might make it easier to configure your wireless network.
 
Old 12-19-2007, 01:01 PM   #3
brivy
LQ Newbie
 
Registered: Aug 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Yep, that was it. I was already logged as root but when I used su - it found it no problem. I'm not completely new to Linux there are still some gaps in what I know. Thank you for your help!
 
  


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
No ifconfig nor Iwconfig wasabi0503 Fedora 2 03-28-2006 12:23 AM
ifconfig & iwconfig do not work Koneko Linux - Newbie 3 08-06-2005 10:04 PM
ifconfig vs iwconfig danjmw Linux - Wireless Networking 3 12-20-2004 04:41 PM
can't use iwconfig, iwlist, ifconfig as user marlor Slackware 6 10-18-2004 04:27 PM
iwconfig and ifconfig not working t3kops Fedora 1 07-17-2004 01:35 PM

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

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