LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RedHat 7.1 can't connect to internet (https://www.linuxquestions.org/questions/linux-newbie-8/redhat-7-1-cant-connect-to-internet-22195/)

Chooco 05-30-2002 04:23 PM

RedHat 7.1 can't connect to internet
 
AGAIN another distribution that does not work on my computer.

i run KDE not Gnome. the only way to configure the net is to click on the big K then go to system then network. in that configuration thing there are 4 tabs: Names, Hosts, Interfaces, Routing.

under names i didn't add anything because there is nothing i could add in there, my ISP has no hostname or nameserver (the things you can add in)

under Hosts i didn't add anything becuase i don't want to get into that whole manualy specify my IP crap.

under Interfaces i added a new thing, it automaticaly named it eth0 but it has no assigned IP, no assigned netmask, network is 66.0.0.0, broadcast is 66.255.255.255, i selected for it to activate on boot up and to configure through DHCP (i have dynamic IP)
i restarted the computer and it hung on detecting eth0 for about 2 minutes then it came out in those big bold red letters FAILED could not detect IP configuration.

well sh!t what the hell do i do now?

Noerr 05-30-2002 04:29 PM

well
set it up as dhcp if you have dhcp server on your network, otherwise get proper ip address.
but you need to specify what kind of internet connection are you using? But in most cases you would have dhcp server

sewer_monkey 05-30-2002 04:38 PM

If you have a DHCP server, make sure that your /etc/sysconfig/networking/ifcfg-eth0 file has the following contents:
Code:

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp

And that your /etc/sysconfig/network file has these contents:
Code:

NETWORKING=yes
HOSTNAME=

Make sure you set the hostname to something. If you don't have a domain name, you can get a free dynamic IP compatible name from www.dyndns.org and from www.dns2go.com (dns2go actually has a Linux client). Linux doesn't work nicely without a valid hostname.

Once you get these set up, log in as root and type "service network restart". That will shut down your network interfaces (your ethernet card "eth0" and the loopback adapter "lo") and bring them up with the new settings. If you really have a DHCP server on your network, you should be up and running in no time.

You can always check your current set up by running /sbin/ifconfig

Good luck!

Chooco 05-30-2002 04:53 PM

a few things
-why would you suggest my ISP doesn't have a DHCP server? all ISPs giving out dynamic IPs NEED to have one or nobody has internet
-how am i supposed to download the client thing if i don't have internet!??!


All times are GMT -5. The time now is 05:53 PM.