<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Diferent Gateways in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854323#M545776</link>
    <description>You can set these routes up per interface/subnet in the netconf file.  The below are the comments above the section in the file where you add these.  Pretty self-explanatory.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# Internet routing configuration.  See route(1m), routing(7)&lt;BR /&gt;#&lt;BR /&gt;# ROUTE_DESTINATION:  Destination hostname (in /etc/hosts) or host or network&lt;BR /&gt;#                     IP address in decimal-dot notation, preceded by the word&lt;BR /&gt;#                     "host" or "net"; or simply the word "default".&lt;BR /&gt;#&lt;BR /&gt;# ROUTE_MASK:         Subnetwork mask in decimal-dot notation, or C language&lt;BR /&gt;#                     hexadecimal notation.  This is an optional field.&lt;BR /&gt;#                     A IP address, subnet mask pair uniquely identifies&lt;BR /&gt;#                     a subnet to be reached. If a subnet mask is not given,&lt;BR /&gt;#                     then the system will assign the longest subnet mask&lt;BR /&gt;#                     of the configured network interfaces to this route.&lt;BR /&gt;#                     If there is no matching subnet mask, then the system&lt;BR /&gt;#                     will assign the default network mask as the route's&lt;BR /&gt;#                     subnet mask.&lt;BR /&gt;#&lt;BR /&gt;# ROUTE_GATEWAY:      Gateway hostname (in /etc/hosts) or IP address in&lt;BR /&gt;#                     decimal-dot notation.  If local interface, must use the&lt;BR /&gt;#                     same form as used for IP_ADDRESS above (hostname or&lt;BR /&gt;#                     decimal-dot notation). If loopback interface, i.e.,&lt;BR /&gt;#                     127.0.0.1, the ROUTE_COUNT must be set to zero.&lt;BR /&gt;#&lt;BR /&gt;# ROUTE_COUNT:        An integer that indicates whether the gateway is a&lt;BR /&gt;#                     remote interface (one) or the local interface (zero)&lt;BR /&gt;#                     or loopback interface (e.g., 127.*).&lt;BR /&gt;#&lt;BR /&gt;# ROUTE_ARGS:         Route command arguments and options.  This variable&lt;BR /&gt;#                     may contain a combination of the following arguments:&lt;BR /&gt;#                     "-f", "-n" and "-p pmtu".&lt;BR /&gt;#&lt;BR /&gt;# For each additional route, add a set of variable assignments like the ones&lt;BR /&gt;# below, changing the index to "[1]", "[2]" et cetera.&lt;BR /&gt;</description>
    <pubDate>Thu, 31 Aug 2006 08:52:49 GMT</pubDate>
    <dc:creator>Tom Danzig</dc:creator>
    <dc:date>2006-08-31T08:52:49Z</dc:date>
    <item>
      <title>Diferent Gateways</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854319#M545772</link>
      <description>Hi everyone...I need your help. &lt;BR /&gt;I have a hp-ux 11.23 server with 3 lan's &lt;BR /&gt;lan0--&amp;gt; 10.201.10.23&lt;BR /&gt;lan1--&amp;gt; 192.168.170.15&lt;BR /&gt;lan2--&amp;gt; 10.161.7.22&lt;BR /&gt;and I need to define a particular gateway for each one. I want to define a 10.201.10.2 gateway for lan0;&lt;BR /&gt;192.168.170.12 gateway for lan1; and&lt;BR /&gt;10.161.7.2 gateway for lan2....&lt;BR /&gt;and I need that configuration stay fix always...&lt;BR /&gt;Regards....</description>
      <pubDate>Thu, 31 Aug 2006 08:34:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854319#M545772</guid>
      <dc:creator>FrankBurg</dc:creator>
      <dc:date>2006-08-31T08:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Diferent Gateways</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854320#M545773</link>
      <description>In the /etc/rc.config.d/netconf file, look at the following line for each interface:&lt;BR /&gt;&lt;BR /&gt;ROUTE_GATEWAY[X]="10.1.1.3"&lt;BR /&gt;&lt;BR /&gt;where [X] is the network card interface.  Set the cards gateway here.&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Aug 2006 08:46:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854320#M545773</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2006-08-31T08:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Diferent Gateways</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854321#M545774</link>
      <description>Please ignore the above which is for the default gateway.  Too early and not enough coffee!</description>
      <pubDate>Thu, 31 Aug 2006 08:48:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854321#M545774</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2006-08-31T08:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Diferent Gateways</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854322#M545775</link>
      <description>The file you need to configure is&lt;BR /&gt;/etc/rc.config.d/netconf&lt;BR /&gt;&lt;BR /&gt;In this file you have to create entries such as:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[1]="net 10.201.10.0"&lt;BR /&gt;ROUTE_MASK[1]=255.255.255.0&lt;BR /&gt;ROUTE_GATEWAY[1]=10.201.10.2&lt;BR /&gt;ROUTE_COUNT[1]=1&lt;BR /&gt;ROUTE_ARGS[1]=""&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[2]="net 192.168.170.0"&lt;BR /&gt;ROUTE_MASK[2]=255.255.0.0&lt;BR /&gt;ROUTE_GATEWAY[2]=192.168.170.12&lt;BR /&gt;ROUTE_COUNT[2]=1&lt;BR /&gt;ROUTE_ARGS[2]=""&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[3]="net 10.161.7.0"&lt;BR /&gt;ROUTE_MASK[3]=255.255.0.0&lt;BR /&gt;ROUTE_GATEWAY[3]=10.161.7.2&lt;BR /&gt;ROUTE_COUNT[3]=1&lt;BR /&gt;ROUTE_ARGS[3]=""&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This configuration will survive a reboot. You should be able to activate the configuration with&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/net start&lt;BR /&gt;&lt;BR /&gt;and verify with &lt;BR /&gt;&lt;BR /&gt;netstat -rn&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Kofi</description>
      <pubDate>Thu, 31 Aug 2006 08:50:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854322#M545775</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2006-08-31T08:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Diferent Gateways</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854323#M545776</link>
      <description>You can set these routes up per interface/subnet in the netconf file.  The below are the comments above the section in the file where you add these.  Pretty self-explanatory.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# Internet routing configuration.  See route(1m), routing(7)&lt;BR /&gt;#&lt;BR /&gt;# ROUTE_DESTINATION:  Destination hostname (in /etc/hosts) or host or network&lt;BR /&gt;#                     IP address in decimal-dot notation, preceded by the word&lt;BR /&gt;#                     "host" or "net"; or simply the word "default".&lt;BR /&gt;#&lt;BR /&gt;# ROUTE_MASK:         Subnetwork mask in decimal-dot notation, or C language&lt;BR /&gt;#                     hexadecimal notation.  This is an optional field.&lt;BR /&gt;#                     A IP address, subnet mask pair uniquely identifies&lt;BR /&gt;#                     a subnet to be reached. If a subnet mask is not given,&lt;BR /&gt;#                     then the system will assign the longest subnet mask&lt;BR /&gt;#                     of the configured network interfaces to this route.&lt;BR /&gt;#                     If there is no matching subnet mask, then the system&lt;BR /&gt;#                     will assign the default network mask as the route's&lt;BR /&gt;#                     subnet mask.&lt;BR /&gt;#&lt;BR /&gt;# ROUTE_GATEWAY:      Gateway hostname (in /etc/hosts) or IP address in&lt;BR /&gt;#                     decimal-dot notation.  If local interface, must use the&lt;BR /&gt;#                     same form as used for IP_ADDRESS above (hostname or&lt;BR /&gt;#                     decimal-dot notation). If loopback interface, i.e.,&lt;BR /&gt;#                     127.0.0.1, the ROUTE_COUNT must be set to zero.&lt;BR /&gt;#&lt;BR /&gt;# ROUTE_COUNT:        An integer that indicates whether the gateway is a&lt;BR /&gt;#                     remote interface (one) or the local interface (zero)&lt;BR /&gt;#                     or loopback interface (e.g., 127.*).&lt;BR /&gt;#&lt;BR /&gt;# ROUTE_ARGS:         Route command arguments and options.  This variable&lt;BR /&gt;#                     may contain a combination of the following arguments:&lt;BR /&gt;#                     "-f", "-n" and "-p pmtu".&lt;BR /&gt;#&lt;BR /&gt;# For each additional route, add a set of variable assignments like the ones&lt;BR /&gt;# below, changing the index to "[1]", "[2]" et cetera.&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Aug 2006 08:52:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854323#M545776</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2006-08-31T08:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Diferent Gateways</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854324#M545777</link>
      <description>Thanks anyway TOM....</description>
      <pubDate>Thu, 31 Aug 2006 08:58:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854324#M545777</guid>
      <dc:creator>FrankBurg</dc:creator>
      <dc:date>2006-08-31T08:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Diferent Gateways</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854325#M545778</link>
      <description>Do you mean you want three separate default gateways, one per interface?  Or do you have other IP ranges, which you've not specified, in mind for the gateway destination?</description>
      <pubDate>Thu, 31 Aug 2006 19:22:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854325#M545778</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2006-08-31T19:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Diferent Gateways</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854326#M545779</link>
      <description>I need three separes gateways one for each lan...</description>
      <pubDate>Fri, 01 Sep 2006 10:04:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854326#M545779</guid>
      <dc:creator>FrankBurg</dc:creator>
      <dc:date>2006-09-01T10:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Diferent Gateways</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854327#M545780</link>
      <description>There are gateways and then there are default gateways.  Which is it?  &lt;BR /&gt;&lt;BR /&gt;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?&lt;BR /&gt;&lt;BR /&gt;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).&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Route selection is done in this order:&lt;BR /&gt;&lt;BR /&gt;1) matching host route&lt;BR /&gt;2) matching (sub)network route&lt;BR /&gt;3) default route</description>
      <pubDate>Fri, 01 Sep 2006 11:41:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diferent-gateways/m-p/3854327#M545780</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2006-09-01T11:41:05Z</dc:date>
    </item>
  </channel>
</rss>

