LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cannot access outside ip addresses (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-access-outside-ip-addresses-500453/)

360andy 11-10-2006 06:12 PM

cannot access outside ip addresses
 
I have a new install of TRIXBOX which is an installation of CentOS Linux 4.4. We are a mixed shop of both windows and Linux. I became aware of the problem while trying to do an automatic upgrade of TRIXBOX and got the message that it could not ping the upgrade site. I tested on other boxes and pinged the site OK. I found out that I could not access any outside IP address. I'm using Webmin, which I manually installed. All applications are working well. I have searched through the forum to find any other similar events. While I found several, there were no solutions. I have looked at /etc/resolv.conf is my Windows DNS server ip address and all other Linux boxes have not problem. It seems to me to be some sort of setting that I am unaware of, which is restricting my ability to access outside IP addresses.

Thanks in advance for any help.

Andy

jschiwal 11-10-2006 06:17 PM

Check the output of "/sbin/route" or "netstat -nr" to see if your default gateway is correct and the correct NIC device is used.

360andy 11-10-2006 06:56 PM

Command history

> netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 10.0.1.1 0.0.0.0 UG 0 0 0 eth0

Here is my netstat -nr results and I don't understand the 169.254.0.0 entry.

360andy 11-10-2006 07:01 PM

Quote:

netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 10.0.1.1 0.0.0.0 UG 0 0 0 eth0
I am trying to make it more readable

360andy 11-10-2006 07:20 PM

Thanks for all your help. You pointed me in the right direction. It was the net config that did not update the routing table, and after I really looked at it, I could see the problem. I'm not sure how to close this post. Please close it if I am unable. Thanks again

jschiwal 11-11-2006 12:08 AM

FYI. Using [ code ] ... [ /code ] will give you non-proportional spacing and make print outs and code easier to read.
The 169.254 network is one that is automatically assigned if a dhcp server can't be found. That entry shows up on my netstat -nr listing also. However you seem to be missing the local host entry.

Mine looks like:
Code:

netstat -nr
Kernel IP routing table
Destination    Gateway        Genmask        Flags  MSS Window  irtt Iface
192.168.1.0    0.0.0.0        255.255.255.128 U        0 0          0 eth0
169.254.0.0    0.0.0.0        255.255.0.0    U        0 0          0 eth0
127.0.0.0      0.0.0.0        255.0.0.0      U        0 0          0 lo
0.0.0.0        192.168.1.1    0.0.0.0        UG        0 0          0 eth0



All times are GMT -5. The time now is 11:42 AM.