- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: double 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
07-16-2001 04:49 AM
07-16-2001 04:49 AM
I need to configure for each interface a different default gateway.
How can I do this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 05:45 AM
07-16-2001 05:45 AM
Re: double gateway
The default gateway is for the machine to know where to send traffic first. This is normally set up as the high traffic side.
It is up to the router it is connected to , to decide where the message needs routed to.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 05:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 06:17 AM
07-16-2001 06:17 AM
Re: double gateway
#netstat -rvn
Routing tables
Dest/Netmask Gateway Flags Refs Use Interface Pmtu
127.0.0.1/255.255.255.255
127.0.0.1 UH 0 15977 lo0 4136
10.192.35.20/255.255.255.255
10.192.35.20 UH 0 0 lan1 4136
10.192.35.28/255.255.255.255
10.192.35.28 UH 0 51 lan0 4136
10.192.35.16/255.255.255.248
10.192.35.20 U 2 0 lan1 1500
10.192.35.24/255.255.255.248
10.192.35.28 U 2 0 lan0 1500
127.0.0.0/255.0.0.0 127.0.0.1 U 0 0 lo0 4136
default/0.0.0.0 10.192.35.17 UG 0 0 lan1 1500
default/0.0.0.0 10.192.35.25 UG 0 0 lan0 1500
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 06:29 AM
07-16-2001 06:29 AM
Re: double gateway
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 06:41 AM
07-16-2001 06:41 AM
Re: double gateway
------- snip ------
select the host route entry. The default route by default has a
destination/netmask pair of (0,0). Therefore the default route matches
all destinations but it is also the least specific. The default route
will be selected only if there is not a more specific route.
There may still be multiple routing entries remaining. In that case
the IP packet is routed over the first entry displayed by netstat -r.
Such multiple routes include:
+ Two or more routes to a host via different gateways.
+ Two or more routes to a network via different gateways.
+ Two default routes.
------- snip ------
So if i interprete this right, your routing looks fine.
Hope this helps
Regards Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 07:49 AM
07-16-2001 07:49 AM
Re: double gateway
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 10:43 AM
07-16-2001 10:43 AM
Re: double gateway
rick jones
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 11:16 PM
07-16-2001 11:16 PM
Re: double gateway
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 11:52 PM
07-16-2001 11:52 PM
Re: double gateway
You can set this using ndd, see 'ndd -h supported' and the man page. ALso check 'ndd -h ip_strong_es_model for a description.
AS people explained earlier, it is normally possible to define more than one default gateway , however under normal circumstances only one is used. However it is usefull as a 'standby'when the first gateway is not reachable or the NIC fails for example.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 11:53 PM
07-16-2001 11:53 PM
Re: double gateway
To check it's current setting use:
ndd -get /dev/ip ip_strong_es_model
To actually set it use:
ndd -set /dev/ip ip_strong_es_model 1
This can be made a permanent change across reboots by adding this info into the /etc/rc.config.d/nddconf file.
Rick - aren't there some potential issues with setting this parameter that Stefano should be aware of? (I seem to remember some posts on comp.sys.hp.hpux from you on this subject)
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2001 03:10 AM
07-23-2001 03:10 AM
Re: double gateway
I probably feel that you cannot use both the gateway's at the same time.May be one gateway for a sp.network or another gwy for the other.
Whenever the system parses the routing table,it reads from the first entry i.e from top to bottom.Though you have added two entries only the first one will be used.
Thanks.
GM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2001 10:51 PM
09-24-2001 10:51 PM
Re: double gateway
I have a problem...
I have defined the parameters "ip_strong_es_model" = 1, but in some case I can't ping some IP address because the server uses the wrong default gateway.The problem is not persistent, sometimes works fine, sometimes it doesn't work.
Can you help me??