Operating System - HP-UX
1833271 Members
3387 Online
110051 Solutions
New Discussion

Re: how to route between 2 net segment on one HOST

 
張朝家
Occasional Advisor

how to route between 2 net segment on one HOST

Dear all

I install 2 nic on RP7410,and LAN0's IP is 192.1.0.18,LAN1's ip is 192.168.0.18
default gateway for LAN0 is 192.1.0.254
one pc's ip 192.168.0.10 and is same net segment with LAN1. now, pc can not ping 192.1.0.254,so pc can not send mail out to 192.1.0 net segment

May I need to config routing or gated on HPUX,or else ...

Please help me ?
5 REPLIES 5
Alex Lavrov.
Honored Contributor

Re: how to route between 2 net segment on one HOST

Please post the output of the following commands:

netstat -in
netstat -rn
ifconfig lan0
ifconfig lan1
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Muthukumar_5
Honored Contributor

Re: how to route between 2 net segment on one HOST

You are configuration will work. You have to configure this setup into /etc/rc.config.d/netconf file to get permanent effect.

Before that check with command line as,

echo hi | sendmail -v root@192.1.0.254

hth.

Easy to suggest when don't know about the problem!
Derek Whigham_1
Trusted Contributor

Re: how to route between 2 net segment on one HOST

What is the subnet mask which is setup on this machine. I would suspect that it is masking out the address of the gateway.
Divide and Conquer
張朝家
Occasional Advisor

Re: how to route between 2 net segment on one HOST

Dear all

the attached file is the output including
netstat -in
netstat -rn
ifconfig lan0
ifconfig lan1

wish usefull for this problem
Alex Lavrov.
Honored Contributor

Re: how to route between 2 net segment on one HOST

If I understand it right,, your PC cannot ping LAN0?

In the piic attached, it looks ok, but what are the settings on the PC? Did you configure a gateway for it?

Post here the output of:
route print

from your PC.
I don't give a damn for a man that can only spell a word one way. (M. Twain)