- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Set Default Gateway Permanently
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
10-24-2001 08:41 PM
10-24-2001 08:41 PM
I have tried to set the default gateway using SAM and I have problem getting the setting permanently. When server re-booting, the default gateway will be blank.
please advise.
Many thanks
regards
ckchua
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 08:59 PM
10-24-2001 08:59 PM
Re: Set Default Gateway Permanently
Please enter your default gateway address in the /etc/rc.config.d/netconf
Change the parameters
ROUTE_DESTINATION[0]=default
ROUTE_GATEWAY[0]=xx.xx.xx.xx
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
and do a
/sbin/init.d/net stop
/sbin/init.d/net start.
Thanks
G Manikandan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 09:10 PM
10-24-2001 09:10 PM
Re: Set Default Gateway Permanently
sam is fine for doing this sort of thing....
usually but .... You can edit the
/etc/rc.config.d/netconf file and change
the following parameters then stop and
start your network, by running the below:
# /sbin/init.d/net stop
# /sbin/init.d/net start
Changes to /etc/rc.config.d/netconf
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=xx.xx.xx.xx
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
To add your default route at the command line
# /usr/sbin/route add default xx.xx.xx.xx 1
(1 being the number of hops to your router)
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 11:14 PM
10-24-2001 11:14 PM
Re: Set Default Gateway Permanently
/etc/set_parms addl_netwrk.
This utility allows you to set the network mask and IP-address, but also DNS and NIS settings. If you don't want to configure the last two, just press cancel. It has a GUI and CLI interface.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2001 02:10 AM
10-25-2001 02:10 AM
Re: Set Default Gateway Permanently
/sbin/set_parms addl_netwrk
or
edit the file
/etc/rc.config.d/netconf
and change the settings for the '0' route to suit your needs, then restart the network.
There you go.
E.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2001 02:14 AM
10-25-2001 02:14 AM
Re: Set Default Gateway Permanently
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2001 04:47 AM
10-25-2001 04:47 AM
Re: Set Default Gateway Permanently
Now, since your up and running and want to have the system aware of that gateway address NOW...you would want to enter:
route add default
Remember to key that ( 1 ) after the IP...
So, doing this there is no need to recycle anything..your done.
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2001 04:55 AM
10-25-2001 04:55 AM
Re: Set Default Gateway Permanently
Sam should work.
Are you getting any errors using Sam?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2001 05:29 AM
10-25-2001 05:29 AM
Re: Set Default Gateway Permanently
Tommy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2001 05:46 AM
10-25-2001 05:46 AM
Re: Set Default Gateway Permanently
Take a look at the thread below,
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=8d3410c102fc6fb2f2/screen=ckiDisplayDocument?docId=200000024605269
hope this helps.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2001 06:12 AM
10-25-2001 06:12 AM
SolutionApart from the comprehensive
suggestions which folks have
given in this thread:
Make sure you are setting
the gateway on the correct
lan interface!
To make sure your network configuration is correct, do
#lanscan -> shows lan interfaces
#lanscan |grep -v Hardware |grep -v path | awk '{print $5}'
-> this will give your
lan interfaces (lan0,lan1..)
check the settings of the interfaces:
#ifconfig
-> this will show the current network settings of the interface.
Make sure it is what you want.
#netstat -nr
-> shows the current routing table. The entry
corresponding to default
is your default gateway
entry and it also shows
the lan interface it corresponds to.
To set default gateway permanent, edit /etc/rc.config./netconf
file and enter the parameters
in the ROUTE_DESTINATION
ROUTE_COUNT and ROUTE_GATEWAY
entries. Also make sure
the subscript of the ROUTE
is the same as the lan
interface you are using.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2001 05:40 PM
10-25-2001 05:40 PM
Re: Set Default Gateway Permanently
Thank you for your superb advise. I am confident that I will be able to resolve this issue as soon as I am at site next Wednesday.
Have a nice weekend.
warmest regards
ckchua
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2001 04:49 AM
10-26-2001 04:49 AM
Re: Set Default Gateway Permanently
We only work for peanuts, throw a few.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2001 11:24 PM
11-01-2001 11:24 PM
Re: Set Default Gateway Permanently
I have tried to run /sbin/init.d/net start, everything seems to be okay after executing the net start. I suspect some network process is not executed. How to check net start is executed during server boot-up. Please advise.
regards
ckchua
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2001 11:38 PM
11-01-2001 11:38 PM
Re: Set Default Gateway Permanently
Check /etc/rc.log file for any error during boot up.
----------------------------
Configure LAN interfaces
Output from "/sbin/rc2.d/S340net start":
----------------------------
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 07:07 AM
11-02-2001 07:07 AM
Re: Set Default Gateway Permanently
cd /sbin; ll rc?.d | grep net
You should find a symbolic link (on my 11.0 servers it is /sbin/rc2.d/S340net) pointing to /sbin/init.d/net.
I've seen SAM do some weird things with netconf so I like to edit it by hand. Verify there is no other stanze using the same "instance number" ([0] or whatever you're using for the default route).
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2001 06:14 PM
11-04-2001 06:14 PM
Re: Set Default Gateway Permanently
Actually, my server is using ATM instead of LAN interface.
What shall I check ?
regards
ckchua
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2001 06:44 PM
11-04-2001 06:44 PM
Re: Set Default Gateway Permanently
Don't know much about these but....
Try and do 'nettl' trace. This may bring up
some interesting things. Also check this
out this link.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0xf5eb660142b2d5118ff10090279cd0f9,00.html
-Michael