Operating System - HP-UX
1833860 Members
2201 Online
110063 Solutions
New Discussion

Disabling routing on a RP5470 HPUX 11.0

 
SOLVED
Go to solution
Clutier_1
Occasional Advisor

Disabling routing on a RP5470 HPUX 11.0

Hi,

I've got 2 servers RP5470 connected on a lan (via a network card lan1)(IP 100.83..., mask 255.255.254.0).

I need to connect them to each other with a cross cable, using another physical network interface (lan4).

I plan to use IP adress like 192.168.0.1 and 192.168.0.2 for this new link (mask 255.255.255.0).

How can I be sure that my servers will not route packets from the 100.83 network to (or from) the 192.168 ?

Thanks for your help.

6 REPLIES 6
RAC_1
Honored Contributor

Re: Disabling routing on a RP5470 HPUX 11.0

Add specific route to specific destination.
On 192.168.0.2
route add host 192.168.0.1 192.168.0.2 0
On 192.168.0.1
route add host 192.168.0.2 192.168.0.1 0

This should do it. Also, you can use ipfilter product to do some NAT/forwarding. This is a free product.
There is no substitute to HARDWORK
Devender Khatana
Honored Contributor

Re: Disabling routing on a RP5470 HPUX 11.0

Hi,

Also remove the default route which is allready set to existing IP.

Add another default route along with the new IP.

HTH,
Devender
Impossible itself mentions "I m possible"
Hemmetter
Esteemed Contributor
Solution

Re: Disabling routing on a RP5470 HPUX 11.0

Hi Clutier

check your ip_forwarding ndd(1m) with

# ndd /dev/ip ip_forwarding
0

Should be zero.

rgds
HGH
Steve Lewis
Honored Contributor

Re: Disabling routing on a RP5470 HPUX 11.0

If you still need the default route for other purposes, then it is just a matter of assigning new hosts file entries for the 192.168.0.N lan cards and using these new hosts entries in your software, NOT the old hostnames which would resolve to the wrong IP address and hence out of the wrong lan interface. The default route generally appears last in netstat -r so it will route out of the 192.168.0 card given a hostname resolution to a 192.168.0 address.

You can prove it is going out the right interface card by sending a file and checking netstat -i before and after.
Victor Fridyev
Honored Contributor

Re: Disabling routing on a RP5470 HPUX 11.0

Hi,
It seems to me, you have to do nothing for this purpose. If your default router belongs to 10.83.whatever.subnet , all packets, which are not targeted to 192.168.0.0, will be routed by your default router.
Don't worry, be happy 8)))

HTH
Entities are not to be multiplied beyond necessity - RTFM
Clutier_1
Occasional Advisor

Re: Disabling routing on a RP5470 HPUX 11.0

Thanks to everybody.

I've just disabled ip_forwarding with ndd command.

It seems to work fine.

Regards.