LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-09-2002, 09:28 PM   #1
chosmer
Member
 
Registered: Feb 2002
Location: Vermont
Distribution: Fedora Cores
Posts: 39

Rep: Reputation: 15
Cool ifconfig in RH 7.2???


is the ifconfig command in RH 7.2?
am I going crazy?

I can use the command when logged in as root,
but not when logged in as a regular user...even with su rights!

I can get into the man page for it...but cant run the command (it claims it cant find it!)

Any insights?

Last edited by chosmer; 04-09-2002 at 09:46 PM.
 
Old 04-10-2002, 12:10 AM   #2
lnxconvrt
Member
 
Registered: Mar 2002
Location: Houston
Distribution: FC3, Manrake 10.x, various others at times
Posts: 113

Rep: Reputation: 18
probably a path issue

Root has a different path than a regular user. The command may be in /sbin or someplace like that which is in root's path, but not in everyone else's.

I believe that "su -" or "su -root" gets you root's environment (including path) but "su" or "su root" does not. Try "su -" then enter the root password. You'll probably be able to ifconfig then.
 
Old 04-10-2002, 11:50 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
when you su as root, type $PATH to view your current path. the ifconfig command is usually found in the /sbin directory... it may differ though from distro to distro. try doing a find on it, if you still have problems issueing the command, then at least if you know you have the full path, you can always run it that way.
 
Old 04-14-2002, 03:17 PM   #4
chosmer
Member
 
Registered: Feb 2002
Location: Vermont
Distribution: Fedora Cores
Posts: 39

Original Poster
Rep: Reputation: 15
thanks and comment

Thanks...the -su command works.

Though...when I use the su command and move to the sbin directory, I still cant
run ifconfig. Im running RH 7.2.

Also,,is there a single tool that would allow me to view, stop, start and disable services (particularly network
related)? For example, renewing DHCP assigned IP address, or reloading network services after I change something? Im trying to avoid doing management tasks from the kde window...I just want the command lines or general deamons involved.....Thanks
 
Old 04-14-2002, 03:59 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
usually you can issue the command:

ifconfig eth0 down or up to bring the network down then up for your ethernet card.

also I believe you can do a dhcpd up and down for dhcp.
ifconfig will always allow you to view your configurations.
 
Old 04-15-2002, 03:32 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232

When logged as root run
whereis ifconfig
It'll tell you the right path.
 
Old 04-17-2002, 02:45 AM   #7
jtdc
LQ Newbie
 
Registered: Apr 2002
Posts: 3

Rep: Reputation: 0
why in redhat 7.1 and 7.2 when i manually edit the files ifcfg-eth0 and ifcfg-eth1 for new IP addresses, then i reset the network via /etc/rc.d/init.d network restart the changes doesn't happen anymore? has 7.2 changed the files already? before in 7.0 and lower this can be done. am not sure for 7.1 though, but i think it is same with this problem in 7.2. what i do is to run startx and edit there in network configuration, then restart the machine so the changes would takle effect. that's too bad Linux mustn't be restarted just to change IP address???!!!
 
Old 04-17-2002, 02:10 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232

Are you sure that the scripts are started? You can always change IP using ifconfig. You don't need a script for it.
 
Old 04-17-2002, 02:33 PM   #9
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by jtdc
what i do is to run startx and edit there in network configuration, then restart the machine so the changes would takle effect. that's too bad Linux mustn't be restarted just to change IP address???!!!
usually changes take affect immediately.. if they don't you can always try the ifconfig eth0 down ... then up. or add the configs you want with the ifconfig and route right at the command line.
 
Old 10-08-2003, 11:07 PM   #10
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Rep: Reputation: 23
This solved my problem, I had the same problem with the ifconfig command it would say not found.

Using su - root is the best way to use the term window.
 
  


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
connecting /sbin/ifconfig to bash command ifconfig flammable2 Fedora 4 11-12-2005 07:58 AM
Ifconfig mrodriguez Linux - Newbie 2 02-16-2005 12:17 PM
Oh where or where has ifconfig gone thotFree Linux - Software 3 11-13-2003 12:27 AM
Ifconfig ! mesta Linux - Software 2 02-04-2003 09:18 AM
ifconfig Astro Slackware 6 01-08-2003 04:30 PM

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

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