<?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: simple routing in linux in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/simple-routing-in-linux/m-p/4523473#M38684</link>
    <description>Your /etc/sysctl.conf looks right, but check that it went into effect:&lt;BR /&gt;&lt;BR /&gt;cat /proc/sys/net/ipv4/ip_forward&lt;BR /&gt;&lt;BR /&gt;should result in "1"; if the result is "0", start looking for typos - or prehaps you didn't reboot? - in which case you can avoid the reboot with&lt;BR /&gt;&lt;BR /&gt;echo 1 | sudo dd of=/proc/sys/net/ipv4/ip_forward&lt;BR /&gt;</description>
    <pubDate>Fri, 30 Oct 2009 22:13:39 GMT</pubDate>
    <dc:creator>Stephen P. Schaefer</dc:creator>
    <dc:date>2009-10-30T22:13:39Z</dc:date>
    <item>
      <title>simple routing in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/simple-routing-in-linux/m-p/4523468#M38679</link>
      <description>i have seen n number of docs on the net abt routing but still the concept is unclear in my head.&lt;BR /&gt;&lt;BR /&gt;assume a scnario where i have two networks &lt;BR /&gt;192.168.5.x 255.255.255.0&lt;BR /&gt;172.16.x.x 255.255.0.0&lt;BR /&gt;i have machine A with IP 192.168.5.2&lt;BR /&gt;machine B with IP 172.16.0.2&lt;BR /&gt;&lt;BR /&gt;i have a centos machine with 2 NICs, once with IP 192.168.5.1 and another with  172.16.0.1.  &lt;BR /&gt;with iptables service off and &lt;BR /&gt;cat /etc/sysctl.conf | grep net.ipv4.ip_forward&lt;BR /&gt; net.ipv4.ip_forward=1&lt;BR /&gt;&lt;BR /&gt;with this, should machines on the two networks  192.168.5.x and 172.16.x.x not be able to communicate with each other.&lt;BR /&gt;could you please let me know what i am missing?&lt;BR /&gt;i am not able to !!&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Oct 2009 05:13:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/simple-routing-in-linux/m-p/4523468#M38679</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2009-10-29T05:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: simple routing in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/simple-routing-in-linux/m-p/4523469#M38680</link>
      <description>On machine A, the default gate has to be 192.168.5.1&lt;BR /&gt;&lt;BR /&gt;On B default gateway: 172.16.0.1&lt;BR /&gt;&lt;BR /&gt;If you have/need other default gateways you have to add routes &lt;BR /&gt;&lt;BR /&gt;On A:&lt;BR /&gt;ip ro add 172.16/16 via 192.168.5.1&lt;BR /&gt;On B:&lt;BR /&gt;ip ro add 192.168.5/24 via 172.16.0.1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Oct 2009 06:20:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/simple-routing-in-linux/m-p/4523469#M38680</guid>
      <dc:creator>s. vater</dc:creator>
      <dc:date>2009-10-29T06:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: simple routing in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/simple-routing-in-linux/m-p/4523470#M38681</link>
      <description>thanks for you reply&lt;BR /&gt;i had already assigned the default gateway the way you suggested.&lt;BR /&gt;machine on the 192.168.5.x network has default gateway 192.168.5.1 &lt;BR /&gt;&lt;BR /&gt;machine on the 172.16.x.x network has default gateway 172.16.0.1&lt;BR /&gt;&lt;BR /&gt;i changed it the other way arnd jus to check.  no success.!!&lt;BR /&gt;the centos machine with 2 NICs has IPs&lt;BR /&gt;172.16.0.1 and 192.168.5.1 &lt;BR /&gt;any clues</description>
      <pubDate>Thu, 29 Oct 2009 06:51:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/simple-routing-in-linux/m-p/4523470#M38681</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2009-10-29T06:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: simple routing in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/simple-routing-in-linux/m-p/4523471#M38682</link>
      <description>if the communication needs to go to a different subnet it has to go thorugh a layer 3 device like router which will be actually having the routing difined for the target.&lt;BR /&gt;&lt;BR /&gt;Is your machine cable of routing??</description>
      <pubDate>Thu, 29 Oct 2009 10:43:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/simple-routing-in-linux/m-p/4523471#M38682</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2009-10-29T10:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: simple routing in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/simple-routing-in-linux/m-p/4523472#M38683</link>
      <description>You configuration is correct, you should also check that iptables is stopped at machine A and machine B.&lt;BR /&gt;&lt;BR /&gt;Ensure that the ip_forward parameter is really enabled by running:&lt;BR /&gt;&lt;BR /&gt;sysctl -a | grep ip_forward&lt;BR /&gt;sysctl -p&lt;BR /&gt;sysctl -a | grep ip_forward&lt;BR /&gt;&lt;BR /&gt;Use the traceroute command to diagnose the problem.</description>
      <pubDate>Thu, 29 Oct 2009 13:29:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/simple-routing-in-linux/m-p/4523472#M38683</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2009-10-29T13:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: simple routing in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/simple-routing-in-linux/m-p/4523473#M38684</link>
      <description>Your /etc/sysctl.conf looks right, but check that it went into effect:&lt;BR /&gt;&lt;BR /&gt;cat /proc/sys/net/ipv4/ip_forward&lt;BR /&gt;&lt;BR /&gt;should result in "1"; if the result is "0", start looking for typos - or prehaps you didn't reboot? - in which case you can avoid the reboot with&lt;BR /&gt;&lt;BR /&gt;echo 1 | sudo dd of=/proc/sys/net/ipv4/ip_forward&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Oct 2009 22:13:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/simple-routing-in-linux/m-p/4523473#M38684</guid>
      <dc:creator>Stephen P. Schaefer</dc:creator>
      <dc:date>2009-10-30T22:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: simple routing in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/simple-routing-in-linux/m-p/4523474#M38685</link>
      <description>thanks for your replies&lt;BR /&gt;well &lt;BR /&gt;i see the following&lt;BR /&gt;sysctl -a | grep ip_forward&lt;BR /&gt;net.ipv4.ip_forward=1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cat /proc/sys/net/ipv4/ip_forward does show&lt;BR /&gt;1&lt;BR /&gt;&lt;BR /&gt;i have a feeling i am not doing a few things correctly. &lt;BR /&gt;i initially started doing this stuff on a 3 physical machines and things didnt work correctly probably since i was making some mistake.&lt;BR /&gt;later i tried the same thing with vmware workstation on my laptop where in i was trying to ping an outside network when the laptop NIC didnt have an IP in the same network as the VM.&lt;BR /&gt;i think i have got the concept right now and i will try this in office tomorrow.&lt;BR /&gt;&lt;BR /&gt;thanks all</description>
      <pubDate>Sun, 01 Nov 2009 08:06:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/simple-routing-in-linux/m-p/4523474#M38685</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2009-11-01T08:06:00Z</dc:date>
    </item>
  </channel>
</rss>

