- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Two default gateways via different lan cards
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
03-13-2003 01:16 AM
03-13-2003 01:16 AM
Two default gateways via different lan cards
I have an HPUX 11i with two lan cards in different gateways.
I want to configure the server to have two different default gateways, but i would like lan0 to be the first and lan2-the second and lan2 to be used only if lan0 is down.
Although I have configured the first defualt route via lan0 with route count 1 and the second - with route count 2, the second is always put before the first(via lan0) in the routing table.
What could be the reason for this?
Any help would be greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 01:41 AM
03-13-2003 01:41 AM
Re: Two default gateways via different lan cards
ROUTE_DESTINATION[2]="default"
ROUTE_MASK[2]=""
ROUTE_GATEWAY[2]="
ROUTE_COUNT[2]="1"
ROUTE_ARGS[2]=""
must exist in /erc/rc.config.d/netconf for the
lan2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 03:43 AM
03-13-2003 03:43 AM
Re: Two default gateways via different lan cards
I'm not sure, but maybe everything is as you expect? What do you mean 'put second before first in routing table'? Do you mean it shows up earlier in netstat -r? But does it really matter?
The important thing is which one is chosen. You should check routing done for real connections rather than 'what comes first in report from netstat -r'.
My 2 words. Please don't kill me if I'm wrong. :)
Good luck
Adam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 11:39 AM
03-13-2003 11:39 AM
Re: Two default gateways via different lan cards
You can also try
netstat -rnv
and see if it gives you the correct usage info. (It's sort of broken in 11.0)
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 11:50 AM
03-13-2003 11:50 AM
Re: Two default gateways via different lan cards
traceroute is kind of "broken" in 11i.
If you just do a normal traceroute it will *try* to go out the first device displayed in a netstat -in output.
You have to force it out the proper lanX device with -i.
Not sure what's broken, but it's a major pain for us as ALL our servers have multiple I/Fs - 1 for public IP & 1 for bulk-data xfer (our dedicated backup network).
I thought you can only have one default route. If you want others, you have to add static routes. But I could be wrong.....
My $0.02,
Jeff