<?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: Which file to add route ? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/which-file-to-add-route/m-p/2786601#M88637</link>
    <description>Hi,&lt;BR /&gt;you can add the following two lines to the file "/etc/sysconfig/static-routes": &lt;BR /&gt;eth0 net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1&lt;BR /&gt;eth1 net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.2 &lt;BR /&gt;In this Example&lt;BR /&gt;network number - 192.168.2.0 &lt;BR /&gt;network mask - 255.255.255.0&lt;BR /&gt;gateway - 192.168.2.1&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 16 Aug 2002 03:40:26 GMT</pubDate>
    <dc:creator>U.SivaKumar_2</dc:creator>
    <dc:date>2002-08-16T03:40:26Z</dc:date>
    <item>
      <title>Which file to add route ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-file-to-add-route/m-p/2786599#M88635</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Which file should I modify to add a route to the system even though the linux machine has rebooted and the route still exist ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Patrick</description>
      <pubDate>Thu, 15 Aug 2002 06:53:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-file-to-add-route/m-p/2786599#M88635</guid>
      <dc:creator>Patrick Chim</dc:creator>
      <dc:date>2002-08-15T06:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Which file to add route ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-file-to-add-route/m-p/2786600#M88636</link>
      <description>Patrick,&lt;BR /&gt;         I'll assume you have Red hat Linux or similar based distro.  The file you want to edit to add a permanent route is /etc/sysconfig/static-routes.  Also to add / remove a route on the fly for a host&lt;BR /&gt;&lt;BR /&gt;route add -host 10.10.10.45 gw 192.168.0.1&lt;BR /&gt;route del -host 10.10.10.45 gw 192.168.0.1&lt;BR /&gt;&lt;BR /&gt;To Add / Remove a network&lt;BR /&gt;&lt;BR /&gt;route add -net 10.10.10.0/24 gw 192.168.0.1&lt;BR /&gt;route del -net 10.10.10.0/24 gw 192.168.0.1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To add / remove a default gateway&lt;BR /&gt;&lt;BR /&gt;route add default gw 192.168.0.1&lt;BR /&gt;route del default gw 192.168.0.1&lt;BR /&gt;&lt;BR /&gt;Also as always netstat -rn to check current routing table.  I hope I covered all the bases for you if this helps please don't forget the points.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Aug 2002 11:38:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-file-to-add-route/m-p/2786600#M88636</guid>
      <dc:creator>John-Thomas Gaietto</dc:creator>
      <dc:date>2002-08-15T11:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Which file to add route ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-file-to-add-route/m-p/2786601#M88637</link>
      <description>Hi,&lt;BR /&gt;you can add the following two lines to the file "/etc/sysconfig/static-routes": &lt;BR /&gt;eth0 net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1&lt;BR /&gt;eth1 net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.2 &lt;BR /&gt;In this Example&lt;BR /&gt;network number - 192.168.2.0 &lt;BR /&gt;network mask - 255.255.255.0&lt;BR /&gt;gateway - 192.168.2.1&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Aug 2002 03:40:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-file-to-add-route/m-p/2786601#M88637</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2002-08-16T03:40:26Z</dc:date>
    </item>
  </channel>
</rss>

