Operating System - HP-UX
1834651 Members
2190 Online
110069 Solutions
New Discussion

IP Routing on HP-UX 11 Servers

 
SOLVED
Go to solution
WEIQIANG WU
Occasional Advisor

IP Routing on HP-UX 11 Servers

Hi,

We need to multihome HP servers on two separate subnet. One interface is on company intranet, the other one is on its local network. eg. 10.1.1.0 (intranet) and 172.18.1.0

How could I define the routing? Would like to setup default routing to 172.18.1.0.
We also want some other devices with 10.170.1.0 network IP to reach the server through 10.1.1.0 subenet interface. Right now I had to use "route add host ..." to specify host by host. "route add 10.170.1.0 ..." does not work.



Thanks in advance,
Wei
5 REPLIES 5
Sridhar Bhaskarla
Honored Contributor
Solution

Re: IP Routing on HP-UX 11 Servers

Hi Wei,

You can set up your system as a gateway. Install two cards on the system and configure them with the IP addresses.

Then enable gated. Edit /etc/rc.config.d/netconf and make GATED=1.

Using /sbin/init.d/net start, you can start the gated. Otherwise simply running /usr/sbin/gated will also start looking at the default /etc/gated.conf

But the trickiest part is to configure /etc/gated.conf. The simplest configuration could be rip.routed as found in
/usr/examples/gated.

It needs ip_forwarding to be on. But by default it will be. Check out ndd -get ip_forwarding. If you get 2, it means it will forward.

You definitely need to check the man pages of gated and gated.conf.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Sridhar Bhaskarla
Honored Contributor

Re: IP Routing on HP-UX 11 Servers

Hi (again) Wei,

Look at the following document for a good explanation of how to setup gated.conf. It's nice. RIP is easy to setup.

http://us-support3.external.hp.com/cki/bin/doc.pl/sid=539543e51118cc6356/screen=ckiDisplayDocument?docId=200000007950538

Check this document for setting up a OSPF gateway.

http://us-support3.external.hp.com/cki/bin/doc.pl/sid=539543e51118cc6356/screen=ckiDisplayDocument?docId=200000006303694

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
WEIQIANG WU
Occasional Advisor

Re: IP Routing on HP-UX 11 Servers

To turn on the server to act like a gateway, would there be any impact on their subnets' routers?
Any pro and con?

Thanks,
Wei
WEIQIANG WU
Occasional Advisor

Re: IP Routing on HP-UX 11 Servers

Thanks for the reply from you.
I would test it on our test server and see which way I want to go.

I believe the info is exactly what I looking for.

Thanks a lot again.

Wei