LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-29-2003, 09:09 AM   #1
blyzard
LQ Newbie
 
Registered: Jul 2003
Location: oh
Distribution: redhat 8.0
Posts: 8

Rep: Reputation: 0
Angry IFCONFIG and other network commands :(


HI!
I installed RH8.0 on my Compaq presario.
Logged in as ROOT and then,

I tried to do bash:ifconfig
Gives an error bash: ifconfig: Command not found

But! I see it in /sbin/ifconfig and when I type /sbin/ifconfig it works fine.

Then, I created an Alias in the .bashrc file. so that I don't have to type /sbin/ifconfig. But it did not help me.

Still if i do " ifconfig" on terminal window it gives me the same error.

Appreciate any help.
thx
 
Old 07-29-2003, 09:16 AM   #2
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Re: IFCONFIG and other network commands :(

Quote:
Originally posted by blyzard
Logged in as ROOT
Please give the complete details of the proceedure you used to log in as root. If you su, you only get partial root powers.......
 
Old 07-29-2003, 09:36 AM   #3
blyzard
LQ Newbie
 
Registered: Jul 2003
Location: oh
Distribution: redhat 8.0
Posts: 8

Original Poster
Rep: Reputation: 0
Yes, I changed the .bashrc file by when i logged in as SU and then it did not work.

But! after your post, I did login as root and then tried the command IFCONFIG and it works as expected. TY..


-----------------------Still i cannot hook up to internet . But I see that this machine is having an IP address.

Actually! i am trying to add this RH8.0 box to my company domain. so! that I can use it as a client machine as other ppl are doing with their win 98 or 2K machines. ( Just trying to introduce the flavor of linux in this WIN dominated organization )

I guess my next step should be to add GATEWAY info in this box but can't figure out a way ..........

appreciate your help.
 
Old 07-29-2003, 09:50 AM   #4
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Perhaps the Red Hat Linux 8.0: The Official Red Hat Linux Customization Guide Network-Related Configuration would help.
 
Old 07-29-2003, 09:59 AM   #5
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
if your using a GUI like gnome or KDE they'll be a menu item to do it or
type in

neat

Otherwise
netconfig
will give you the essential items to bump in such as gateway


Location of important files can manually edited

/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/resolv.conf

Last edited by Looking_Lost; 07-29-2003 at 10:02 AM.
 
Old 07-29-2003, 09:59 AM   #6
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Quote:
Originally posted by blyzard
Yes, I changed the .bashrc file by when i logged in as SU and then it did not work.
Did you "su" or "su -"?
 
Old 07-29-2003, 10:16 AM   #7
blyzard
LQ Newbie
 
Registered: Jul 2003
Location: oh
Distribution: redhat 8.0
Posts: 8

Original Poster
Rep: Reputation: 0
Yep!
I initially followed that link and yes Looking_lost, I am able to see the GUI for network configuration,
It shows my eth0 as ACTIVe but when i hit APPLY after adding Default Gateway address and Domain name, it give me a error which is as follows

"An unhandled exception has occured. This is most likely a bug. Please save the crash dump and file a detailed bug report."
 
Old 07-29-2003, 10:31 AM   #8
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Is your system up to date?

Easier software management: apt4rpm - Red Carpet
 
Old 07-29-2003, 10:37 AM   #9
blyzard
LQ Newbie
 
Registered: Jul 2003
Location: oh
Distribution: redhat 8.0
Posts: 8

Original Poster
Rep: Reputation: 0
I don't know how to answer your Question

But! this is a PentiumIII box which had WIN 2K installed initially and then I downloaded and burned RH8.0 iso images and installed on this box yesterday.
Since, I cannot get my network configured, I am unable to browse internet to find any updates for it .


Looks to me that i should download RH9.0 and then redo everything ..........................................?


 
Old 07-29-2003, 10:44 AM   #10
mylo2003
Member
 
Registered: Jul 2003
Posts: 113

Rep: Reputation: 15
i always have to be in sbin and then type ./ifconfig
 
Old 07-29-2003, 10:45 AM   #11
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Guess you're in a catch 21 situation then - sounds more like a desktop error than a network that'll probably be resolved if you can get online to update.

Anyway assuming your card is working........You can use these as a guideline to get you going and online if you want


filename:
/etc/sysconfig/network

Contents:

NETWORKING=yes
HOSTNAME=advent
GATEWAY=192.168.1.1


/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.1.255
IPADDR=192.168.1.10
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
USERCTL=no
PEERDNS=no
TYPE=Ethernet


Use them as a guideline to edit not completely replace obviously

then

/etc/init.d/network restart
 
Old 07-29-2003, 11:03 AM   #12
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
You could possibly download your network update stuff here, but I don't know what pacakges you need, perhaps a google would help with that.

ftp://updates.redhat.com//8.0/en/os/

If you decide on a different release version, you can get them here and Discount Linux CDs has an update CD for 9.

Discount Linux CDs
Linux Central
Cheapbytes
TuxCDs
ComputerHelperGuy

I'm sticking with 7.3 as I have found the releases above that rather flakey. I will try 9 when they release 10 and see if it's stable yet.

Last edited by fancypiper; 07-29-2003 at 11:12 AM.
 
Old 07-29-2003, 11:34 AM   #13
blyzard
LQ Newbie
 
Registered: Jul 2003
Location: oh
Distribution: redhat 8.0
Posts: 8

Original Poster
Rep: Reputation: 0
HI! CURRENTLY this is what i have:

for etc/sysconfig/network

Contents:

NETWORKING=yes
HOSTNAME=bly.yoyo
NISDOMAIN=yoyo

where bly=localhost and yoyo=localdomain

[ looks to me that problem is somewhere with the same NIS domain and localdomain ...............just guessing]
-----------------------------------------

for /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=static
IPADDR=10.212.201.15
NETMASK=255.255.255.0
ONBOOT=yes
GATEWAY=10.212.203.2
----------------------------------------------------------------

..............................................thx
 
Old 07-29-2003, 11:44 AM   #14
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Using that subnet mask your gateway is on a different network and unreachable or is it just a typing error?

IP 10.212.201.15
NETMASK 255.255.255.0
GATEWAY 10.212.203.2

and my gateway is defined in /etc/sysconfig/network along with hostname and networking. Not sure if that would matter too much as you never really think too much of these things until you have too.

NISDOMAIN isn't that for network information services, ie. not windows type domain name shouldn't matter though for these purposes
 
Old 07-29-2003, 01:05 PM   #15
blyzard
LQ Newbie
 
Registered: Jul 2003
Location: oh
Distribution: redhat 8.0
Posts: 8

Original Poster
Rep: Reputation: 0
Good news ..............................

When I ping cnn.com it shows me the IP address of CNN.com it means it is doing something which it did not do earlier

BAD NEWS.....
it does not get any reply back from their................ i.e 100% loss


All of this happened when

I did some of the changes according to your GUIDELINE.

thx ........
 
  


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
ifconfig amounst other commands doesn't work steveman2000 Linux - Newbie 6 10-21-2005 04:15 PM
ifconfig on Network start/restart chris1303 Linux - Networking 7 02-04-2005 03:21 AM
im in user mode and cant run hdparm and ifconfig commands, but if im root, i can. kublador Linux - Newbie 2 09-12-2003 08:27 AM
Ifconfig Commands joeycat Linux - Networking 5 08-02-2003 04:02 PM
My commands dont work. ifconfig ? slice4e Linux - General 5 05-08-2003 11:51 PM


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