Can't ping internet. Need help

I am running AIX, and just newly installed this sytem.

I thought I had all the settings correct, but may be wrong.

I set up the DNS to point to my router which has DNS relay.
Router IP is 192.168.0.1
AIX server IP is 192.168.0.164

I can ping my router with no problem. When I do a traceroute to my router, it says :
trying to get source for 192.168.0.1
source should be 192.168.0.164

I have problem when I try to ping www.yahoo.com I get:

"PING www.yahoo-ht2.akadns.net: (209.191.93.52) : 56 data bytes
0821-069 ping: sendto: Cannot reach the destination network.
ping: wrote www.yahoo-ht2.akadns.net 64 chars, ret=-1"

Now, I do a traceroute for www.yahoo.com, I get:

"Trying to get source for www.yahoo.com
source should be 127.0.0.1
traceroute to www.yahoo-ht2.akadns.net (209.191.93.52) from 127.0.0.1, 30 hops max
sendto: Cannot reach the destination network."

It seems the traceroute to my router is yahoo is using 127.0.0.1 (loopback) as source. Could this be the problem or something else?

Looks to me like you're missing a default router. Try netstat -nr and see if a default route is listed. If not, use smit to set one.

How do I tell if I am missing a default route?

# netstat -rn
Routing tables
Destination      Gateway           Flags   Refs     Use  If   PMTU Exp Groups

Route Tree for Protocol Family 2 (Internet):
127/8            127.0.0.1         U        33     3851  lo0     -   -
192.168.0.0      192.168.0.164     UHSb      0        0  en0     -   -  =>
192.168.0/24     192.168.0.164     U         2       85  en0     -   -
192.168.0.1      192.168.0.1       UGHW      1        0  en0     -   -
192.168.0.164    127.0.0.1         UGHS      0       17  lo0     -   -  =>
192.168.0.164/32 192.168.0.1       UGc       0        0  en0     -   -
192.168.0.255    192.168.0.164     UHSb      0        4  en0     -   -

Route Tree for Protocol Family 24 (Internet v6):
::1              ::1               UH        0        0  lo0 16896   - 

It is listed in the output with the name "default" - you don't have one.

Here is the top few lines when I do it on one of my servers (IP addresses edited).

(root@nimrod):/# netstat -nr
Routing tables
Destination      Gateway           Flags   Refs     Use  If   Exp  Groups

Route Tree for Protocol Family 2 (Internet):
default         333.444.555.666    UG       25 2442977259 en3      -      -
127/8           127.0.0.1          U        13    349485 lo0      -      -
333.444.555/24  333.444.555.667    UG        0         0 en1      -      -

Since you don't have default listed, it is trying to route through your loopback address instead. I don't remember the exact path to set it, but try smitty tcpip, setting the default router should be within one of the items under that menu.

Yep. Select the Minimum Configuration option and it's a couple of lines from the bottom. Select F6 to see the command line for setting the info (/usr/sbin/mktcpip). I do that to see what the command line looks like and then run man mktcpip (in this case) to try and understand the command better.

Carl

Thanks guys. Thats what it was. I am now connected.

I need the Staples "That was easy" button......

But you already have it. http://www.unix.com :smiley:

Carl