LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-06-2004, 10:13 AM   #1
dmalsbury
LQ Newbie
 
Registered: Jan 2004
Location: san antonio, tx
Distribution: slackware 9.1
Posts: 15

Rep: Reputation: 0
Question /sbin/ifconfig gives command not found - help


i'm trying to setup networking with slackware 9.1. when I do su password /sbin/ifconfig i get bash:command not found. what do i do? Thanx in advance
 
Old 01-06-2004, 10:35 AM   #2
fr0zen
Member
 
Registered: Nov 2003
Location: 127.0.0.1
Distribution: xubuntu
Posts: 217

Rep: Reputation: 30
Try 'which ifconfig'. It may be located some where else.
 
Old 01-06-2004, 12:08 PM   #3
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
If "which ifconfig" doesn't work, then use "locate ifconfig" or "find / -name ifconfig -print". One of those will for sure tell you the path of "ifconfig" and whether or not it exists on your machine. You have to be root to run these commands too.

Last edited by chrisk5527; 01-06-2004 at 12:40 PM.
 
Old 01-06-2004, 12:34 PM   #4
arkamir
Member
 
Registered: Nov 2003
Location: Califroni
Distribution: Fedora
Posts: 51

Rep: Reputation: 15
You need to be root to run that command I believe
 
Old 01-06-2004, 01:05 PM   #5
dmalsbury
LQ Newbie
 
Registered: Jan 2004
Location: san antonio, tx
Distribution: slackware 9.1
Posts: 15

Original Poster
Rep: Reputation: 0
tried: find / -name ifconfig -print
got: my prompt but nothing else

does that mean its not on my hard drive installation?
 
Old 01-06-2004, 01:40 PM   #6
dmalsbury
LQ Newbie
 
Registered: Jan 2004
Location: san antonio, tx
Distribution: slackware 9.1
Posts: 15

Original Poster
Rep: Reputation: 0
can anyone tell me which .tgz ifconfig is located in and how to extract it and to where

Last edited by dmalsbury; 01-06-2004 at 01:44 PM.
 
Old 01-06-2004, 02:14 PM   #7
fr0zen
Member
 
Registered: Nov 2003
Location: 127.0.0.1
Distribution: xubuntu
Posts: 217

Rep: Reputation: 30
You don't need to be root to execute ifconfig.

Code:
[frozen@FRoZiX ~]$ /sbin/ifconfig 
eth0      Link encap:Ethernet  HWaddr --:--:--:--:--:--  
          inet addr:--.--.--.---  Bcast:--.--.--.---  Mask:255.255.254.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2248908 errors:0 dropped:0 overruns:0 frame:0
          TX packets:80823 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:162972618 (155.4 Mb)  TX bytes:29193221 (27.8 Mb)
          Interrupt:11 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:302 errors:0 dropped:0 overruns:0 frame:0
          TX packets:302 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:153502 (149.9 Kb)  TX bytes:153502 (149.9 Kb)
ifconfig is located within the Net-tools package. You can get it
http://www.tazenda.demon.co.uk/phil/net-tools/
 
Old 01-06-2004, 05:04 PM   #8
dmalsbury
LQ Newbie
 
Registered: Jan 2004
Location: san antonio, tx
Distribution: slackware 9.1
Posts: 15

Original Poster
Rep: Reputation: 0
somehow i must not have installed the right package when installing from cd. i just ran setup for networking only and lo and behold its there using the above find command. now it doesnt detect my 3c509tx ethernet card and windows does. your help is appreciated.
doug
 
Old 01-06-2004, 09:14 PM   #9
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
/sbin/modprobe 3c509
uncomment the appropriate line - remove # symbol infront of /sbin/modprobe 3c509 in /etc/rc.d/rc.modules to make the hardware available upon each reboot.
 
  


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
connecting /sbin/ifconfig to bash command ifconfig flammable2 Fedora 4 11-12-2005 07:58 AM
ifconfig: command not found hetzme Linux - General 2 06-27-2005 12:27 PM
ifconfig!! Command not found!! Azzath Linux - Networking 5 03-01-2005 07:37 AM
/sbin/ifconfig IP fix navaladi Linux - Networking 5 02-21-2005 05:49 AM
ifconfig: command not found anne Linux - Networking 3 04-18-2004 03:08 PM


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