1833758 Members
2342 Online
110063 Solutions
New Discussion

HP box acting as router

 
SOLVED
Go to solution
Fabio Yamaia
Frequent Advisor

HP box acting as router

Hey there,

I have an HP box running 11.00, and it has 2 network cards conected to 2 different LANs (production and backup LANs).

Right now, this box is acting as a router, passing traffic from one LAN to the other, and I DON'T want that.

Is there a way to prevent this? On SUN's, I know you just have to touch a file on /etc, but what about HP?

Any help is much appreciated.

Fabio Yamaia
6 REPLIES 6
MANOJ SRIVASTAVA
Honored Contributor

Re: HP box acting as router

Hi Fibo ,

What is the default gateway , can you print netstat -nr and post it so that the correct route can be determined.

Manoj Srivastava
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: HP box acting as router

You need to issue a ndd -set ip_forwarding 0 command. Man ndd for details. This will do it.


Clay
If it ain't broke, I can fix that.
Fabio Yamaia
Frequent Advisor

Re: HP box acting as router

Manoj,

Thanks for your help, but I guess that Clay's approach was more correct. Routing table would only affect the local box, right?


Clay,

I guess that's what I was looking for... Another question: if I reboot the box, will I have to set the value again, or once it is set, it stays?

Thank you very much for all your help.
Fabio Yamaia
James R. Ferguson
Acclaimed Contributor

Re: HP box acting as router

Hi Fabio:

You should set your tuned parameters in /etc/rc.config.d/nddconf . In this fashion, they will be set/preserved atomatically each time the system boots.

...JRF...
A. Clay Stephenson
Acclaimed Contributor

Re: HP box acting as router

Hi Fabio,

No the ndd set is not permanent but you can easily add it to one of the existing rc scripts or create a new one. If you are not familiar with this process then let us know.


Regards, Clay
If it ain't broke, I can fix that.
Fabio Yamaia
Frequent Advisor

Re: HP box acting as router

Clay,

I was thinking that also, I mean, having to create an rc script, but James' solution seems nicer (and more logical). Anyway, thank you very much for your help.


James,

Thanks a lot for the help. That combined with Clay's first solution was exactly what I was looking for!

Regards,
Fabio Yamaia