<?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: Two default gateways?? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823903#M580958</link>
    <description>Putting in the route to the network is the correct thing to do.  Routing decision are based on where you want to go not which NIC the original packet came in on.  However you will also want to put it in the /etc/rc.config.d/netconf file so that it remains after a reboot.&lt;BR /&gt;&lt;BR /&gt;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.  &lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;When you edit the /etc/rc.config.d/netconf file watch out for the numbers in the []'s.  They should be consistent and sequential.&lt;BR /&gt;&lt;BR /&gt;Ron</description>
    <pubDate>Fri, 11 Oct 2002 18:07:27 GMT</pubDate>
    <dc:creator>Ron Kinner</dc:creator>
    <dc:date>2002-10-11T18:07:27Z</dc:date>
    <item>
      <title>Two default gateways??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823897#M580952</link>
      <description>Hi,&lt;BR /&gt;I have two nic's in my K250 running 10.20. Each has an address on two different networks, i.e.&lt;BR /&gt;lan0 = 193.10.10.1&lt;BR /&gt;lan1 = 10.10.10.1&lt;BR /&gt;I want to ensure that traffic destinated for the 193 address returns with a source address of 193.10.10.1.&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;If so, how is this done.&lt;BR /&gt;Thanks&lt;BR /&gt;Dermot.</description>
      <pubDate>Fri, 11 Oct 2002 13:03:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823897#M580952</guid>
      <dc:creator>Dermot Beirne</dc:creator>
      <dc:date>2002-10-11T13:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Two default gateways??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823898#M580953</link>
      <description>netstat -r</description>
      <pubDate>Fri, 11 Oct 2002 13:07:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823898#M580953</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2002-10-11T13:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Two default gateways??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823899#M580954</link>
      <description>yes&lt;BR /&gt;&lt;BR /&gt;you must edit netconf file and add this lines&lt;BR /&gt;&lt;BR /&gt;for secondary lan &lt;BR /&gt;ROUTE_DESTINATION[1]=default&lt;BR /&gt;ROUTE_MASK[1]=""&lt;BR /&gt;ROUTE_GATEWAY[0]=xxx.xxx.xxx.xxx&lt;BR /&gt;ROUTE_COUNT[0]=&lt;BR /&gt;ROUTE_ARGS[0]=&lt;BR /&gt;&lt;BR /&gt;where [1] is you secondary lan&lt;BR /&gt;&lt;BR /&gt;regadrs&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Oct 2002 13:11:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823899#M580954</guid>
      <dc:creator>Domenico_5</dc:creator>
      <dc:date>2002-10-11T13:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Two default gateways??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823900#M580955</link>
      <description>The best way to make these addition permanent is to edit /etc/rc.config.d/netconf. For example ..&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[0]=default&lt;BR /&gt;ROUTE_MASK[0]=""&lt;BR /&gt;ROUTE_GATEWAY[0]=&lt;IP address="" of="" 1st="" gateway=""&gt;&lt;BR /&gt;ROUTE_COUNT[0]=1&lt;BR /&gt;ROUTE_ARGS[0]=""&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[1]=default&lt;BR /&gt;ROUTE_MASK[1]=""&lt;BR /&gt;ROUTE_GATEWAY[1]=&lt;IP address="" of="" 2nd="" gateway=""&gt;&lt;BR /&gt;ROUTE_COUNT[1]=1&lt;BR /&gt;ROUTE_ARGS[1]=""&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/IP&gt;&lt;/IP&gt;</description>
      <pubDate>Fri, 11 Oct 2002 13:11:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823900#M580955</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-10-11T13:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Two default gateways??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823901#M580956</link>
      <description>You specificy default gateway for each card seperatley like this&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[0]=default&lt;BR /&gt;ROUTE_MASK[0]=""&lt;BR /&gt;ROUTE_GATEWAY[0]="10.2.10.1"&lt;BR /&gt;ROUTE_COUNT[0]=""&lt;BR /&gt;ROUTE_ARGS[0]=""&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[1]=&lt;BR /&gt;ROUTE_MASK[0]=""&lt;BR /&gt;ROUTE_GATEWAY[1]="20.2.10.1"&lt;BR /&gt;ROUTE_COUNT[0]=""&lt;BR /&gt;ROUTE_ARGS[0]=""&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;or u can use sam &lt;BR /&gt;&lt;BR /&gt;you may like to read this document too:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/docDisplay.do?docId=200000049791567" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/docDisplay.do?docId=200000049791567&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Oct 2002 13:19:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823901#M580956</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-10-11T13:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Two default gateways??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823902#M580957</link>
      <description>Hi,&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;That sounds like what I am looking for.  I presume that I can then just do a &lt;BR /&gt;&lt;BR /&gt;route add net 163.x.x.x 193.x.x.x 1&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Dermot.</description>
      <pubDate>Fri, 11 Oct 2002 14:21:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823902#M580957</guid>
      <dc:creator>Dermot Beirne</dc:creator>
      <dc:date>2002-10-11T14:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Two default gateways??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823903#M580958</link>
      <description>Putting in the route to the network is the correct thing to do.  Routing decision are based on where you want to go not which NIC the original packet came in on.  However you will also want to put it in the /etc/rc.config.d/netconf file so that it remains after a reboot.&lt;BR /&gt;&lt;BR /&gt;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.  &lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;When you edit the /etc/rc.config.d/netconf file watch out for the numbers in the []'s.  They should be consistent and sequential.&lt;BR /&gt;&lt;BR /&gt;Ron</description>
      <pubDate>Fri, 11 Oct 2002 18:07:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823903#M580958</guid>
      <dc:creator>Ron Kinner</dc:creator>
      <dc:date>2002-10-11T18:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Two default gateways??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823904#M580959</link>
      <description>Hi Dermot,&lt;BR /&gt;&lt;BR /&gt;I have to agree w/Ron.&lt;BR /&gt;I've never even tried to set up 2 default routes.&lt;BR /&gt;If I want "special" routes, I set up static routes to either hosts or nets - usually nets.&lt;BR /&gt;&lt;BR /&gt;Just set up a static route to the 163.10.10 net &amp;amp; designate 193.10.10.1 as the gateway with a hop count of 0.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Fri, 11 Oct 2002 18:26:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823904#M580959</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-10-11T18:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Two default gateways??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823905#M580960</link>
      <description>I see your point about not having 2 default gateways.  &lt;BR /&gt;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.&lt;BR /&gt;Any suggestions,&lt;BR /&gt;Thanks Dermot.</description>
      <pubDate>Mon, 14 Oct 2002 10:03:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823905#M580960</guid>
      <dc:creator>Dermot Beirne</dc:creator>
      <dc:date>2002-10-14T10:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Two default gateways??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823906#M580961</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please post the output from:&lt;BR /&gt;1. netstat -in&lt;BR /&gt;2. netstat -rnv&lt;BR /&gt;3. cat /etc/nsswitch.conf&lt;BR /&gt;4. cat /etc/resolv.conf&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Mon, 14 Oct 2002 12:16:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823906#M580961</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-10-14T12:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Two default gateways??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823907#M580962</link>
      <description>I got it!!&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;route add net 0.0.0.0 netmask 0.0.0.0 &lt;GATEWAY&gt; 1&lt;BR /&gt;&lt;BR /&gt;I had already done this myself, but did not do a route delete default beforehand.  &lt;BR /&gt;As soon as I deleted the default route and then entered the above command, everything started working fine.&lt;BR /&gt;I do not know if this is a bug, or what, but it may be useful to someone else.&lt;BR /&gt;&lt;BR /&gt;Thanks to you all for your help.&lt;BR /&gt;Dermot.&lt;/GATEWAY&gt;</description>
      <pubDate>Mon, 14 Oct 2002 13:16:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823907#M580962</guid>
      <dc:creator>Dermot Beirne</dc:creator>
      <dc:date>2002-10-14T13:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Two default gateways??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823908#M580963</link>
      <description>There isn't any difference between:&lt;BR /&gt;route add default ...&lt;BR /&gt;and&lt;BR /&gt;route add net 0.0.0.0&lt;BR /&gt;&lt;BR /&gt;I suspect that you had an incorrect 'default' route in your routing table. When you deleted it, everything started working.&lt;BR /&gt;&lt;BR /&gt;I'd still be interested in the output from netstat -rnv&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Oct 2002 13:45:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-default-gateways/m-p/2823908#M580963</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-10-14T13:45:55Z</dc:date>
    </item>
  </channel>
</rss>

