- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting up a 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
02-25-2002 02:09 PM
02-25-2002 02:09 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 02:20 PM
02-25-2002 02:20 PM
SolutionAssume you configure your nic at [0].
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="gateway IP"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
Now at the console,
# route -f
then,
# /sbin/init.d/net start
do a netstat -rn to make sure it is in place.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 02:40 PM
02-25-2002 02:40 PM
Re: Setting up a default gateway
For Sun Solaris you need to put the IP address of your default gateway into the file /etc/defaultgateway
# cat /etc/defaultgateway
123.123.123.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 02:41 PM
02-25-2002 02:41 PM
Re: Setting up a default gateway
I hit submit and realized I told you the wrong file! The correct file is /etc/defaultrouter for Sun Solaris.
# cat /etc/defaultrouter
123.123.123.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 02:45 PM
02-25-2002 02:45 PM
Re: Setting up a default gateway
For SOLARIS...
The file is /etc/defaultrouter where you put your Gateway IP address..
For more information check out the Answerbook on Solaris servers:
http://yourfullyqualifiedhostname:8888
-Shabu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 02:59 PM
02-25-2002 02:59 PM
Re: Setting up a default gateway
One thing to add about /etc/rc.config.d: be careful of creating backup versions of files in this directory. /etc/rc.config (called by /sbin/rc when changing run level) will skip files with any of the following 4 characters in the filename: .,~#
All others will be executed. Thus netconf.bak will not be executed but netconfOLD will be. And since the shell sorts in ascending, ascii order, netconfOLD will be executed after netconf.
Take a look at /etc/rc.config.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 08:51 AM
02-27-2002 08:51 AM
Re: Setting up a default gateway
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 11:21 AM
02-27-2002 11:21 AM
Re: Setting up a default gateway
Your suggestion worked like a champ. Thanks so much.