<?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: Add routing entry at system startup in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/add-routing-entry-at-system-startup/m-p/3406317#M14515</link>
    <description>The most general way of solving your problem  is to add a command which sets the routing  in one of the startup scripts. Depending on the distribution, this script could be /etc/rc.local (RH, fedora, Mdk), /etc/rc.inet2 (slackware) and so on.&lt;BR /&gt;However, you should look into the proper way to accomplish what you want in the proper way specific to the distribution you use. For instance, while adding the route command to /etc/rc.inet2 IS the proper slackware way, 'the right way' for RH (below 9.0) is to add the static route to a file named /etc/sysconfig/static-routes, while for RH 9.0 and Fedora Core, the static routes should be placed in files named /etc/sysconfig/network-scripts/route-ethN (N being the index of the interface for which you define the routes), while on Debian you could place a script in /etc/network/if-up.d/&lt;BR /&gt;&lt;BR /&gt;Examples:&lt;BR /&gt;RH (below 9.0):&lt;BR /&gt;# cat /etc/sysconfig/static-routes&lt;BR /&gt;eth1 net 192.168.100.128 netmask 255.255.255.128 gw 192.168.100.102&lt;BR /&gt;eth1 net 192.168.100.120 netmask 255.255.255.248 gw 192.168.100.102&lt;BR /&gt;&lt;BR /&gt;Fedora:&lt;BR /&gt;# cat /etc/sysconfig/network-scripts/route-eth0&lt;BR /&gt;193.231.236.0/27 via 81.196.24.1&lt;BR /&gt;193.231.191.40 via 81.196.24.1&lt;BR /&gt;213.157.160.0/19 via 81.196.24.1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you still cannot figure out what to do, give more details (mostly what distribution you are using) and you will receive more detailed help.</description>
    <pubDate>Sat, 23 Oct 2004 21:58:52 GMT</pubDate>
    <dc:creator>Manuel Wolfshant</dc:creator>
    <dc:date>2004-10-23T21:58:52Z</dc:date>
    <item>
      <title>Add routing entry at system startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/add-routing-entry-at-system-startup/m-p/3406315#M14513</link>
      <description>I hv added the below routing entry to my system , but it will be erased after system reboot , how to set it as a permanent routing so that it still vaild even system reboot ? thx</description>
      <pubDate>Fri, 22 Oct 2004 22:22:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/add-routing-entry-at-system-startup/m-p/3406315#M14513</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2004-10-22T22:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add routing entry at system startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/add-routing-entry-at-system-startup/m-p/3406316#M14514</link>
      <description>Hi&lt;BR /&gt;   what linux system you are using . if you are using  redhat &lt;BR /&gt;&lt;BR /&gt;go to /etc/sysconfig/network-scripts/&lt;BR /&gt;in that you can find the files with name ifcfg-eth(interface no) example your net interface is eth0 then edit &lt;BR /&gt;ifcfg-eth0 in that there is an option called &lt;BR /&gt;GATEWAY . enter your gateways ip address &lt;BR /&gt;&lt;BR /&gt;That all man why your are worried . &lt;BR /&gt;if you stiil having probs feel freee to contact me</description>
      <pubDate>Sat, 23 Oct 2004 00:30:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/add-routing-entry-at-system-startup/m-p/3406316#M14514</guid>
      <dc:creator>ramkumar</dc:creator>
      <dc:date>2004-10-23T00:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add routing entry at system startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/add-routing-entry-at-system-startup/m-p/3406317#M14515</link>
      <description>The most general way of solving your problem  is to add a command which sets the routing  in one of the startup scripts. Depending on the distribution, this script could be /etc/rc.local (RH, fedora, Mdk), /etc/rc.inet2 (slackware) and so on.&lt;BR /&gt;However, you should look into the proper way to accomplish what you want in the proper way specific to the distribution you use. For instance, while adding the route command to /etc/rc.inet2 IS the proper slackware way, 'the right way' for RH (below 9.0) is to add the static route to a file named /etc/sysconfig/static-routes, while for RH 9.0 and Fedora Core, the static routes should be placed in files named /etc/sysconfig/network-scripts/route-ethN (N being the index of the interface for which you define the routes), while on Debian you could place a script in /etc/network/if-up.d/&lt;BR /&gt;&lt;BR /&gt;Examples:&lt;BR /&gt;RH (below 9.0):&lt;BR /&gt;# cat /etc/sysconfig/static-routes&lt;BR /&gt;eth1 net 192.168.100.128 netmask 255.255.255.128 gw 192.168.100.102&lt;BR /&gt;eth1 net 192.168.100.120 netmask 255.255.255.248 gw 192.168.100.102&lt;BR /&gt;&lt;BR /&gt;Fedora:&lt;BR /&gt;# cat /etc/sysconfig/network-scripts/route-eth0&lt;BR /&gt;193.231.236.0/27 via 81.196.24.1&lt;BR /&gt;193.231.191.40 via 81.196.24.1&lt;BR /&gt;213.157.160.0/19 via 81.196.24.1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you still cannot figure out what to do, give more details (mostly what distribution you are using) and you will receive more detailed help.</description>
      <pubDate>Sat, 23 Oct 2004 21:58:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/add-routing-entry-at-system-startup/m-p/3406317#M14515</guid>
      <dc:creator>Manuel Wolfshant</dc:creator>
      <dc:date>2004-10-23T21:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add routing entry at system startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/add-routing-entry-at-system-startup/m-p/3406318#M14516</link>
      <description>Hi Peter,&lt;BR /&gt;&lt;BR /&gt;____________________________________&lt;BR /&gt;Network GUI COnfiguration tools:-&lt;BR /&gt;____________________________________&lt;BR /&gt;&lt;BR /&gt;1./usr/bin/redhat-config-network (/usr/bin/neat) (RH 7.2+) &lt;BR /&gt;&lt;BR /&gt;2./usr/bin/redhat-config-network-tui&lt;BR /&gt;(text console RH 9.0) &lt;BR /&gt;&lt;BR /&gt;3./usr/bin/gnome-network-preferences &lt;BR /&gt;&lt;BR /&gt;(nome Desktop Network Configuration (RH 9.0) - proxy configuration)&lt;BR /&gt;&lt;BR /&gt;Also in redhat Linux,&lt;BR /&gt;&lt;BR /&gt;Static routes are set with the route command and with the configuration file /etc/sysconfig/static-routes. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can see the following too&lt;BR /&gt;&lt;BR /&gt;see the following file&lt;BR /&gt;&lt;BR /&gt;Configuration settings for your first ethernet port (0). &lt;BR /&gt;/etc/sysconfig/network-scripts/ifcfg-eth0 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps you,&lt;BR /&gt;Syam&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 24 Oct 2004 00:41:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/add-routing-entry-at-system-startup/m-p/3406318#M14516</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2004-10-24T00:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Add routing entry at system startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/add-routing-entry-at-system-startup/m-p/3406319#M14517</link>
      <description>Some folks said that you can add routes in files like /etc/rc.d/rc.local, etc. Generally that is true and will work just file on a reboot.&lt;BR /&gt;&lt;BR /&gt;But please consider the case when someone restarts network services while the system is up. For example "service network restart". Then you loose your route(s) that you added to /etc/rc.d/rc.local &lt;BR /&gt;&lt;BR /&gt;That's why there are file (as Manuel said) that you should use to avoid the above described problem. For Red Hat - based distros:&lt;BR /&gt;&lt;BR /&gt;RHL 7.x:&lt;BR /&gt;/etc/sysconfig/static-routes&lt;BR /&gt;&lt;BR /&gt;RHEL &amp;amp; Fedora:&lt;BR /&gt;/etc/sysconfig/network-scripts/route-eth0&lt;BR /&gt;&lt;BR /&gt;For examples use the ones Manuel provided in his post.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Ross</description>
      <pubDate>Sun, 24 Oct 2004 07:46:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/add-routing-entry-at-system-startup/m-p/3406319#M14517</guid>
      <dc:creator>Ross Minkov</dc:creator>
      <dc:date>2004-10-24T07:46:19Z</dc:date>
    </item>
  </channel>
</rss>

