Unix Technical Forum

unable to ping beyond router

This is a discussion on unable to ping beyond router within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi, I'm trying to access the Net from an Enterprise Server H50 running AIX 5.3 but can't get beyond ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 12:50 PM
Huub
 
Posts: n/a
Default unable to ping beyond router

Hi,

I'm trying to access the Net from an Enterprise Server H50 running AIX
5.3 but can't get beyond the router. I have resolv.conf and
defaultrouter set like the other machines which are able to go beyond
the router. I figured out that Linux/Solaris nsswitch.conf is
netsvc.conf on AIX. From examples I determined that I should set "hosts
= local , bind" but it doesn't work. Also, I found that bind is in
/usr/ccs/bin, which isn't in the PATH. But when I add this directory to
the PATH, it still doesn't work.
Help or advise is appreciated.

Huub
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 12:50 PM
sol gongola
 
Posts: n/a
Default Re: unable to ping beyond router

Huub wrote:
> Hi,
>
> I'm trying to access the Net from an Enterprise Server H50 running AIX
> 5.3 but can't get beyond the router. I have resolv.conf and
> defaultrouter set like the other machines which are able to go beyond
> the router. I figured out that Linux/Solaris nsswitch.conf is
> netsvc.conf on AIX. From examples I determined that I should set "hosts
> = local , bind" but it doesn't work. Also, I found that bind is in
> /usr/ccs/bin, which isn't in the PATH. But when I add this directory to
> the PATH, it still doesn't work.
> Help or advise is appreciated.
>
> Huub


Do you have the problem when you ping to an IP address
or just when you ping using a name.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 12:50 PM
paul@paulcarruthers.co.uk
 
Posts: n/a
Default Re: unable to ping beyond router

On 19 Jun, 13:34, Huub <"v.niekerk at hccnet.nl"> wrote:
> Hi,
>
> I'm trying to access the Net from an Enterprise Server H50 running AIX
> 5.3 but can't get beyond the router. I have resolv.conf and
> defaultrouter set like the other machines which are able to go beyond
> the router. I figured out that Linux/Solaris nsswitch.conf is
> netsvc.conf on AIX. From examples I determined that I should set "hosts
> = local , bind" but it doesn't work. Also, I found that bind is in
> /usr/ccs/bin, which isn't in the PATH. But when I add this directory to
> the PATH, it still doesn't work.
> Help or advise is appreciated.
>
> Huub


Hi Huub,

It sounds like something networking wise isn't set right.

The netsvc file has nothing to do with routing. More to do with the
order the system uses DNS, /etc/hosts, ldap , nis etc etc.

I would recommend using smit or smitty or even wsm to double check
everything like IP address, subnet mask. Once your sure that the IP
and subnet mask is correct make sure that you have the correct default
route configured. Use 'netstat -rn' to see what the routing table
looks like.

See mine :

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

Route Tree for Protocol Family 2 (Internet):
default 192.168.20.1 UG 2 7300262 en0
- -
127/8 127.0.0.1 U 15 21936 lo0
- -
192.168.20.0 192.168.20.32 UHSb 0 0 en0
- - =>
192.168.20/24 192.168.20.32 U 16 27460640 en0
- -
192.168.20.32 127.0.0.1 UGHS 15 501 lo0
- -
192.168.20.255 192.168.20.32 UHSb 0 10 en0
- -

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

My box IP 192.168.20.32 has a default route to 192.168.20.1

To add a route use the route command. I guess you'll use something
like route add default ROUTERIP

P

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 12:50 PM
Huub
 
Posts: n/a
Default Re: unable to ping beyond router

>
> Do you have the problem when you ping to an IP address
> or just when you ping using a name.


This is odd:

> $ ping nu.nl
> PING nu.nl: (62.69.179.230): 56 data bytes
> 0821-069 ping: sendto: Cannot reach the destination network.
> ping: wrote nu.nl 64 chars, ret=-1


It seems to get the IP address, so somehow it does go beyond the router.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 12:50 PM
Huub
 
Posts: n/a
Default Re: unable to ping beyond router

>
> To add a route use the route command. I guess you'll use something
> like route add default ROUTERIP
>
> P
>


Thank you. That did the trick. Odd though, since I already had created
/etc/defaultrouter containing the ROUTERIP.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-05-2008, 12:50 PM
0xDEADABE
 
Posts: n/a
Default Re: unable to ping beyond router

Huub wrote:
>>
>> To add a route use the route command. I guess you'll use something
>> like route add default ROUTERIP
>>
>> P
>>

>
> Thank you. That did the trick. Odd though, since I already had created
> /etc/defaultrouter containing the ROUTERIP.


Unlike Solaris, AIX does not use the /etc/defaultrouter file. You have
to add the default route when configuring the interface. You can use
"smit(ty) chinet" or "smit(ty) tcpip".

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-05-2008, 12:50 PM
Huub
 
Posts: n/a
Default Re: unable to ping beyond router

>
> Unlike Solaris, AIX does not use the /etc/defaultrouter file. You have
> to add the default route when configuring the interface. You can use
> "smit(ty) chinet" or "smit(ty) tcpip".
>


Ok, thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:08 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com