- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Diferent 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
08-31-2006 01:34 AM
08-31-2006 01:34 AM
I have a hp-ux 11.23 server with 3 lan's
lan0--> 10.201.10.23
lan1--> 192.168.170.15
lan2--> 10.161.7.22
and I need to define a particular gateway for each one. I want to define a 10.201.10.2 gateway for lan0;
192.168.170.12 gateway for lan1; and
10.161.7.2 gateway for lan2....
and I need that configuration stay fix always...
Regards....
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2006 01:46 AM
08-31-2006 01:46 AM
Re: Diferent Gateways
ROUTE_GATEWAY[X]="10.1.1.3"
where [X] is the network card interface. Set the cards gateway here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2006 01:48 AM
08-31-2006 01:48 AM
Re: Diferent Gateways
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2006 01:50 AM
08-31-2006 01:50 AM
Solution/etc/rc.config.d/netconf
In this file you have to create entries such as:
ROUTE_DESTINATION[1]="net 10.201.10.0"
ROUTE_MASK[1]=255.255.255.0
ROUTE_GATEWAY[1]=10.201.10.2
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""
ROUTE_DESTINATION[2]="net 192.168.170.0"
ROUTE_MASK[2]=255.255.0.0
ROUTE_GATEWAY[2]=192.168.170.12
ROUTE_COUNT[2]=1
ROUTE_ARGS[2]=""
ROUTE_DESTINATION[3]="net 10.161.7.0"
ROUTE_MASK[3]=255.255.0.0
ROUTE_GATEWAY[3]=10.161.7.2
ROUTE_COUNT[3]=1
ROUTE_ARGS[3]=""
This configuration will survive a reboot. You should be able to activate the configuration with
/sbin/init.d/net start
and verify with
netstat -rn
Hope this helps.
Kofi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2006 01:52 AM
08-31-2006 01:52 AM
Re: Diferent Gateways
# Internet routing configuration. See route(1m), routing(7)
#
# ROUTE_DESTINATION: Destination hostname (in /etc/hosts) or host or network
# IP address in decimal-dot notation, preceded by the word
# "host" or "net"; or simply the word "default".
#
# ROUTE_MASK: Subnetwork mask in decimal-dot notation, or C language
# hexadecimal notation. This is an optional field.
# A IP address, subnet mask pair uniquely identifies
# a subnet to be reached. If a subnet mask is not given,
# then the system will assign the longest subnet mask
# of the configured network interfaces to this route.
# If there is no matching subnet mask, then the system
# will assign the default network mask as the route's
# subnet mask.
#
# ROUTE_GATEWAY: Gateway hostname (in /etc/hosts) or IP address in
# decimal-dot notation. If local interface, must use the
# same form as used for IP_ADDRESS above (hostname or
# decimal-dot notation). If loopback interface, i.e.,
# 127.0.0.1, the ROUTE_COUNT must be set to zero.
#
# ROUTE_COUNT: An integer that indicates whether the gateway is a
# remote interface (one) or the local interface (zero)
# or loopback interface (e.g., 127.*).
#
# ROUTE_ARGS: Route command arguments and options. This variable
# may contain a combination of the following arguments:
# "-f", "-n" and "-p pmtu".
#
# For each additional route, add a set of variable assignments like the ones
# below, changing the index to "[1]", "[2]" et cetera.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2006 01:58 AM
08-31-2006 01:58 AM
Re: Diferent Gateways
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2006 12:22 PM
08-31-2006 12:22 PM
Re: Diferent Gateways
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2006 03:04 AM
09-01-2006 03:04 AM
Re: Diferent Gateways
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2006 04:41 AM
09-01-2006 04:41 AM
Re: Diferent Gateways
Is it the case that want any traffic with a source IP of that of lan0 to use one gateway to reach _all_ remote networks, and then if the source IP is that of lan1 to use a different gateway even if the remote network is the same?
If so, that would seem to be multiple "default" gateways which really isn't an overly simple thing to do, but you can simulate it by doing the apropriate route add commands (and/or edits to netconf) _and_ setting ip_strong_es_model to one (or two) with ndd (and nddconf).
Normally in HP-UX, there is really only one "default" gateway that would be used by all on the system. If you have a specific set of remote destination IP's in mind you could add specific network routes. If there are many of them that may become unpalatable.
Route selection is done in this order:
1) matching host route
2) matching (sub)network route
3) default route