1833496 Members
3024 Online
110052 Solutions
New Discussion

route add using SAM

 
Ronnie Carr
New Member

route add using SAM

Where in SAM do I go to route add? Or can I only do a route add in inetd.conf.
5 REPLIES 5
Kelli Ward
Trusted Contributor

Re: route add using SAM

Hi,
You can't set a route in SAM, but you can do it on the command line (one time shot)

route add default 1

You can also modify the entries in /etc/rc.config.d/netconf
ROUTE_DESTINATION[0]="default"
ROUTE_GATEWAY[0]=""
ROUTE_COUNT[0]="1"

man route for more details, this is the simplest setup.

Good luck,
Kel
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!
Kelli Ward
Trusted Contributor

Re: route add using SAM

Oops,
If you add the netconf entries you will need to reboot and they will run at every reboot unlike using the route command which will not survive a reboot.
No points for this one please. Meant to add.
Thanks,
Kel
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!

Re: route add using SAM

Yes you can add a default gateway through SAM. Go into Networks, then Hosts, select hosts modify and then once in the host file tab back up to actions and there you have an option to set defautl gateway..

New to HP,
Kelli Ward
Trusted Contributor

Re: route add using SAM

Good catch Michael.
I didn't know about that.
We have applications that don't play nicely if you modify the hosts file using SAM, so I never use it.
It's under SAM --> Network and Communication --> hosts --> local hosts --> Actions --> Modify Default Gateway

Thanks for the update,
Kel
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!
John Waller
Esteemed Contributor

Re: route add using SAM

You can also set the default gateway via "set_parms addl_netwrk".

To add a non-default route, the only way I have found is to manually modify the /etc/rc.config.d/netconf file and add the details, or else you can write your own script in /sbin/init.d and link to /sbin/rc3.d/S???.

This method of using an rc script can be useful if you are adding a lot of different routes. Basically you create the multuple "route add host|net netmask routername| router IP" or route del ..... commands