Click to See Complete Forum and Search --> : can't connect
Hi,
I'm an extremely newbie linux user...
I have a box with both xp and linux installed. I am able to connect to the web through an ethernet (RealTek) through windows, but not through linux. I think all the settings (IP's, etc) are the same but there doesn't seem to be any communication with the outside world. I'm running RedHat 8.0 which I have just installed.
Any thoughts?
Thanks,
Pat
PHaTTMaNN
12-19-2002, 01:45 PM
First things first... check and make sure your nic or eth0 is working,
in terminal type :
ifconfig
and check and see if you have a ip from your ISP
if ya do ...
try to ping something outside your network if ya can then:
it maybe your domain name servers are not working, make sure they are in your /etc/resolv.conf and try again,;)
hope this helps
Thanks for the effort PHaTTMaNN,
I tried ifconfig and the prompt said it couldn't find the program (perhaps this is a problem!) How can I find it or should I look for something else?
Also, I looked at the /etc/resolv.conf file and the DNS address was there. But there was no outside ping.
Any more help?
Pat
PHaTTMaNN
12-19-2002, 09:15 PM
woooyaaa
not having ifconfig .... hmmmm not sure what to tell ya besides, maybe making sure your using the terminal as root you can just use the command su , then type your root password and try again.
Maybe try to reinstall, and do a full install, that is really all I can tell ya, I'm still pretty new at this too :D
Good luck
Rickdog
12-20-2002, 01:40 AM
Are you using cable or dsl. Do you have a router? Rh 8.0 almost always finds the internet automatically, so something is preventing it from doing so. You should have your nic set for dhcp to the internet.
Boot up the linux box, and shut off the modem and turn it back on. See if you can get a connection, believe it or not, often this is all it takes.
Make sure that your DNS is set to dhcp. If that doesn't work, set them manually with the DNS numbers from your ISP. You can do all this with the network device control gui in System Tools by selecting edit device.
You should definitely have ifconfig. Run it from root like this, [root@localhost root]# ifconfig
You will get it going, keep trying.
So I've tried everyone's suggestions and still nothing. Extremely frustrating!
I'm trying to connect to our department's LAN through an Ethernet connection. Using the same addresses/settings on the XP side of the partition, everything works fine. But nothing is going on the linux side.
I just reupdated linux and still nothing. Also, I went to the root as root and when I type ifconfig, I get the following...
bash:ifconfig:command not found
I've tried using DHCP and entering the actual addresses and still nothing.
Any more ideas?
Thanks,
Pat
siphil
12-20-2002, 01:24 PM
that's weird about ifconfig...
try this: as root type cd /usr/sbin
then try ifconfig
siphil
12-20-2002, 02:25 PM
during bootup do you see these things being brought up
network
loopback interface
interface eth0
all of these should have a green 'ok' at the right side of the screen(or something similar)
Yup, they're there and they boot ok.
However it does catch on the lpd, (printer, right) and after a long delay says...
Starting lpd :2002-12-20-12:29:25.610 JoLab2 Get_local_host: 'localhost' IP addresses not available!
It always gives this error regardless of how I have the network configuration setup. I figured this is part of the printing problem I've been having that I was going to address after the internet problem (the printer is connected directly to the box).
warren612001
12-20-2002, 03:12 PM
It sounds like you are not seeing the eth0 card. don't know what to say about not having ifconfig. try nslookup -sil and see if your eth0 is seen.
warren612001
12-20-2002, 03:16 PM
You might have to remove your eth0 card and start your computer then shut it off and reinstall the card and see if it will see it correctly.
trekker
12-21-2002, 01:48 AM
Originally posted by pds
Thanks for the effort PHaTTMaNN,
I tried [B]ifconfig and the prompt said it couldn't find the program (perhaps this is a problem!) How can I find it or should I look for something else?
Maybe you can try "/sbin/ifconfig" without the quotes.
Hope this helps :D
I just removed the ethernet card, booted - it noticed that the card was missing. Then I powered down, inserted the ethernet card and rebooted. It noticed the card. Still nothing works. No ifconfig either. Any new thoughts?
Pat
rioguia
12-24-2002, 10:02 AM
1. i wonder if this is a command path issue. open any terminal and type
whoami [hit return] (your should get back "root." if you don't, type su [hit return]; you will get the prompt for a password. type the superuser's password and again hit return. repeat whoami to confirm you were successful.
2. now that you have opened a terminal as root, please post the results of echo $PATH to this forum. make sure you are signed on as root. each user has different command paths and commands like ifconfig are usually in the command path. the command path is a variable that the computer uses to search for executable command without knowing the complete or absolute path to the file where the command lives.
3. have your tried to find ifconfig? open a terminal as root and type:
find / -name ifconfig [hit return]; this will take a long time; we are asking linux to look for a file, the "/" tells linux to start at the root of the file system (not to be confused with superuser which often referred to as root or the superuser's home directory which is /root); the "-name" argument says we are looking for a file name which immediately follows
if this doesn't work, try an even broader variant
find / -name '*ifconfig*' [hit return]
4. if you find ifconfig, the file with its absolute will be printed on your screen. you will need to type the entire path in order to access it. type this command and post the results back here.
ehowf
12-26-2002, 01:32 PM
Try this. Type:
cd /sbin
To verify you are actually in the /sbin directory, type the following:
pwd
You should see: /sbin
Then type the following:
./ifconfig
Hopefully this will help.....
emil_dk
12-26-2002, 01:58 PM
Hmmm,
same problem here. I to have RH 8.0.
I found ifconfig in /sbin but I still cant run the program... still, the man page is there.
I dont get it.
Emil