- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Multiple default gateway, how to force using one
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-26-2017 07:03 PM
02-26-2017 07:03 PM
Multiple default gateway, how to force using one
So here's my server (A) network configuration, simply like this:
127.0.0.1 255.255.255.255 127.0.0.1 No lo0
192.168.202.XX 255.255.255.255 192.168.202.XX No lan
192.168.97.YY 255.255.255.255 192.168.97.YY No lan
192.168.202.0 255.255.255.255 192.168.202.254 Yes lan
192.168.97.0 255.255.255.255 192.168.97.254 Yes lan
192.168.202.0 255.255.255.0 192.168.202.XX No lan
192.168.97.0 255.255.255.0 192.168.97.YY No lan
127.0.0.0 255.0.0.0 127.0.0.1 No lo0
default 0.0.0.0 192.168.97.254 Yes lan
default 0.0.0.0 192.168.202.254 Yes lan
My issue is that I have another server (B) in segment 192.168.183.0 and it can only be accessed from segment 192.168.97.0
But using that routing configuration, when I try to reach server B the traffic seems to be ticktocking between gateway 192.168.97.254 and 192.168.202.254 (which will make it unreachable)
How do I force it to always use 192.168.97.254 as the default gateway?
I use 192.168.202.254 as the gateway for doing ignite backup.
Thanks,
Felix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2017 10:26 AM
02-27-2017 10:26 AM
Re: Multiple default gateway, how to force using one
long time since I did this and not at a machine right now to check, but IIRC corerctly you simply add the non-preferred gateway with a higher route count (hops - the last argument in the "route add default" command that is sually set to 1) or ROUTE_COUNT[x]=n value in netconf - set it to 2 rather than 1 and the gateway set to 1 will be preferred.
But as I said its years since I looked at this...
I am an HPE Employee
