- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to change the default gateway in HP-UX
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2009 03:38 AM
тАО02-20-2009 03:38 AM
how to change the default gateway in HP-UX
can you please tell me how to change the default gateway of my HPUX machine from the command prompt with out user iteration
ex:
#change_gateway.sh gate_wayIP
thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2009 03:48 AM
тАО02-20-2009 03:48 AM
Re: how to change the default gateway in HP-UX
This would be gone when the server is rebooted.
So you need to edit
/etc/rc.config.d/netconf
and restart you network
/sbin/init.d/net stop
/sbin/init.d start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2009 03:51 AM
тАО02-20-2009 03:51 AM
Re: how to change the default gateway in HP-UX
There can be only one default gateway to a machine and you would tend to loose connections by the change,afaik.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2009 03:53 AM
тАО02-20-2009 03:53 AM
Re: how to change the default gateway in HP-UX
Change gateway configuration in /etc/rc.config.d/netconf
/sbin/init.d/net stop
/sbin/init.d/net start
Problem is that won't work because there are probably a 100 network dependent services. You almost have to reboot the sywstem afer changing netconf.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2009 03:53 AM
тАО02-20-2009 03:53 AM
Re: how to change the default gateway in HP-UX
I would prefer you to change via SAM. So that the changes will be made permenantly. Means SAM will update the netconf file for you.
By command:
If you have a default gateway already set remove it and add new gateway.
# route delete default
# route add default
After that modify the /etc/rc.config.d/netconf file manually.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2009 03:55 AM
тАО02-20-2009 03:55 AM
Re: how to change the default gateway in HP-UX
Could you provide the content of change_gateway.sh ?
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2009 04:00 AM
тАО02-20-2009 04:00 AM
Re: how to change the default gateway in HP-UX
Correction to my above posting:
should be
/sbin/init.d/net stop
/sbin/init.d/net start
P.S:No points on this post please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2009 02:08 PM
тАО02-21-2009 02:08 PM
Re: how to change the default gateway in HP-UX
set_parms addl_netwrk
to see all the other set_parms command just issue the set_parms command without any options and you will see all the available settings.
The set_parms command is what is run when the machine is being setup and it is the cleanest way to change any of your default settings.
Updating the /etc/rc.config.d/netconf file will work; however, it has been known to cause problems by manually editing this file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2009 11:16 AM
тАО02-22-2009 11:16 AM
Re: how to change the default gateway in HP-UX
Just one inforamtion
set_parms without any arguments wont tell the existing settings rather it shall show you to execute commands with any of the options as root_passwd,date_time,timezone,hostname,ip_address,addl_network or initial.
You can invoke the command set_parms initial to achieve the routing changes of the default route as you are wishing.
OR also you can take the use of SAM--- Network and Oommunications- Routes -- andd modify.
else as suggested earlier you can directly edit the /etc/rc.config.d/netconf, change the default route and do the do /sbin/init.d/net stop and /sbin/init.d/net start.
route delete net default
and
route add net default
shall make the changes but that shall not be surviving thereboots.
regards
sujit