- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing Default Gateway
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
Forums
Discussions
Discussions
Discussions
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
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
05-22-2002 10:00 AM
05-22-2002 10:00 AM
Changing Default Gateway
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 10:05 AM
05-22-2002 10:05 AM
Re: Changing Default Gateway
to add a new default gateway
route add default 123.123.123.123 1
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 10:07 AM
05-22-2002 10:07 AM
Re: Changing Default Gateway
also you can edit /etc/netconf file adding the IP for ROUTE_GATEWAY or a host name listed in /etc/hosts or NIS or DNS then issue /sbin/init.d/net stop then /sbin/init.d start
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 10:08 AM
05-22-2002 10:08 AM
Re: Changing Default Gateway
To set immediately run
route add default xxx.xxx.xxx.xxx 1
To enable the setting for all susequent boot you need to edit the /etc/rc.config.d/netconf file & enter the ROUTE_DESTINATION[0]=
ROUTE_GATEWAY[0]=
fields to default & the gateway IP (in quotes) respectively.
Note: depending on your network you may need to specify a subnet mask as well.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 10:08 AM
05-22-2002 10:08 AM
Re: Changing Default Gateway
The easiest way is to use SAM to change it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 10:09 AM
05-22-2002 10:09 AM
Re: Changing Default Gateway
Will add it for now.
To make it stick you need to:
vi /etc/rc.config.d/netconf
Add:
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="newdefaultgatewayIP"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
If you already have some route statements then change the [0] to the next number.
When you reboot it will take.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 10:14 AM
05-22-2002 10:14 AM
Re: Changing Default Gateway
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
And restart "net".
# /sbin/init.d/net stop
# /sbin/init.d/net start
OR
reboot
Make sure check it afterwards..
# netstat -rn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 10:23 AM
05-22-2002 10:23 AM
Re: Changing Default Gateway
first do a netstat -nr
route delete default if any.
route add default 10.2.10.1:1 or 2 depending on the HOP count ie the no of active devices in the way .
you should be able to ping to the address.
To make it permanent edit /etc/rc.config.d/netconf file
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 10:44 AM
05-22-2002 10:44 AM
Re: Changing Default Gateway
go to SAM --> Networking and communication --> Local Hosts file --> Action --> Configure default Gateway
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 11:19 AM
05-22-2002 11:19 AM
Re: Changing Default Gateway
route add default 123.123.123.123 1
and then make the changes permanent by
edit the /etc/rc.config.d/netconf file & enter the ROUTE_DESTINATION[0]= and ROUTE_GATEWAY[0]= fields to default & the gateway IP respectively.
You can also do it thro SAM.
Just check one more way. Thro this you may not have to edit all the files.
set_parms ip_address
It will ask for the IP address and default gateway and after changing this, you will not have to edit any files.
HTH,
Piysuh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 11:33 AM
05-22-2002 11:33 AM
Re: Changing Default Gateway
set_parms addl_netwrk
Try it, as you can always cancel out if you don't want to make a change.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 01:13 PM
05-22-2002 01:13 PM
Re: Changing Default Gateway
Sorry.....What Mladen despic told is the right option.
set_parms addl_netwrk
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 07:49 AM
10-27-2005 07:49 AM
Re: Changing Default Gateway
my default gateway appears offline, and will not let me sign on to msn please could you let me know how i change to online from offline
thanks mate
charlotte
xxx