<?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 two default working route and one nic in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505436#M82346</link>
    <description>hello i have ont 1:10Gb Ethernet blade switch and a bl465&lt;BR /&gt;&lt;BR /&gt;i wated to give two different ip two nic&lt;BR /&gt;&lt;BR /&gt;which&lt;BR /&gt;eth0 150.150.220.38&lt;BR /&gt;netmask 255.255.255.0&lt;BR /&gt;gw 150.150.220.1&lt;BR /&gt;&lt;BR /&gt;eth1 150.150.200.31&lt;BR /&gt;netmask 255.255.255.0&lt;BR /&gt;gw 150.150.200.1&lt;BR /&gt;&lt;BR /&gt;if i did not give any route command they work very nice&lt;BR /&gt;&lt;BR /&gt;but i wanted to give route command&lt;BR /&gt;route add -net 150.150.200.0 netmask 255.255.255.0 gw 150.150.200.1 dev eth1&lt;BR /&gt;&lt;BR /&gt;route add -net 150.150.220.0 netmask 255.255.255.0 gw 150.150.220.1 dev eth0&lt;BR /&gt;&lt;BR /&gt;and add two default gw&lt;BR /&gt;&lt;BR /&gt;route add default gw 150.150.200.1 dev eth1&lt;BR /&gt;route add default gw 150.150.220.1 dev eth0&lt;BR /&gt;&lt;BR /&gt;after this i make a control&lt;BR /&gt;&lt;BR /&gt;i can ping 150.150.200.1 and i can ping 150.150.200.38 from a machine in the same network with 150.150.200.0/24&lt;BR /&gt;&lt;BR /&gt;i can ping 150.150.220.1 and i can ping 150.150.220.31 from a machine in the same network with 150.150.220.0/24&lt;BR /&gt;&lt;BR /&gt;and from a other network which is connected froma backbone 150.150.218.0/24&lt;BR /&gt;i can ping 150.150.220.38 but i cant ping 150.150.200.31&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;why?</description>
    <pubDate>Wed, 30 Sep 2009 09:24:11 GMT</pubDate>
    <dc:creator>hturker</dc:creator>
    <dc:date>2009-09-30T09:24:11Z</dc:date>
    <item>
      <title>two default working route and one nic</title>
      <link>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505436#M82346</link>
      <description>hello i have ont 1:10Gb Ethernet blade switch and a bl465&lt;BR /&gt;&lt;BR /&gt;i wated to give two different ip two nic&lt;BR /&gt;&lt;BR /&gt;which&lt;BR /&gt;eth0 150.150.220.38&lt;BR /&gt;netmask 255.255.255.0&lt;BR /&gt;gw 150.150.220.1&lt;BR /&gt;&lt;BR /&gt;eth1 150.150.200.31&lt;BR /&gt;netmask 255.255.255.0&lt;BR /&gt;gw 150.150.200.1&lt;BR /&gt;&lt;BR /&gt;if i did not give any route command they work very nice&lt;BR /&gt;&lt;BR /&gt;but i wanted to give route command&lt;BR /&gt;route add -net 150.150.200.0 netmask 255.255.255.0 gw 150.150.200.1 dev eth1&lt;BR /&gt;&lt;BR /&gt;route add -net 150.150.220.0 netmask 255.255.255.0 gw 150.150.220.1 dev eth0&lt;BR /&gt;&lt;BR /&gt;and add two default gw&lt;BR /&gt;&lt;BR /&gt;route add default gw 150.150.200.1 dev eth1&lt;BR /&gt;route add default gw 150.150.220.1 dev eth0&lt;BR /&gt;&lt;BR /&gt;after this i make a control&lt;BR /&gt;&lt;BR /&gt;i can ping 150.150.200.1 and i can ping 150.150.200.38 from a machine in the same network with 150.150.200.0/24&lt;BR /&gt;&lt;BR /&gt;i can ping 150.150.220.1 and i can ping 150.150.220.31 from a machine in the same network with 150.150.220.0/24&lt;BR /&gt;&lt;BR /&gt;and from a other network which is connected froma backbone 150.150.218.0/24&lt;BR /&gt;i can ping 150.150.220.38 but i cant ping 150.150.200.31&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;why?</description>
      <pubDate>Wed, 30 Sep 2009 09:24:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505436#M82346</guid>
      <dc:creator>hturker</dc:creator>
      <dc:date>2009-09-30T09:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: two default working route and one nic</title>
      <link>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505437#M82347</link>
      <description>can you issue the commands:&lt;BR /&gt;&lt;BR /&gt;in your server:&lt;BR /&gt;netstat -rn&lt;BR /&gt;&lt;BR /&gt;from backbone:&lt;BR /&gt;# traceroute 150.150.200.31</description>
      <pubDate>Wed, 30 Sep 2009 11:20:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505437#M82347</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2009-09-30T11:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: two default working route and one nic</title>
      <link>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505438#M82348</link>
      <description>this is a pic from my desktop&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://img28.imageshack.us/img28/4331/53595831.jpg" target="_blank"&gt;http://img28.imageshack.us/img28/4331/53595831.jpg&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;netstat -rn &lt;BR /&gt;route -n&lt;BR /&gt;&lt;BR /&gt;and when i tracert from 150.150.218.1 blok icant reach there&lt;BR /&gt;&lt;BR /&gt;but in the below youu see secure crt and i am in 150.150.200.1 blok there ica ping that ip</description>
      <pubDate>Wed, 30 Sep 2009 11:29:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505438#M82348</guid>
      <dc:creator>hturker</dc:creator>
      <dc:date>2009-09-30T11:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: two default working route and one nic</title>
      <link>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505439#M82349</link>
      <description>sory the tru pic is here&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://img59.imageshack.us/img59/6408/62537987.jpg" target="_blank"&gt;http://img59.imageshack.us/img59/6408/62537987.jpg&lt;/A&gt;</description>
      <pubDate>Wed, 30 Sep 2009 11:32:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505439#M82349</guid>
      <dc:creator>hturker</dc:creator>
      <dc:date>2009-09-30T11:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: two default working route and one nic</title>
      <link>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505440#M82350</link>
      <description>As far as I got the picture this is windows OS and not able to access to unix ;&lt;BR /&gt;&lt;BR /&gt;you need a route add from machine that cannot reach this I address like this:&lt;BR /&gt;&lt;BR /&gt;route -p add 150.150.200.0 mask 255.255.255.0 &lt;GATEWAY from="" windows="" to="" unix="" machine=""&gt; metric 1&lt;BR /&gt;&lt;BR /&gt;By the way you can access from unix to windows ; I mean from IP 150.150.200.31 you are able to access to machine in backbone ?&lt;/GATEWAY&gt;</description>
      <pubDate>Wed, 30 Sep 2009 11:55:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505440#M82350</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2009-09-30T11:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: two default working route and one nic</title>
      <link>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505441#M82351</link>
      <description>no not look at the os&lt;BR /&gt;&lt;BR /&gt;i can reach my 150.150.200.31 machine from every type of machine in the same blok but i cant reach from 150.150.218.0/24 blok &lt;BR /&gt;&lt;BR /&gt;in that pic windows is in 218 blok and at the back the secure crt is in 200 blok</description>
      <pubDate>Wed, 30 Sep 2009 12:17:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505441#M82351</guid>
      <dc:creator>hturker</dc:creator>
      <dc:date>2009-09-30T12:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: two default working route and one nic</title>
      <link>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505442#M82352</link>
      <description>If you specify two default gateways, the one that happens to be listed first in the routing table will get all the traffic that has no more specific route. The second gateway will be used only if the first one fails. &lt;BR /&gt;&lt;BR /&gt;If you have two independent routes to the Internet and want to load-balance your outgoing traffic between them, you should read the Advanced-Routing-HOWTO (find it in the HOWTO document collection packages for your distribution, or just google for it). &lt;BR /&gt;&lt;BR /&gt;&amp;gt; route add -net 150.150.200.0 netmask 255.255.255.0 gw 150.150.200.1 dev eth1&lt;BR /&gt;&lt;BR /&gt;By your configuration, the eth1 NIC is already directly connected to the 150.150.200.* network and can communicate directly with any host in it. There should be no need to go through the gateway: it only generates unnecessary traffic to the gateway. This route makes no sense.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; route add -net 150.150.220.0 netmask 255.255.255.0 gw 150.150.220.1 dev eth0&lt;BR /&gt;&lt;BR /&gt;The same argument seems to apply to the eth0 NIC too. There should be no need to use any gateway to access any host in the 150.150.220.* network, because eth0 is directly connected to that network. &lt;BR /&gt;&lt;BR /&gt;If you _need_ to specify the routes listed above to make things work, your network may have other problems you should fix instead of working around them. Maybe an incorrect netmask or something?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; from a other network which is connected froma backbone 150.150.218.0/24&lt;BR /&gt;i can ping 150.150.220.38 but i cant ping 150.150.200.31&lt;BR /&gt;&lt;BR /&gt;Have you told _the gateway_ that brings in the traffic from the backbone to 150.150.218.* that 150.150.200.31 can be found by going through 150.150.220.38? If you haven't the gateway has no reason to send the traffic in that way and the traffic will never reach your blade.&lt;BR /&gt;&lt;BR /&gt;In other words, the gateway 150.150.220.1 should be configured with a route like this:&lt;BR /&gt;&lt;BR /&gt;route add -host 150.150.200.31 gw 150.150.220.38 dev &lt;BR /&gt;&lt;BR /&gt;And the gateway 150.150.200.1 should be configured with this:&lt;BR /&gt;&lt;BR /&gt;route add -host 150.150.220.38 gw 150.150.200.31 dev &lt;BR /&gt;&lt;BR /&gt;If you want your bl465 to act as a router between the two networks, you should enable IP forwarding and instead of the two routes listed above, you should configure your gateways with routes that allow the entire opposite segment to be reached through your blade:&lt;BR /&gt;&lt;BR /&gt;Route for 150.150.220.1:&lt;BR /&gt;route add -net 150.150.200.0 netmask 255.255.255.0 gw 150.150.220.38 dev &lt;BR /&gt;&lt;BR /&gt;Route for 150.150.200.1:&lt;BR /&gt;route add -net 150.150.220.0 netmask 255.255.255.0 gw 150.150.200.31 dev &lt;BR /&gt;&lt;BR /&gt;NOTE: before allowing traffic to pass through your blade from one network segment to the other, talk with your network admins. &lt;BR /&gt;&lt;BR /&gt;If you join together two segments that are designed to be separate for e.g. security reasons, the network admins will be very unhappy with you. &lt;BR /&gt;&lt;BR /&gt;The same will be true if you accidentally create a routing loop that brings the network to its knees.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 30 Sep 2009 17:56:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505442#M82352</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-09-30T17:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: two default working route and one nic</title>
      <link>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505443#M82353</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can you give us some more information about the network infrastructure that you're connected to ?&lt;BR /&gt;&lt;BR /&gt;The output of "netstat -rn" from both the Linux box and your Windows machine would be useful to see - (as text not a picture !)&lt;BR /&gt;&lt;BR /&gt;As Matti says, some of the routes that you have entered are not necessary.  It's also not usually advisable to have two default gateways, as it can be difficult if not impossible to determine what traffic will go over what interface...&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Rob</description>
      <pubDate>Wed, 30 Sep 2009 19:32:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505443#M82353</guid>
      <dc:creator>Rob Leadbeater</dc:creator>
      <dc:date>2009-09-30T19:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: two default working route and one nic</title>
      <link>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505444#M82354</link>
      <description>&lt;A href="http://forums.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;</description>
      <pubDate>Thu, 08 Oct 2009 08:24:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/two-default-working-route-and-one-nic/m-p/4505444#M82354</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2009-10-08T08:24:54Z</dc:date>
    </item>
  </channel>
</rss>

