<?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: Make a linux box as a simple router in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386145#M86349</link>
    <description>Lets analyse with examples here.&lt;BR /&gt;&lt;BR /&gt;Pc1 = 10.0.0.3&lt;BR /&gt;----------------&lt;BR /&gt;10.0.0.0 * 255.255.255.0 U 0 0 0 eth0&lt;BR /&gt;169.254.0.0 * 255.255.0.0 U 0 0 0 eth0&lt;BR /&gt;127.0.0.0 * 255.0.0.0 U 0 0 0 lo&lt;BR /&gt;default 10.0.0.2 0.0.0.0 UG 0 0 0 eth0&lt;BR /&gt;&lt;BR /&gt;There is no entries regarding routing of 192.0.0.* networks so that it will be routed with 10.0.0.2 entry. &lt;BR /&gt;&lt;BR /&gt;Try to make an arrangement as,&lt;BR /&gt;&lt;BR /&gt;10.0.0.3 10.0.0.3 &lt;BR /&gt;10.0.0.0 10.0.0.2&lt;BR /&gt;192.168.0.2 192.168.0.1&lt;BR /&gt;192.168.0.0 192.168.0.1&lt;BR /&gt;other entries there...&lt;BR /&gt;&lt;BR /&gt;Rules are as,&lt;BR /&gt;route add -host 192.168.0.2 netmask 255.255.0.0 gw 192.168.0.1 &lt;METRIC&gt;&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; metric try with 1 / 0 &lt;BR /&gt;&lt;BR /&gt;route add -net 192.162.0.0 gw 192.168.0.1 &lt;METRIC&gt;&lt;BR /&gt;&lt;BR /&gt;PS. I am not having machine to check metric so try with 0 / 1 there upto get add entry ..... there.&lt;/METRIC&gt;&lt;/METRIC&gt;</description>
    <pubDate>Sat, 25 Sep 2004 01:22:45 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2004-09-25T01:22:45Z</dc:date>
    <item>
      <title>Make a linux box as a simple router</title>
      <link>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386139#M86343</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The server installed AS3U2. It has two nics. I assigned 10.0.0.2/24 to eth0 and 192.168.0.1/24 to eth1. I enabled the net.ipv4.ip_forward in /etc/sysctl.conf and reboot the server. The followed lines are the output from netstat -r command,&lt;BR /&gt;Kernel IP routing table&lt;BR /&gt;Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface&lt;BR /&gt;192.168.0.0     *               255.255.255.0   U         0 0          0 eth1&lt;BR /&gt;10.0.0.0        *               255.255.248.0   U         0 0          0 eth0&lt;BR /&gt;127.0.0.0       *               255.0.0.0       U         0 0          0 lo&lt;BR /&gt;default         cluster1.as3    0.0.0.0         UG        0 0          0 eth0&lt;BR /&gt;&lt;BR /&gt;I have to pcs connected with the linux box with two subnet. From 10.0.0.3 I can ping 10.0.0.2 and from 192.168.0.2 I can ping 192.168.0.1 without problem. But when I issue ping 192.168.0.2 command on the 10.0.0.3, it failed with no output. No timeout,no destination cann't be reached messages showed on the screen.&lt;BR /&gt;&lt;BR /&gt;Is there anything I forget to config? Who can give me an advice? Thanks in advanced.&lt;BR /&gt;&lt;BR /&gt;Yongye</description>
      <pubDate>Fri, 24 Sep 2004 07:08:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386139#M86343</guid>
      <dc:creator>yongye_1</dc:creator>
      <dc:date>2004-09-24T07:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Make a linux box as a simple router</title>
      <link>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386140#M86344</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;did you set routing on your PC &lt;BR /&gt;a) 192.168.0.3 gateway must be 192.168.0.1&lt;BR /&gt;b) 10.0.0.3 gw 10.0.0.2&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Sep 2004 07:47:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386140#M86344</guid>
      <dc:creator>Slawomir Gora</dc:creator>
      <dc:date>2004-09-24T07:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Make a linux box as a simple router</title>
      <link>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386141#M86345</link>
      <description>Your routing will be the problem there.&lt;BR /&gt;&lt;BR /&gt;While checking the routing entries use as,&lt;BR /&gt; # route -n&lt;BR /&gt; # netstat -nr&lt;BR /&gt;&lt;BR /&gt; It will give full informations there.&lt;BR /&gt;&lt;BR /&gt; You can check trace routing problem's with traceroute command there.&lt;BR /&gt;&lt;BR /&gt; Problem information says your routing settings are wrong there. what is the machine router informations??&lt;BR /&gt;&lt;BR /&gt; Please post that informations to pin-point exact problem.</description>
      <pubDate>Fri, 24 Sep 2004 08:13:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386141#M86345</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-24T08:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Make a linux box as a simple router</title>
      <link>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386142#M86346</link>
      <description>PCS are not having routing entries for 192.* entries there. Configure your PCS as,&lt;BR /&gt;&lt;BR /&gt; Destination Gateway&lt;BR /&gt; 192.168.0.0 192.168.0.1&lt;BR /&gt; 10.0.0.0    10.0.0.2&lt;BR /&gt;&lt;BR /&gt;so that requests will be sent corresponding gateway. If that is missing and using default routing as,&lt;BR /&gt;&lt;BR /&gt; default &lt;GATEWAY&gt;&lt;BR /&gt;&lt;BR /&gt;then it will be sent through that gateway and other interface ip can not be accessible there.&lt;/GATEWAY&gt;</description>
      <pubDate>Fri, 24 Sep 2004 08:19:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386142#M86346</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-24T08:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Make a linux box as a simple router</title>
      <link>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386143#M86347</link>
      <description>I have four Linux boxes that act as routers.&lt;BR /&gt;&lt;BR /&gt;To have a secure router to the public Internet, you need a few things:&lt;BR /&gt;&lt;BR /&gt;The gateway must be set up as discussed in prior posts on the NIC on the public Internet.&lt;BR /&gt;&lt;BR /&gt;The PC's should have(this varies by isp) /etc/resolv.conf or for Windows DNS information for the outside ISP DNS name servers.&lt;BR /&gt;&lt;BR /&gt;You need to turn on IP forwarding on the Linux box.&lt;BR /&gt;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward &lt;BR /&gt;&lt;BR /&gt;This document explains the setup either with ipchains(obsolete) or iptables&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.yolinux.com/TUTORIALS/LinuxTutorialIptablesNetworkGateway.html" target="_blank"&gt;http://www.yolinux.com/TUTORIALS/LinuxTutorialIptablesNetworkGateway.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Basically you need to set up SNAT NAT Address  translation on the Linux box, this will enable it to handle Internet traffic on your network with stateless connection.&lt;BR /&gt;&lt;BR /&gt;I can give you more direction once you've gotten some of the work above done.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Sep 2004 11:40:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386143#M86347</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-09-24T11:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Make a linux box as a simple router</title>
      <link>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386144#M86348</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for your response.&lt;BR /&gt;&lt;BR /&gt;I add the default gw 10.0.0.2 on 10.0.0.3.Followed lines are output on 10.0.0.3 by issueing netstat -r&lt;BR /&gt;[root@lvs root]# netstat -r&lt;BR /&gt;Kernel IP routing table&lt;BR /&gt;Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface&lt;BR /&gt;10.0.0.0        *               255.255.255.0   U         0 0          0 eth0&lt;BR /&gt;169.254.0.0     *               255.255.0.0     U         0 0          0 eth0&lt;BR /&gt;127.0.0.0       *               255.0.0.0       U         0 0          0 lo&lt;BR /&gt;default         10.0.0.2        0.0.0.0         UG        0 0          0 eth0&lt;BR /&gt;&lt;BR /&gt;But the problem still exist.&lt;BR /&gt;&lt;BR /&gt;If I set up the static route table on 10.0.0.3 as Muthukumar said. Not using default gw on 10.0.0.3. Followed lines are output from netstat -r&lt;BR /&gt;Kernel IP routing table&lt;BR /&gt;Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface&lt;BR /&gt;10.0.0.0        10.0.6.212      255.255.255.0   UG        0 0          0 eth0&lt;BR /&gt;10.0.0.0        *               255.255.255.0   U         0 0          0 eth0&lt;BR /&gt;169.254.0.0     *               255.255.0.0     U         0 0          0 eth0&lt;BR /&gt;127.0.0.0       *               255.0.0.0       U         0 0          0 lo&lt;BR /&gt;&lt;BR /&gt;The problem still here.&lt;BR /&gt;And I disabled the firewall on all machines.&lt;BR /&gt;&lt;BR /&gt;Yongye</description>
      <pubDate>Fri, 24 Sep 2004 23:11:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386144#M86348</guid>
      <dc:creator>yongye_1</dc:creator>
      <dc:date>2004-09-24T23:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Make a linux box as a simple router</title>
      <link>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386145#M86349</link>
      <description>Lets analyse with examples here.&lt;BR /&gt;&lt;BR /&gt;Pc1 = 10.0.0.3&lt;BR /&gt;----------------&lt;BR /&gt;10.0.0.0 * 255.255.255.0 U 0 0 0 eth0&lt;BR /&gt;169.254.0.0 * 255.255.0.0 U 0 0 0 eth0&lt;BR /&gt;127.0.0.0 * 255.0.0.0 U 0 0 0 lo&lt;BR /&gt;default 10.0.0.2 0.0.0.0 UG 0 0 0 eth0&lt;BR /&gt;&lt;BR /&gt;There is no entries regarding routing of 192.0.0.* networks so that it will be routed with 10.0.0.2 entry. &lt;BR /&gt;&lt;BR /&gt;Try to make an arrangement as,&lt;BR /&gt;&lt;BR /&gt;10.0.0.3 10.0.0.3 &lt;BR /&gt;10.0.0.0 10.0.0.2&lt;BR /&gt;192.168.0.2 192.168.0.1&lt;BR /&gt;192.168.0.0 192.168.0.1&lt;BR /&gt;other entries there...&lt;BR /&gt;&lt;BR /&gt;Rules are as,&lt;BR /&gt;route add -host 192.168.0.2 netmask 255.255.0.0 gw 192.168.0.1 &lt;METRIC&gt;&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; metric try with 1 / 0 &lt;BR /&gt;&lt;BR /&gt;route add -net 192.162.0.0 gw 192.168.0.1 &lt;METRIC&gt;&lt;BR /&gt;&lt;BR /&gt;PS. I am not having machine to check metric so try with 0 / 1 there upto get add entry ..... there.&lt;/METRIC&gt;&lt;/METRIC&gt;</description>
      <pubDate>Sat, 25 Sep 2004 01:22:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386145#M86349</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-25T01:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Make a linux box as a simple router</title>
      <link>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386146#M86350</link>
      <description>When you are maintaing router with multiple interface and ip's there then,&lt;BR /&gt;&lt;BR /&gt; 1. Please use same ip-address there to avoid confusion there with different network there. &lt;BR /&gt;&lt;BR /&gt; Example: 10.0.0.2/24 192.168.0.1/24 confusing there. try to use as,&lt;BR /&gt;  10.0.0.2/24 192.168.0.1/24 or vice versa&lt;BR /&gt;&lt;BR /&gt; 2. Routing for different interface / network ip must need routing entry there on routing table. Else it will try to use default gateway there. IT will be sent there but on gateway it don't know how to go next there.&lt;BR /&gt; &lt;BR /&gt; After routing table entry check as,&lt;BR /&gt; &lt;BR /&gt; traceroute &lt;IP-ADDRESS&gt;&lt;BR /&gt;&lt;BR /&gt; To analyse which path it is going there with out simply using ping there.&lt;BR /&gt;&lt;BR /&gt; 3. Put associate routing entries for every network / ip-address with out sending them using default gateway. It will be the main problem when using multiple interface on router there.&lt;BR /&gt;&lt;/IP-ADDRESS&gt;</description>
      <pubDate>Sat, 25 Sep 2004 01:33:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386146#M86350</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-25T01:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Make a linux box as a simple router</title>
      <link>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386147#M86351</link>
      <description>Say your network routing as,&lt;BR /&gt;&lt;BR /&gt;PC    Router&lt;BR /&gt;10.0.0.0, *    ----&amp;gt;  10.0.0.2    &lt;BR /&gt;    192.168.0.1&lt;BR /&gt;    &lt;BR /&gt;* means every other ip-address / network. So it don't know how to reach 192.168.0.* network there. So add an entry in pc as,&lt;BR /&gt;&lt;BR /&gt;route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.0.1&lt;BR /&gt;&lt;BR /&gt;IT will give you a chance to reach 192.168.*.* networks there easily.&lt;BR /&gt;&lt;BR /&gt;If you need clarfication then ping (traceroute) us :-)</description>
      <pubDate>Sat, 25 Sep 2004 01:40:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386147#M86351</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-25T01:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Make a linux box as a simple router</title>
      <link>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386148#M86352</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thank you for your advice.&lt;BR /&gt;&lt;BR /&gt;But I think on the pc(10.0.0.3).Adding the default gw(10.0.0.2) is enough. How to arrive 192.168.0.2 is the router's job. So I think it is not necessary to adding routeing table(192.168.0.0) on pc(10.0.0.3).&lt;BR /&gt;&lt;BR /&gt;Yongye</description>
      <pubDate>Sat, 25 Sep 2004 02:13:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386148#M86352</guid>
      <dc:creator>yongye_1</dc:creator>
      <dc:date>2004-09-25T02:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Make a linux box as a simple router</title>
      <link>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386149#M86353</link>
      <description>Let's go in your way,&lt;BR /&gt;&lt;BR /&gt; what are you getting when you try with yoru default routing to 10.0.0.2 for,&lt;BR /&gt;&lt;BR /&gt; traceroute 192.168.0.2&lt;BR /&gt; traceroute 192.168.0.1&lt;BR /&gt; traceroute 10.0.0.3&lt;BR /&gt; traceroute 10.0.0.2&lt;BR /&gt;&lt;BR /&gt;It is good to know your routing information's there.</description>
      <pubDate>Sat, 25 Sep 2004 02:22:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/make-a-linux-box-as-a-simple-router/m-p/3386149#M86353</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-25T02:22:07Z</dc:date>
    </item>
  </channel>
</rss>

