<?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: permanent route add in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857036#M94973</link>
    <description>thanx for your replies guys,&lt;BR /&gt;&lt;BR /&gt;U see we have 2 ip address configured on 1 lan card.&lt;BR /&gt;&lt;BR /&gt;first interface is - lan0&lt;BR /&gt;and the second a virtual one- lan0:1&lt;BR /&gt;&lt;BR /&gt;this takes care of 2 different networks. Now..i have to add 24 route destinations to 1st interface and 1 for the virtual interface. &lt;BR /&gt;&lt;BR /&gt;I want to know...what will be the entry in the [] braces for 1st and 2nd interface..&lt;BR /&gt;&lt;BR /&gt;I have added &lt;BR /&gt;&lt;BR /&gt;1st interface - lan0&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[0]=&lt;BR /&gt;ROUTE_MASK[0]=&lt;BR /&gt;ROUTE_GATEWAY[0]=ROUTE_COUNT[0]=""&lt;BR /&gt;ROUTE_ARGS[0]=""&lt;BR /&gt;&lt;BR /&gt;This entry should be the sam for all 24 routes on 1st enterface?&lt;BR /&gt;&lt;BR /&gt;2nd interface- lan0:1&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[1]&lt;BR /&gt;ROUTE_MASK[1]&lt;BR /&gt;ROUTE_GATEWAY[1]&lt;BR /&gt;ROUTE_COUNT[1]=""&lt;BR /&gt;ROUTE_ARGS[1]=""&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 04 Dec 2002 09:27:28 GMT</pubDate>
    <dc:creator>BLADE_1</dc:creator>
    <dc:date>2002-12-04T09:27:28Z</dc:date>
    <item>
      <title>permanent route add</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857032#M94969</link>
      <description>dear all,&lt;BR /&gt;&lt;BR /&gt;i am trying to add some route addresses and everytime i reboot the box they get reset. I use the command route add -p and also add the entries in /etc/rc.config.d/netconf file...I am running 11.x . &lt;BR /&gt;&lt;BR /&gt;I don't know why this doesn't work..would it be better to make a route add script in /sbin/rc3.d ..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Dec 2002 06:49:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857032#M94969</guid>
      <dc:creator>BLADE_1</dc:creator>
      <dc:date>2002-12-04T06:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: permanent route add</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857033#M94970</link>
      <description>If you have proper entries in netconf file things should be ok.&lt;BR /&gt;Post your netconf file and the ipaddress which you need to make it permanent.&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[0]=&lt;DESTINATION-NETWORK&gt;&lt;BR /&gt;ROUTE_MASK[0]=255.255.255.0&lt;BR /&gt;ROUTE_GATEWAY[0]=&lt;GATEWAY-IP&gt;&lt;BR /&gt;ROUTE_COUNT[0]=1&lt;BR /&gt;ROUTE_ARGS[0]=""&lt;BR /&gt;&lt;BR /&gt;Here [0} indicates the lan0 interface.&lt;BR /&gt;&lt;BR /&gt;Revert&lt;BR /&gt;&lt;/GATEWAY-IP&gt;&lt;/DESTINATION-NETWORK&gt;</description>
      <pubDate>Wed, 04 Dec 2002 06:56:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857033#M94970</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-12-04T06:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: permanent route add</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857034#M94971</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you ever added an entry in /etc/rc.config.d/netconf which didn't work, you should check the /etc/rc.log to see what is the problem with your configuration (bad lan ID, bad address...)&lt;BR /&gt;&lt;BR /&gt;Don't use a script in rc3.d, you may have problem in the futur if you need to modify the net configuration.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Fr??d??ric&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Dec 2002 07:51:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857034#M94971</guid>
      <dc:creator>Frederic Sevestre</dc:creator>
      <dc:date>2002-12-04T07:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: permanent route add</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857035#M94972</link>
      <description>Hi Nainesh,&lt;BR /&gt;1.If you have only few routes to be added then its better off doing in /etc/rc.config.d/netconf and if there are too many routes then better make a new rc script for startup.&lt;BR /&gt;2. It should definately work with netconf, just take care of the index number(they should not conflict). Take care of Metric count.&lt;BR /&gt;3. Try adding those routes manual to see if they are really reachable and can be added.&lt;BR /&gt;4. Check for the exact problems in /etc/rc.log&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Rajeev</description>
      <pubDate>Wed, 04 Dec 2002 08:22:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857035#M94972</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2002-12-04T08:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: permanent route add</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857036#M94973</link>
      <description>thanx for your replies guys,&lt;BR /&gt;&lt;BR /&gt;U see we have 2 ip address configured on 1 lan card.&lt;BR /&gt;&lt;BR /&gt;first interface is - lan0&lt;BR /&gt;and the second a virtual one- lan0:1&lt;BR /&gt;&lt;BR /&gt;this takes care of 2 different networks. Now..i have to add 24 route destinations to 1st interface and 1 for the virtual interface. &lt;BR /&gt;&lt;BR /&gt;I want to know...what will be the entry in the [] braces for 1st and 2nd interface..&lt;BR /&gt;&lt;BR /&gt;I have added &lt;BR /&gt;&lt;BR /&gt;1st interface - lan0&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[0]=&lt;BR /&gt;ROUTE_MASK[0]=&lt;BR /&gt;ROUTE_GATEWAY[0]=ROUTE_COUNT[0]=""&lt;BR /&gt;ROUTE_ARGS[0]=""&lt;BR /&gt;&lt;BR /&gt;This entry should be the sam for all 24 routes on 1st enterface?&lt;BR /&gt;&lt;BR /&gt;2nd interface- lan0:1&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[1]&lt;BR /&gt;ROUTE_MASK[1]&lt;BR /&gt;ROUTE_GATEWAY[1]&lt;BR /&gt;ROUTE_COUNT[1]=""&lt;BR /&gt;ROUTE_ARGS[1]=""&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Dec 2002 09:27:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857036#M94973</guid>
      <dc:creator>BLADE_1</dc:creator>
      <dc:date>2002-12-04T09:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: permanent route add</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857037#M94974</link>
      <description>INTERFACE_NAME[0]="lan0"&lt;BR /&gt;INTERFACE_NAME[1]="lan0:1"</description>
      <pubDate>Wed, 04 Dec 2002 10:21:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857037#M94974</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-12-04T10:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: permanent route add</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857038#M94975</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;i think you misunderstood what the number in the brackets mean. This is a array-variable, so you must just count up from 0 to 23 for your 24 routes. This has nothing to do with the lan-interfaces. Which lan-interface is used, is a logical result of your routing-entry, because your ROUTE_GATEWAY specifies the ip which is used as routing gateway and this is in your case normally one of your interface-ip's (or a ip in the logical network, where the interface is attached). Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Heinz</description>
      <pubDate>Wed, 04 Dec 2002 10:45:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857038#M94975</guid>
      <dc:creator>Heinz Gaertner</dc:creator>
      <dc:date>2002-12-04T10:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: permanent route add</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857039#M94976</link>
      <description>Heinz is correct.  The brackets are just so the program can keep the statements together and tell them apart from the other statements. Following is an example lifted from a working system with just the IP addresses changed to protect the guilty. &lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[0]="10.1.95.0"&lt;BR /&gt;ROUTE_MASK[0]="255.255.255.0"&lt;BR /&gt;ROUTE_GATEWAY[0]="172.16.1.250"&lt;BR /&gt;ROUTE_COUNT[0]="1"&lt;BR /&gt;ROUTE_ARGS[0]="" &lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[1]="192.168.9.0"&lt;BR /&gt;ROUTE_MASK[1]=""&lt;BR /&gt;ROUTE_GATEWAY[1]="172.16.1.250"&lt;BR /&gt;ROUTE_COUNT[1]="1"&lt;BR /&gt;ROUTE_ARGS[1]="" &lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[2]="172.19.95.0"&lt;BR /&gt;ROUTE_MASK[2]="255.255.255.0"&lt;BR /&gt;ROUTE_GATEWAY[2]="172.16.1.250"&lt;BR /&gt;ROUTE_COUNT[2]="1"&lt;BR /&gt;ROUTE_ARGS[2]="" &lt;BR /&gt;&lt;BR /&gt;You can leave the ROUTE_MASK at "" if you use the regular class mask.  i.e. 10 and 172 are class A and B so their standard masks would be 255.0.0.0 and 255.255.0.0 but we have broken all of our networks down into class C's so we need to specify the mask except for the 192 which is a class C.&lt;BR /&gt;&lt;BR /&gt;ROUTE_COUNT should be a positive integer.  Represents the number of "hops" to the destination but the actual number doesn't matter that much unless you are running GATED. A value of 0 means that the address is local so we usually just set it to 1 to indicate to the system that it is non-local. &lt;BR /&gt;&lt;BR /&gt;Also as far as I know the -p option to route add only works in Windows.&lt;BR /&gt;&lt;BR /&gt;netstat -rn&lt;BR /&gt;&lt;BR /&gt;will let you see what routes the box knows.&lt;BR /&gt;&lt;BR /&gt;Ron</description>
      <pubDate>Wed, 04 Dec 2002 21:22:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857039#M94976</guid>
      <dc:creator>Ron Kinner</dc:creator>
      <dc:date>2002-12-04T21:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: permanent route add</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857040#M94977</link>
      <description>Whenever I have to add permament routes to an HP machine I use gated and put them in the gated.conf file.  I've found the netconf file to be unreliable at best when it comes to adding routes at startup.  Gated hasn't failed me yet.</description>
      <pubDate>Wed, 04 Dec 2002 21:44:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857040#M94977</guid>
      <dc:creator>David Baraloto</dc:creator>
      <dc:date>2002-12-04T21:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: permanent route add</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857041#M94978</link>
      <description>hi guys,&lt;BR /&gt;&lt;BR /&gt;thanx for the valuable input.&lt;BR /&gt;&lt;BR /&gt;So the fact is that the entry in [] doesn't specify the lan interface but the sequence no. of different entries. My netconf file is configured in the same way now..but now the only destination which doesn't get initialized at the startup, is the entry configured to lan0:1 interface.&lt;BR /&gt;&lt;BR /&gt;Is the configuration here righ?&lt;BR /&gt;&lt;BR /&gt;IP_ADDRESS[1]=10.111.13.186&lt;BR /&gt;SUBNET_MASK[1]=255.255.255.248&lt;BR /&gt;INTERFACE_NAME[1]=lan0:1&lt;BR /&gt;BROADCAST_ADDRESS[1]=10.111.13.191&lt;BR /&gt;INTERFACE_STATE[1]=up&lt;BR /&gt;&lt;BR /&gt;# VSM&lt;BR /&gt;ROUTE_DESTINATION[28]=10.69.4.29&lt;BR /&gt;ROUTE_MASK[28]=255.255.255.224&lt;BR /&gt;ROUTE_GATEWAY[28]=10.111.13.150&lt;BR /&gt;ROUTE_COUNT[28]=""&lt;BR /&gt;ROUTE_ARGS[28]=""&lt;BR /&gt;&lt;BR /&gt;ip addresses changed..&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Dec 2002 04:16:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857041#M94978</guid>
      <dc:creator>BLADE_1</dc:creator>
      <dc:date>2002-12-05T04:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: permanent route add</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857042#M94979</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;please honor the efforts of these guys by assigning points.&lt;BR /&gt;Most of us are helping here during their work!&lt;BR /&gt;&lt;BR /&gt;Volkmar</description>
      <pubDate>Thu, 05 Dec 2002 09:15:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857042#M94979</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2002-12-05T09:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: permanent route add</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857043#M94980</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;now for me it's a question how near the used IP's come to reality. In your example you have subnets with three bits for networks, which means every subnet has 8 IP's where the lowest one is the networks IP, the highest one is the broadcast IP. So if i don't have miscalculated (doing this without a calculator :-o) you have ....186 as network-IP and ....193 as broadcast-IP and you cannot assign the 186 as a normal interface IP.&lt;BR /&gt;But, whatever is wrong here, i think the easiest try to get out of this, is to check if you assign the IP manually using the ifconfig command:&lt;BR /&gt;ifconfig lan0:1 &lt;YOUR ip=""&gt; netmask &lt;YOUR netmask=""&gt; broadcast &lt;YOUR broadcast-ip=""&gt;&lt;BR /&gt;and let's see what error is coming up doing this.&lt;/YOUR&gt;&lt;/YOUR&gt;&lt;/YOUR&gt;</description>
      <pubDate>Thu, 05 Dec 2002 10:10:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857043#M94980</guid>
      <dc:creator>Heinz Gaertner</dc:creator>
      <dc:date>2002-12-05T10:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: permanent route add</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857044#M94981</link>
      <description>you will also need the entry in netconf as follows.&lt;BR /&gt;&lt;BR /&gt;/etc/rc.config.d/nddconf &lt;BR /&gt;&lt;BR /&gt;TRANSPORT_NAME[0]=ip &lt;BR /&gt;NDD_NAME[0]=ip_check_subnet_addr &lt;BR /&gt;NDD_VALUE[0]=0 &lt;BR /&gt;</description>
      <pubDate>Thu, 05 Dec 2002 12:24:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-route-add/m-p/2857044#M94981</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2002-12-05T12:24:08Z</dc:date>
    </item>
  </channel>
</rss>

