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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
07-29-2003, 09:09 AM
|
#1
|
LQ Newbie
Registered: Jul 2003
Location: oh
Distribution: redhat 8.0
Posts: 8
Rep:
|
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
|
|
|
07-29-2003, 09:16 AM
|
#2
|
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
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.......
|
|
|
07-29-2003, 09:36 AM
|
#3
|
LQ Newbie
Registered: Jul 2003
Location: oh
Distribution: redhat 8.0
Posts: 8
Original Poster
Rep:
|
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.
|
|
|
07-29-2003, 09:50 AM
|
#4
|
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
Perhaps the Red Hat Linux 8.0: The Official Red Hat Linux Customization Guide Network-Related Configuration would help.
|
|
|
07-29-2003, 09:59 AM
|
#5
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
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.
|
|
|
07-29-2003, 09:59 AM
|
#6
|
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552
Rep:
|
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 -"?
|
|
|
07-29-2003, 10:16 AM
|
#7
|
LQ Newbie
Registered: Jul 2003
Location: oh
Distribution: redhat 8.0
Posts: 8
Original Poster
Rep:
|
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."
|
|
|
07-29-2003, 10:31 AM
|
#8
|
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
Is your system up to date?
Easier software management: apt4rpm - Red Carpet
|
|
|
07-29-2003, 10:37 AM
|
#9
|
LQ Newbie
Registered: Jul 2003
Location: oh
Distribution: redhat 8.0
Posts: 8
Original Poster
Rep:
|
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 ..........................................?
|
|
|
07-29-2003, 10:44 AM
|
#10
|
Member
Registered: Jul 2003
Posts: 113
Rep:
|
i always have to be in sbin and then type ./ifconfig
|
|
|
07-29-2003, 10:45 AM
|
#11
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
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
|
|
|
07-29-2003, 11:03 AM
|
#12
|
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
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.
|
|
|
07-29-2003, 11:34 AM
|
#13
|
LQ Newbie
Registered: Jul 2003
Location: oh
Distribution: redhat 8.0
Posts: 8
Original Poster
Rep:
|
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
|
|
|
07-29-2003, 11:44 AM
|
#14
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
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
|
|
|
07-29-2003, 01:05 PM
|
#15
|
LQ Newbie
Registered: Jul 2003
Location: oh
Distribution: redhat 8.0
Posts: 8
Original Poster
Rep:
|
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 ........
|
|
|
All times are GMT -5. The time now is 02:26 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|