I have a linux box that can ping all nodes on LAN, but can't ping anything on the internet. My gateway is 172.16.0.1, My IP is 172.16.0.13 All other nodes can ping out with that gateway set. Can you guys tell from the following info if I have something set wrong?
Results of ifconfig:
[root@squid ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:CF:FAF
inet addr:172.16.0.13 Bcast:172.16.255.255 Mask:255.255.0.0
inet6 addr: fe80::20c:29ff:fecf:fadf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5292 errors:0 dropped:0 overruns:0 frame:0
TX packets:479 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:450240 (439.6 KiB) TX bytes:51144 (49.9 KiB)
Interrupt:177 Base address:0x1424
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:27 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5376 (5.2 KiB) TX bytes:5376 (5.2 KiB)
_____________________________________________________________
Results of route:
[root@squid ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.0.0 * 255.255.0.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default gateway.xyzxyx. 0.0.0.0 UG 0 0 0 eth0
________________________________________________________________
Results of ping 4.2.2.1:
[root@squid ~]# ping 4.2.2.1
PING 4.2.2.1 (4.2.2.1) 56(84) bytes of data.
It never responds...
___________________________________________________________
Results of ping 172.16.0.1 (Gateway)
[root@squid ~]# ping 172.16.0.1
PING 172.16.0.1 (172.16.0.1) 56(84) bytes of data.
64 bytes from 172.16.0.1: icmp_seq=0 ttl=64 time=0.807 ms
64 bytes from 172.16.0.1: icmp_seq=1 ttl=64 time=1.28 ms
64 bytes from 172.16.0.1: icmp_seq=2 ttl=64 time=1.05 ms
____________________________________________________________
Results of ping google.com
[root@squid ~]# ping google.com
PING google.com (72.14.207.99) 56(84) bytes of data.
It never responds...
___________________________________________________________-
Any help is greatly appreciated.
Thanks,
Kevin
Results of ifconfig:
[root@squid ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:CF:FAF
inet addr:172.16.0.13 Bcast:172.16.255.255 Mask:255.255.0.0
inet6 addr: fe80::20c:29ff:fecf:fadf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5292 errors:0 dropped:0 overruns:0 frame:0
TX packets:479 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:450240 (439.6 KiB) TX bytes:51144 (49.9 KiB)
Interrupt:177 Base address:0x1424
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:27 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5376 (5.2 KiB) TX bytes:5376 (5.2 KiB)
_____________________________________________________________
Results of route:
[root@squid ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.0.0 * 255.255.0.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default gateway.xyzxyx. 0.0.0.0 UG 0 0 0 eth0
________________________________________________________________
Results of ping 4.2.2.1:
[root@squid ~]# ping 4.2.2.1
PING 4.2.2.1 (4.2.2.1) 56(84) bytes of data.
It never responds...
___________________________________________________________
Results of ping 172.16.0.1 (Gateway)
[root@squid ~]# ping 172.16.0.1
PING 172.16.0.1 (172.16.0.1) 56(84) bytes of data.
64 bytes from 172.16.0.1: icmp_seq=0 ttl=64 time=0.807 ms
64 bytes from 172.16.0.1: icmp_seq=1 ttl=64 time=1.28 ms
64 bytes from 172.16.0.1: icmp_seq=2 ttl=64 time=1.05 ms
____________________________________________________________
Results of ping google.com
[root@squid ~]# ping google.com
PING google.com (72.14.207.99) 56(84) bytes of data.
It never responds...
___________________________________________________________-
Any help is greatly appreciated.
Thanks,
Kevin