1832275 Members
1964 Online
110041 Solutions
New Discussion

Network Unreachable

 
Timothy P. Jackson
Valued Contributor

Network Unreachable

I am trying to get my sendmail to relay through my exchange server which is on a totally different network. My HP-UX machine is on the same network as my MS machines and they are sending and recieving mail just fine. My exchange server is also an ftp server. I can ftp to this server from any of my MS machines but I cannot ftp to it from my Unix box. I get the same message that sendmail gives me.

My ftp server IP is 24.123.113.82

My HP-UX server IP is 192.168.101.8

My default gateway is 192.168.101.1

I cannot ping this server because it set to not accept ping. I can do a nslookup on this server and it works great from the HP-UX server.

Any Help would be greatly appreciated!

Tim
11 REPLIES 11
Muthukumar_5
Honored Contributor

Re: Network Unreachable

what is your hostname resolvation entry in your hp-ux machine as,

/etc/nsswitch.conf
/etc/resolv.conf
/etc/hosts entry

IS your route entries are being fine?
Easy to suggest when don't know about the problem!
Timothy P. Jackson
Valued Contributor

Re: Network Unreachable

You won't believe this...

It suddenly started working. I could ping www.yahoo.com, my sendmail was working and the ftp was working.

Then....

It stopped working!

I rebooted my firewall/default gateway and then it was working again but only for a couple of minutes.

I wonder if my firewall is where the problem is?
Bharat Katkar
Honored Contributor

Re: Network Unreachable

Hi Tim,
Does ur netstat -rn output look like this:

Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
192.168.101.8 192.168.101.8 UH 0 lan0 4136
192.168.101.0 192.168.101.8 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 192.168.101.1 UG 0 lan0 0


Also update resolv.conf and nsswitch file accordingly.

Regards,
You need to know a lot to actually know how little you know
Timothy P. Jackson
Valued Contributor

Re: Network Unreachable

here is my netstat -rn

Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
192.168.101.8 192.168.101.8 UH 0 lan0 4136
192.168.101.0 192.168.101.8 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 192.168.101.1 UG 0 lan0 0

It looks good as far as I can see.

my resolv.conf is correct and nsswitch.conf looks good.
RolandH
Honored Contributor

Re: Network Unreachable

You must switch off the dead gateway detetction on your hp-unix box

# ndd -set /dev/ip ip_ire_gw_probe 0

Roland
Sometimes you lose and sometimes the others win
Timothy P. Jackson
Valued Contributor

Re: Network Unreachable

I tried the command

ndd -set /dev/ip ip_ire_gw_probe 0

and it had no affect on the problem. do I need to stop and start the net again?
RolandH
Honored Contributor

Re: Network Unreachable

YES. See also the ndd manpage how you can change this to be permanent after reboot.

Roland
Sometimes you lose and sometimes the others win
Ron Kinner
Honored Contributor

Re: Network Unreachable

RolandH is correct about the cause of your problem. If restarting the net doesn't bring it back to life try removing the route and then adding it back. The mechanism to restore the dead gateway stops working after you turn it off in NDD. It doesn't automatically restore all dead routes.

To make your change permanent you need to edit /etc/rc.config.d/nddconf to add:

TRANSPORT_NAME[0]=ip
NDD_NAME[0]=ip_ire_gw_probe
NDD_VALUE[0]=0

Use the next available integer in the brackets if you already have entries there.

To give you a little more insight there is a three minute timeout period after it first knows about the gateway. Normally this timeout period begins when it starts the network or you add the route but I think it will also turn on the gateway for 3 minutes when it gets a gratuitous arp from the router (which the router sends out when you reboot it).

Ron
Timothy P. Jackson
Valued Contributor

Re: Network Unreachable

I currently do not have a nddconf file. Is this a file that I can just add and it will be read by an existing script?

So I rebooted my ISA server / firewall last night and everything started working again, very wierd. It is still up and working, so I am taking great care to document what I do so that if it stops again I will know what I did.

Does it ever hurt to set the nddconf?
Ron Kinner
Honored Contributor

Re: Network Unreachable

If you were able to run the ndd command then the netconf file should have been there. You can create one if you don't have it. Just put the three lines in from my previous post and then save the file as /etc/rc.config.d/nddconf.

I'm not sure of the permissions. Probably it is enough for everyone to be able to read it so the default should work OK.

Ron
Timothy P. Jackson
Valued Contributor

Re: Network Unreachable

Thanks for everyones help on this!!

I added the nddconf file and rebooted both the HP-UX server and the MS ISA server. Every thing has been up and working since then.