<?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: Routing via specified interface in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855361#M579687</link>
    <description>Czesc Tomek. :)&lt;BR /&gt;&lt;BR /&gt;For several questions I've read that it's bad idea to have two netwok cards in the same subnet under HP. Look at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x64e0cdec06f1d61190050090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x64e0cdec06f1d61190050090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;However in your special case I was thinking if simply adding one more routing couldn't help. Try:&lt;BR /&gt;&lt;BR /&gt;route add host 126.17.57.237 126.16.13.254 1&lt;BR /&gt;&lt;BR /&gt;together with&lt;BR /&gt;&lt;BR /&gt;route add host 126.16.13.254 126.16.13.107&lt;BR /&gt;&lt;BR /&gt;This could force all traffic to 126.16.13.254 to be routed through IP of lan1, so if this host were a gateway it could work also...&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;Adam&lt;BR /&gt;</description>
    <pubDate>Mon, 02 Dec 2002 16:10:31 GMT</pubDate>
    <dc:creator>Adam J Markiewicz</dc:creator>
    <dc:date>2002-12-02T16:10:31Z</dc:date>
    <item>
      <title>Routing via specified interface</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855353#M579679</link>
      <description>Hello,&lt;BR /&gt;I've got a problem with routing on my HP: i heve an interface lan1 with IP 126.16.13.107 which is my default connection to the rest of network:&lt;BR /&gt;126.16.13.107/255.255.255.255   126.16.13.107      UH        0  lan1       4136&lt;BR /&gt;126.16.13.0/255.255.255.0       126.16.13.107      U         2  lan1       1500&lt;BR /&gt;default/0.0.0.0                 126.16.13.254      UG        0  lan1          0&lt;BR /&gt;&lt;BR /&gt;Then, I've got another interface lan0:&lt;BR /&gt;lan0: flags=842&lt;BROADCAST&gt;&lt;BR /&gt;        inet 126.16.13.109 netmask ffffff00 broadcast 126.16.13.255&lt;BR /&gt;&lt;BR /&gt;I want to create a route to the one computer (eg. 126.17.57.237) via gateway - 126.16.13.254 - but using lan0 interface. I can route it like:&lt;BR /&gt;route add host 126.17.57.237 126.16.13.254 &lt;BR /&gt;&lt;BR /&gt;But how to specify which interface this route will use? I want to use lan0.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Tomek&lt;/BROADCAST&gt;</description>
      <pubDate>Mon, 02 Dec 2002 13:37:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855353#M579679</guid>
      <dc:creator>Tomek Gryszkiewicz</dc:creator>
      <dc:date>2002-12-02T13:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Routing via specified interface</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855354#M579680</link>
      <description>Yes, but how to specify which interface this route is using? If I just add a route (to netconf or via route command) my route will use my default (lan1) interface. But i want to use lan0 for this route...&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Dec 2002 13:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855354#M579680</guid>
      <dc:creator>Tomek Gryszkiewicz</dc:creator>
      <dc:date>2002-12-02T13:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Routing via specified interface</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855355#M579681</link>
      <description>As I mentioned in the other message.&lt;BR /&gt;&lt;BR /&gt;As the Gateway is on the same subnet as lan 0 the machine should use this subnet to reach the gateway specified.&lt;BR /&gt;&lt;BR /&gt;This is the way that I have had to setup my own network in order to get machines connected via gigabit to not go out accross the default gateway which is only 10Mb.&lt;BR /&gt;&lt;BR /&gt;If you set this up and do a traceroute you will see that the system is smart enough to realise that when a card is directly attached to a network there is no point going routing off around the world to get there.&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;&lt;BR /&gt;Robert Thorneycroft</description>
      <pubDate>Mon, 02 Dec 2002 14:03:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855355#M579681</guid>
      <dc:creator>Robert Thorneycroft</dc:creator>
      <dc:date>2002-12-02T14:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Routing via specified interface</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855356#M579682</link>
      <description>You need to edit your /etc/rc.config.d/netconf file and add in entries similar to the following:&lt;BR /&gt;ROUTE_DESTINATION[0]="default"&lt;BR /&gt;ROUTE_MASK[0]=""&lt;BR /&gt;ROUTE_GATEWAY[0]="defgw"&lt;BR /&gt;ROUTE_COUNT[0]="1"&lt;BR /&gt;ROUTE_ARGS[0]=""&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[1]="126.17.57.237"&lt;BR /&gt;ROUTE_MASK[1]=""&lt;BR /&gt;ROUTE_GATEWAY[1]="126.16.13.254"&lt;BR /&gt;ROUTE_COUNT[1]="1"&lt;BR /&gt;ROUTE_ARGS[1]=""&lt;BR /&gt;&lt;BR /&gt;As the Gateway is on the same subnet as lan 0 the machine should use this subnet to reach the gateway specified.&lt;BR /&gt;Then just stop and start your networking with /sbin/init.d/net stop then /sbin/init.d/net start.&lt;BR /&gt;You can check everything is working by using either traceroute or ping -o to check the interfaces being used.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;Robert Thorneycroft</description>
      <pubDate>Mon, 02 Dec 2002 14:22:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855356#M579682</guid>
      <dc:creator>Robert Thorneycroft</dc:creator>
      <dc:date>2002-12-02T14:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Routing via specified interface</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855357#M579683</link>
      <description>Thaks for your answer, but i think it is not solving my problem.&lt;BR /&gt;In the other words:&lt;BR /&gt;I've got a network 126.16.13.0 255.255.255.0 with a gateway 126.16.13.254 connecting me to the rest of the net.&lt;BR /&gt;On one box i've got two interfaces:&lt;BR /&gt;lan1 126.16.13.107&lt;BR /&gt;lan0 126.16.13.109&lt;BR /&gt;- connected to the same router (.254)&lt;BR /&gt;I want to have:&lt;BR /&gt;1. route to the network 126.16.13.0/24 via lan1 and gateway .254&lt;BR /&gt;2. default route via lan1 and gw .254&lt;BR /&gt;3. route to the one host (126.17.57.237) via lan0 and gw .254&lt;BR /&gt;&lt;BR /&gt;1. and 2. is obvious so now i have:&lt;BR /&gt;126.16.13.107/255.255.255.255 126.16.13.107 UH 0 lan1 4136 &lt;BR /&gt;126.16.13.0/255.255.255.0 126.16.13.107 U 2 lan1 1500 &lt;BR /&gt;default/0.0.0.0 126.16.13.254 UG 0 lan1 0 &lt;BR /&gt;&lt;BR /&gt;but i also want to have:&lt;BR /&gt;126.16.13.109/255.255.255.255   126.16.13.109      UH        0  lan0       4136&lt;BR /&gt;126.17.57.237/255.255.255.255 126.16.13.254 UH 0 lan0&lt;BR /&gt;&lt;BR /&gt;Is it possible on HPUX? I am asking because i made a similar routing tables on the other unixes - and there it was working.&lt;BR /&gt;&lt;BR /&gt;if i just add a route:&lt;BR /&gt;route add host 126.17.57.237 126.16.13.254 &lt;BR /&gt;- i cannot specify lan0 as an interface - and the routing for this host will be sent via lan1:&lt;BR /&gt;126.17.57.237/255.255.255.255 126.16.13.254 UH 0 lan1&lt;BR /&gt;&lt;BR /&gt;Regards, &lt;BR /&gt;Tomek</description>
      <pubDate>Mon, 02 Dec 2002 15:18:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855357#M579683</guid>
      <dc:creator>Tomek Gryszkiewicz</dc:creator>
      <dc:date>2002-12-02T15:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Routing via specified interface</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855358#M579684</link>
      <description>My apologies I did not read your initial question clearly and thought that the two lan card were on seperate subnets.  Unfortunately I do not have a situation similar to this so I am not sure whether this is possible or not.&lt;BR /&gt;&lt;BR /&gt;The only thing I would suggest would be to take a look at the ifconfig manual page as:&lt;BR /&gt;&lt;BR /&gt;ifconfig interface address_family [address [dest_address]] [parameters]&lt;BR /&gt;&lt;BR /&gt;Looks like it might be the command you are looking for, however without a test system with your network setup I am unable to test if this can be used to achieve your desired results.&lt;BR /&gt;&lt;BR /&gt;Sorry I could not be of more help,&lt;BR /&gt;&lt;BR /&gt;Robert Thorneycroft</description>
      <pubDate>Mon, 02 Dec 2002 15:38:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855358#M579684</guid>
      <dc:creator>Robert Thorneycroft</dc:creator>
      <dc:date>2002-12-02T15:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Routing via specified interface</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855359#M579685</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I hate to be the bearer of bad news , it is simply not allowed to have 2 lancards in the same subnet on HP-UX , it is possible to have 1 lancard have multiple IP's in the same subnet but not on separate cards and this because the routing table itselfs adheres to a strick first-entry-found first-entry-used procedure , meaning the second interface will effectively be ignored , there is not setup in HP-UX to make this work , I would like to know if the reason you are asking this is for loadbalancing purposes or not , if loadbalancing is the issue then a product exists called APA , it allows multiple interfaces to be bundeled in 1 virtual one with much higher bandwith effectively carrying one IP spread over all the interfaces in the aggregation , if it is just to direct traffic differently depending on the destination then another network is needed &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Dec 2002 15:51:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855359#M579685</guid>
      <dc:creator>sven verhaegen</dc:creator>
      <dc:date>2002-12-02T15:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Routing via specified interface</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855360#M579686</link>
      <description>Thanks for your help.&lt;BR /&gt;So now the only way to solve my problem is to divide my network to have one card in one network.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Tomek</description>
      <pubDate>Mon, 02 Dec 2002 15:58:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855360#M579686</guid>
      <dc:creator>Tomek Gryszkiewicz</dc:creator>
      <dc:date>2002-12-02T15:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Routing via specified interface</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855361#M579687</link>
      <description>Czesc Tomek. :)&lt;BR /&gt;&lt;BR /&gt;For several questions I've read that it's bad idea to have two netwok cards in the same subnet under HP. Look at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x64e0cdec06f1d61190050090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x64e0cdec06f1d61190050090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;However in your special case I was thinking if simply adding one more routing couldn't help. Try:&lt;BR /&gt;&lt;BR /&gt;route add host 126.17.57.237 126.16.13.254 1&lt;BR /&gt;&lt;BR /&gt;together with&lt;BR /&gt;&lt;BR /&gt;route add host 126.16.13.254 126.16.13.107&lt;BR /&gt;&lt;BR /&gt;This could force all traffic to 126.16.13.254 to be routed through IP of lan1, so if this host were a gateway it could work also...&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;Adam&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Dec 2002 16:10:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855361#M579687</guid>
      <dc:creator>Adam J Markiewicz</dc:creator>
      <dc:date>2002-12-02T16:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Routing via specified interface</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855362#M579688</link>
      <description>Czesc Adam :)&lt;BR /&gt;I've already tried something similar, but it doesn't work..&lt;BR /&gt;I just didnt know that two network cards in one network in HP are not supported - in this case i'll divide my network.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Tomek</description>
      <pubDate>Mon, 02 Dec 2002 16:23:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855362#M579688</guid>
      <dc:creator>Tomek Gryszkiewicz</dc:creator>
      <dc:date>2002-12-02T16:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Routing via specified interface</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855363#M579689</link>
      <description>I'm not going to address whether or not ifconfiging multiple physical (as far as the transport is concerned) NICs in the same subnet is supported or not (but wonder how a network of pt-pt dial-ups could work otherwise :)&lt;BR /&gt;&lt;BR /&gt;but will point-out that setting ip_strong_es_model to a value of one will cause the source IP address to be included in the route lookup along with the destination.&lt;BR /&gt;&lt;BR /&gt;if applications bind to local IP's besides INADDR_ANY before they try to call connect(), this does have some interesting effects, among them providing per-interface default routes and having replies go out the interface on which they arrived.&lt;BR /&gt;&lt;BR /&gt;ip_strong_es_model is in the list of supported ndd settings.&lt;BR /&gt;&lt;BR /&gt;the downside is that with ip_strong_es_model set, the system will only accept traffic to a give IP on the NIC to which that IP is bound. if such traffic arrives on another NIC it will be discarded.&lt;BR /&gt;&lt;BR /&gt;shifting gears slightly if the router on the network connected to lan0 supports ProxyARP, you could have the route to that one destination be through the lan0 IP as the gateway with a metric of 0. then the system should ARP for that IP address just like it was local, and the router should reply with his MAC address.&lt;BR /&gt;&lt;BR /&gt;if the router does not do proxy ARP, you might be able to put an ARP entry into the arp cache that maps the remote IP to the router's MAC. I'm not sure though how ARP desides to which interface the ARP entry is to be associated.</description>
      <pubDate>Tue, 03 Dec 2002 19:22:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/routing-via-specified-interface/m-p/2855363#M579689</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2002-12-03T19:22:49Z</dc:date>
    </item>
  </channel>
</rss>

