- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Two default gateways??
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-11-2002 06:03 AM
10-11-2002 06:03 AM
I have two nic's in my K250 running 10.20. Each has an address on two different networks, i.e.
lan0 = 193.10.10.1
lan1 = 10.10.10.1
I want to ensure that traffic destinated for the 193 address returns with a source address of 193.10.10.1.
Can I specify two default gateways, one for lan0 and one for lan1, so that i can ensure that traffic coming from 163.10.10.1 returns via lan0 with a 193 address.
If so, how is this done.
Thanks
Dermot.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 06:07 AM
10-11-2002 06:07 AM
Re: Two default gateways??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 06:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 06:11 AM
10-11-2002 06:11 AM
Re: Two default gateways??
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
ROUTE_DESTINATION[1]=default
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 06:19 AM
10-11-2002 06:19 AM
Re: Two default gateways??
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="10.2.10.1"
ROUTE_COUNT[0]=""
ROUTE_ARGS[0]=""
ROUTE_DESTINATION[1]=
ROUTE_MASK[0]=""
ROUTE_GATEWAY[1]="20.2.10.1"
ROUTE_COUNT[0]=""
ROUTE_ARGS[0]=""
or u can use sam
you may like to read this document too:
http://www1.itrc.hp.com/service/cki/docDisplay.do?docId=200000049791567
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 07:21 AM
10-11-2002 07:21 AM
Re: Two default gateways??
Thanks for your help.
That sounds like what I am looking for. I presume that I can then just do a
route add net 163.x.x.x 193.x.x.x 1
to make all any traffic going from 163.x.x.x go back through 193.x.x.x card with and 193.x.x.x source address.
Dermot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 11:07 AM
10-11-2002 11:07 AM
Re: Two default gateways??
Having two default gateways makes no sense since by definition the default gateway is the one you use when you have no better route. How could you choose between two default gateways? I'd be surprised if it even lets you have two defaults.
Window boxes allow (and even encourage because people feel they should fill in all of the blanks in the setup form) having a default gateway for each NIC and this causes no end of grief since the one which shows up at the top of the routing table is the one which is used all of the time. The other one will never be used. I have to fix this kind of stuff all of the time.
Rule is the default gateway points toward the internet or to the network which has access to the largest number of different networks. Routes to all remaining networks have to be added via routing statements unless you are using RIP or OSPF or other dynamic routing protocol.
When you edit the /etc/rc.config.d/netconf file watch out for the numbers in the []'s. They should be consistent and sequential.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 11:26 AM
10-11-2002 11:26 AM
Re: Two default gateways??
I have to agree w/Ron.
I've never even tried to set up 2 default routes.
If I want "special" routes, I set up static routes to either hosts or nets - usually nets.
Just set up a static route to the 163.10.10 net & designate 193.10.10.1 as the gateway with a hop count of 0.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 03:03 AM
10-14-2002 03:03 AM
Re: Two default gateways??
I have set the default gateway to be 10.x.x.x but i still had to specifically add a route for anything I wanted to route to via that gateway. It does not appear to be using it as it's default. I cannot figure out why. Now, no mail is being sent off the machine as it is unable to resolve any domain names any longer. I am assuming that it does not know where to send DNS requests if it cannot resolve them itself, but i do not know what route to add to fix this if it does not use it's default.
Any suggestions,
Thanks Dermot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 05:16 AM
10-14-2002 05:16 AM
Re: Two default gateways??
Please post the output from:
1. netstat -in
2. netstat -rnv
3. cat /etc/nsswitch.conf
4. cat /etc/resolv.conf
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 06:16 AM
10-14-2002 06:16 AM
Re: Two default gateways??
I have not seen it before, but a unix friend of my suggested that I delete the default route, and add it back in without the use of the word default, i.e.
route add net 0.0.0.0 netmask 0.0.0.0
I had already done this myself, but did not do a route delete default beforehand.
As soon as I deleted the default route and then entered the above command, everything started working fine.
I do not know if this is a bug, or what, but it may be useful to someone else.
Thanks to you all for your help.
Dermot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 06:45 AM
10-14-2002 06:45 AM
Re: Two default gateways??
route add default ...
and
route add net 0.0.0.0
I suspect that you had an incorrect 'default' route in your routing table. When you deleted it, everything started working.
I'd still be interested in the output from netstat -rnv
Regards,
John