<?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: route add host in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964791#M550523</link>
    <description>That's interesting that the route command won't allow you to specify the mask. But looking at the route with netstat -rvn confirms that the mask for a host route is 255.255.255.255. It apparently just doesn't allow it at all in the command when "host" is used. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# route add host 10.1.1.1 netmask 255.255.255.255 16.113.144.1 1&lt;BR /&gt;netmask: bad value&lt;BR /&gt;# route add host 10.1.1.1 16.113.144.1 1&lt;BR /&gt;add host 10.1.1.1: gateway 16.113.144.1&lt;BR /&gt;# netstat -rvn&lt;BR /&gt;Routing tables&lt;BR /&gt;Dest/Netmask          Gateway            Flags  Refs       Use  Interface  Pmtu&lt;BR /&gt;127.0.0.1/255.255.255.255&lt;BR /&gt;                      127.0.0.1          &lt;BR /&gt;     UH       0       3316  lo0        4136&lt;BR /&gt;16.113.145.147/255.255.255.255&lt;BR /&gt;                      16.113.145.147     &lt;BR /&gt;     UH       0     174982  lan0       4136&lt;BR /&gt;10.1.1.1/255.255.255.255&lt;BR /&gt;                      16.113.144.1       &lt;BR /&gt;     UGH      0          0  lan0       1500&lt;BR /&gt;16.113.144.0/255.255.254.0&lt;BR /&gt;                      16.113.145.147     &lt;BR /&gt;     U        2          0  lan0       1500&lt;BR /&gt;127.0.0.0/255.0.0.0   127.0.0.1          &lt;BR /&gt;     U        0          0  lo0        4136&lt;BR /&gt;default/0.0.0.0       16.113.144.1       &lt;BR /&gt;     UG       0          0  lan0       1500&lt;BR /&gt;&lt;BR /&gt;Thanks for the info, though! Sorry I misled you. &lt;BR /&gt;</description>
    <pubDate>Tue, 07 Mar 2006 09:19:09 GMT</pubDate>
    <dc:creator>Jim Keeble</dc:creator>
    <dc:date>2006-03-07T09:19:09Z</dc:date>
    <item>
      <title>route add host</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964780#M550512</link>
      <description>I have a route in my /etc/rc.config.d/netconf like this:&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[22]="host 193.28.103.163"&lt;BR /&gt;ROUTE_MASK[22]="255.255.255.0"&lt;BR /&gt;ROUTE_GATEWAY[22]="10.120.3.10"&lt;BR /&gt;ROUTE_COUNT[22]="1"&lt;BR /&gt;ROUTE_ARGS[22]=""&lt;BR /&gt;&lt;BR /&gt;But after a reboot the route doesn't exist?!&lt;BR /&gt;&lt;BR /&gt;When I add the route manual, then it works:&lt;BR /&gt;&lt;BR /&gt;route add host 193.28.103.163 10.120.3.10 1&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Mar 2006 06:06:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964780#M550512</guid>
      <dc:creator>centurion</dc:creator>
      <dc:date>2006-03-06T06:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: route add host</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964781#M550513</link>
      <description>I beleive that the word "host" should not be in the destination:&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[22]="host 193.28.103.163"&lt;BR /&gt; -should read_&lt;BR /&gt;ROUTE_DESTINATION[22]="193.28.103.163"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 06 Mar 2006 06:35:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964781#M550513</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-03-06T06:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: route add host</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964782#M550514</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;The should be &lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[22]="default"&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;&lt;BR /&gt;HGN&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Mar 2006 09:44:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964782#M550514</guid>
      <dc:creator>HGN</dc:creator>
      <dc:date>2006-03-06T09:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: route add host</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964783#M550515</link>
      <description>@Pete:&lt;BR /&gt;&lt;BR /&gt;I will test your alternative ..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;@ HGN:&lt;BR /&gt;&lt;BR /&gt;The default route already exist. The system has three NIC's and many routes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Mon, 06 Mar 2006 09:58:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964783#M550515</guid>
      <dc:creator>centurion</dc:creator>
      <dc:date>2006-03-06T09:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: route add host</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964784#M550516</link>
      <description>Also check /etc/rc.log to see if there are any errors noted during boot-up.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 06 Mar 2006 10:08:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964784#M550516</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-03-06T10:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: route add host</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964785#M550517</link>
      <description>It works with "host 193.28.103.163" and without "193.28.103.163".&lt;BR /&gt;&lt;BR /&gt;The problem is the netmask, when I delete the line ROUTE_MASK[22]="255.255.255.0" and reboot the system, than it works.&lt;BR /&gt;&lt;BR /&gt;In the /etc/rclog I find a entry that the netmask is not OK!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Very freaky ...&lt;BR /&gt;&lt;BR /&gt;Thank you very much Pete!&lt;BR /&gt;&lt;BR /&gt;Regards Timo</description>
      <pubDate>Mon, 06 Mar 2006 11:04:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964785#M550517</guid>
      <dc:creator>centurion</dc:creator>
      <dc:date>2006-03-06T11:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: route add host</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964786#M550518</link>
      <description>resolved</description>
      <pubDate>Mon, 06 Mar 2006 11:07:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964786#M550518</guid>
      <dc:creator>centurion</dc:creator>
      <dc:date>2006-03-06T11:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: route add host</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964787#M550519</link>
      <description>I know you've resolved it already, but just for reference, the mask for a host route is always 255.255.255.255, ie., to match this route the destination IP has to match ALL 32 bits of the route destination. The mask you specified would require a match only of the first 24 bits.</description>
      <pubDate>Tue, 07 Mar 2006 08:14:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964787#M550519</guid>
      <dc:creator>Jim Keeble</dc:creator>
      <dc:date>2006-03-07T08:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: route add host</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964788#M550520</link>
      <description>Hi Jim,&lt;BR /&gt;&lt;BR /&gt;when I add the new entry in the netconf (within the 32bit netmask) and reboot the system, the route doesn't exist.&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[22]="host 193.28.103.163"&lt;BR /&gt;ROUTE_MASK[22]="255.255.255.255"&lt;BR /&gt;ROUTE_GATEWAY[22]="10.120.3.10"&lt;BR /&gt;ROUTE_COUNT[22]="1"&lt;BR /&gt;ROUTE_ARGS[22]=""&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I found the following message in the /etc/rc.log:&lt;BR /&gt;&lt;BR /&gt;ERROR:  Failed to add route entry because its interface is not&lt;BR /&gt;        yet initialized.  May need to add this route entry with&lt;BR /&gt;        a route commad after the interface is up :&lt;BR /&gt;        netmask: bad value&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Mar 2006 08:47:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964788#M550520</guid>
      <dc:creator>centurion</dc:creator>
      <dc:date>2006-03-07T08:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: route add host</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964789#M550521</link>
      <description>The comments in /etc/rc.config.d/netconf explain that this field 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."&lt;BR /&gt;&lt;BR /&gt;Personally, I would leave it blank.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 07 Mar 2006 08:54:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964789#M550521</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-03-07T08:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: route add host</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964790#M550522</link>
      <description>Hi Pete,&lt;BR /&gt;&lt;BR /&gt;when I keep the field for the netmask clear and reboot the system, then it works.&lt;BR /&gt;&lt;BR /&gt;ROUTE_MASK[11]=""&lt;BR /&gt;&lt;BR /&gt;Timo</description>
      <pubDate>Tue, 07 Mar 2006 09:15:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964790#M550522</guid>
      <dc:creator>centurion</dc:creator>
      <dc:date>2006-03-07T09:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: route add host</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964791#M550523</link>
      <description>That's interesting that the route command won't allow you to specify the mask. But looking at the route with netstat -rvn confirms that the mask for a host route is 255.255.255.255. It apparently just doesn't allow it at all in the command when "host" is used. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# route add host 10.1.1.1 netmask 255.255.255.255 16.113.144.1 1&lt;BR /&gt;netmask: bad value&lt;BR /&gt;# route add host 10.1.1.1 16.113.144.1 1&lt;BR /&gt;add host 10.1.1.1: gateway 16.113.144.1&lt;BR /&gt;# netstat -rvn&lt;BR /&gt;Routing tables&lt;BR /&gt;Dest/Netmask          Gateway            Flags  Refs       Use  Interface  Pmtu&lt;BR /&gt;127.0.0.1/255.255.255.255&lt;BR /&gt;                      127.0.0.1          &lt;BR /&gt;     UH       0       3316  lo0        4136&lt;BR /&gt;16.113.145.147/255.255.255.255&lt;BR /&gt;                      16.113.145.147     &lt;BR /&gt;     UH       0     174982  lan0       4136&lt;BR /&gt;10.1.1.1/255.255.255.255&lt;BR /&gt;                      16.113.144.1       &lt;BR /&gt;     UGH      0          0  lan0       1500&lt;BR /&gt;16.113.144.0/255.255.254.0&lt;BR /&gt;                      16.113.145.147     &lt;BR /&gt;     U        2          0  lan0       1500&lt;BR /&gt;127.0.0.0/255.0.0.0   127.0.0.1          &lt;BR /&gt;     U        0          0  lo0        4136&lt;BR /&gt;default/0.0.0.0       16.113.144.1       &lt;BR /&gt;     UG       0          0  lan0       1500&lt;BR /&gt;&lt;BR /&gt;Thanks for the info, though! Sorry I misled you. &lt;BR /&gt;</description>
      <pubDate>Tue, 07 Mar 2006 09:19:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964791#M550523</guid>
      <dc:creator>Jim Keeble</dc:creator>
      <dc:date>2006-03-07T09:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: route add host</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964792#M550524</link>
      <description>Hi Jim, hi Pete,&lt;BR /&gt;&lt;BR /&gt;This is a very nice case! :-) Thank you for your help and have a nice day!&lt;BR /&gt;&lt;BR /&gt;Best regards, Timo</description>
      <pubDate>Tue, 07 Mar 2006 09:55:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/route-add-host/m-p/4964792#M550524</guid>
      <dc:creator>centurion</dc:creator>
      <dc:date>2006-03-07T09:55:13Z</dc:date>
    </item>
  </channel>
</rss>

