Can't ping internet. Need help


 
Thread Tools Search this Thread
Special Forums IP Networking Can't ping internet. Need help
# 1  
Old 10-20-2006
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?
# 2  
Old 10-20-2006
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.
# 3  
Old 10-20-2006
How do I tell if I am missing a default route?


Code:
# 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   -


Last edited by mrciano1; 10-20-2006 at 02:04 PM..
# 4  
Old 10-20-2006
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).

Code:
(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.

Last edited by rhfrommn; 10-20-2006 at 05:30 PM.. Reason: fixing missed characters in netstat output
# 5  
Old 10-20-2006
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
# 6  
Old 10-20-2006
Computer

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

I need the Staples "That was easy" button......
# 7  
Old 10-20-2006
Quote:
Originally Posted by mrciano1
Thanks guys. Thats what it was. I am now connected.

I need the Staples "That was easy" button......
But you already have it. https://www.unix.com Smilie

Carl
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Ping test sends mail when ping fails

help with bash script! im am working on this script to make sure my server will stay online, so i made this script.. HOSTS="192.168.138.155" COUNT=4 pingtest(){ for myhost in "$@" do ping -c "$COUNT" "$myhost" &&return 1 done return 0 } if pingtest $HOSTS #100% failed... (4 Replies)
Discussion started by: mort3924
4 Replies

2. Shell Programming and Scripting

How to get reason for ping failure using perls Net::Ping->new("icmp");?

Hi I am using perl to ping a list of nodes - with script below : $p = Net::Ping->new("icmp"); if ($p->ping($host,1)){ print "$host is alive.\n"; } else { print "$host is unreacheable.\n"; } $p->close();... (4 Replies)
Discussion started by: tavanagh
4 Replies

3. IP Networking

PING

I am unable to ping my remote server.My server is unable to ping the same. both are able to ping the gateway. both the ip's are on same network.i use a proxy tunnel on my remote server.Help if any clues. (6 Replies)
Discussion started by: oslbhavana
6 Replies

4. Shell Programming and Scripting

Animation Ping on Solaris Like Cisco Ping

Hi, I develop simple animation ping script on Solaris Platform. It is like Cisco ping. Examples and source code are below. bash-3.00$ gokcell 152.155.180.8 30 Sending 30 Ping Packets to 152.155.180.8 !!!!!!!!!!!!!.!!!!!!!!!!!!!!!. % 93.33 success... % 6.66 packet loss...... (1 Reply)
Discussion started by: gokcell
1 Replies

5. Solaris

Ping

Hi, I was trying to ping the source and destination i.ps ping -i <source> <destination> <destination> is alive Now i would like to see the packets contiuosly. Please suggest what option can be used with ping command to see For example if i give PING 10.137.58.78: 56 data bytes 64... (3 Replies)
Discussion started by: kkarthik_kaja
3 Replies

6. Debian

PB : DNS Client don't ping internet

Hi, I have my router (192.168.1.1) connected to the internet. I have installed Debian on a server with Bind9 (192.168.1.254). The configurations files are : $ cat /etc/network/interfaces # The loopback network interface auto lo iface lo inet loopback # The primary network interface... (1 Reply)
Discussion started by: Thibault
1 Replies

7. Linux

SFTP an internet address from a system behind an internet proxy

I was wondering if it is possible to setup SFTP to go through the internet proxy while connecting to an internet location. Problem: Client system is behind internet proxy. SFTP to any internet location fails as there is no documented way to configure SFTP to connect to internet locations through... (4 Replies)
Discussion started by: toobrown1
4 Replies

8. Linux

Not able to ping

Hi All, Need your help one more time. I am trying to ping a linux machine which is not responding to ping. However traceroute can reach the machine and I can log in to it by ssh. I have checked /proc/sys/net/ipv4/icmp_echo_ignore_all it is already set as "0". It is not happening in the... (1 Reply)
Discussion started by: ailnilanjan
1 Replies

9. IP Networking

can't ping by ip

hi, I m trying to ping ip on the network . The machine is started but i can't access and can't ping it .. But when i restarts that machine that works fine..... can anybody have an idea about this problem ?? if then reply .. thanks (2 Replies)
Discussion started by: tahir23
2 Replies

10. UNIX for Advanced & Expert Users

iptables rule to block ping to internet

I want to block ping on a linuxbox to any other address where it would go to the default gateway. vmdebianamd64:/etc/tcng# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 198.9.200.0 * 255.255.255.0 U 0 ... (1 Reply)
Discussion started by: progressdll
1 Replies
Login or Register to Ask a Question