PDA

View Full Version : FC3, can ping on my network but can't get websites


A6quattro
2005-07-19, 08:10 PM CDT
I checked the resolv.conf file and it has my name server on it. I assigned the IP address to the machines, so DHCP is turned off. When I go to the Network card configuration on my PC that works on the net, under the hosts tab it says:
IP 127.0.0.1
Name "fedorabox"
Aliases "localhost.localdomain localhost"

My other box (that doesn't get to the WWW, is named fedora26. Do I need to have different aliases? could this be causing a conflict?

What I don't understand is that I did an install on a different box and installed everything the same way and now it won't get on the internet but the other machine did (I removed the install from the other machine, just checking to see if it would work)

What would make me able to ping inside the network but not get past the router?

A6quattro
2005-07-19, 08:12 PM CDT
do i need to change the address (127.0.0.1) on my second PC to something like 127.0.0.2? I didn't have to do that when I installed earlier on the other machine.

A6quattro
2005-07-19, 08:18 PM CDT
On the same page on the 2nd PC I changed the configuration of the network card to:

IP 127.0.0.2
Name "fedora26"
Aliases "fedora26.localdomain localhost"

A6quattro
2005-07-19, 10:38 PM CDT
Well, I did another install on a new HD. This time I selected "the entire package" instead of "server" config. I don't understand why it worked on this install and not the other. the differences in the install are:

--SATA HD instead of IDE
-installed in text mode
-full install
-differrent "static" IP
-When I entered my first user, I used my full name for bothe the sign on and username ex.
Christopher, Christopher instrad of Christopher, Chris. On my other PC I was using
Christopher and Chris. So one my old and new PC I was logging on as Chris (with the setup
that didn't work) now with Christopher, Christopher it works.

Those are the only differences in the two installs. Why would the first install not allow me to access the Web? I'd really like to know. I have the install on the other HD I can throw back in and check out the problems. What can I use to diagnose this problem? ./ifconfig what else?

kg4cbk
2005-07-20, 11:51 AM CDT
There are four basic things to check when dealing with network connectivty.

1. cables - make sure you see link lights and use a known good cable.
2. ifconfig -a will show you information on your network card including the IP address assigned to it.
3. netstat -rn will show you the routing table on your machine. You must have a default gateway ( UG) listed that points to your router or cable/dsl modem.
4. /etc/resolv.conf is used to define the nameservers your machine points to. If you are unable to resolve names this is the most likely problem.

The 127.0.0.1 address is generally reserved for loopback interface. This is not the IP address your system will use to communicate with external systems. You will have an entry for 127.0.0.1 in your /etc/hosts file which must have localhost and localhost.localdomain on the same line. Depending on the system you may also have the systems real name on that line or on a second line with the systems assigned IP address.

You can use system-confg-network to view and change most of these options for your network interfaces.

All systems will have 127.0.0.1 listed, this is the default loop back address.

For most home networks you will want to use an address range out of RFC 1918. This defines private address space that is not routable on the Internet. You use a NAT router to convert these addresses to the public IP address assgined by your ISP. 192.168.0.x - 192.168.255.0, 172.16.x.x - 172.31.x.x, and 10.x.x.x are the ranges in the private address space. Most home networks use addresses in the 192.168 address range.

The user name will have nothing to do with your network connectivity.

I suspect on the first pass that you either did not have the default gateway set correctly or /etc/resolv.conf was not populated correctly.