<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Configure Static Routes In Debian or Red Hat Enterprise Linux</title> <atom:link href="http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Yoni</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-176111</link> <dc:creator>Yoni</dc:creator> <pubDate>Sun, 27 Nov 2011 09:38:04 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-176111</guid> <description>Thx for the tutorial</description> <content:encoded><![CDATA[<p>Thx for the tutorial</p> ]]></content:encoded> </item> <item><title>By: Barry</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-172655</link> <dc:creator>Barry</dc:creator> <pubDate>Fri, 22 Jul 2011 07:14:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-172655</guid> <description>Got answer from: http://www.cyberciti.biz/faq/redhat-centos-fedora-linux-static-routing/
Thanks nixCraft</description> <content:encoded><![CDATA[<p>Got answer from: <a
href="http://www.cyberciti.biz/faq/redhat-centos-fedora-linux-static-routing/" rel="nofollow">http://www.cyberciti.biz/faq/redhat-centos-fedora-linux-static-routing/</a></p><p>Thanks nixCraft</p> ]]></content:encoded> </item> <item><title>By: Barry</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-172649</link> <dc:creator>Barry</dc:creator> <pubDate>Fri, 22 Jul 2011 03:12:06 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-172649</guid> <description>Hi,
My server ABC has got two nics connected to different subnets. How do I add static route to send traffic to particular interface?
For example, I have 5 another servers with ip-address 10.216.98.XX and all have their own gateway because they all are at different locations. Now I want to ass route which sends/receive all traffic from these servers to eth0 on my ABC server.
Thanks in advance.</description> <content:encoded><![CDATA[<p>Hi,<br
/> My server ABC has got two nics connected to different subnets. How do I add static route to send traffic to particular interface?</p><p>For example, I have 5 another servers with ip-address 10.216.98.XX and all have their own gateway because they all are at different locations. Now I want to ass route which sends/receive all traffic from these servers to eth0 on my ABC server.</p><p>Thanks in advance.</p> ]]></content:encoded> </item> <item><title>By: Anthony</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-170311</link> <dc:creator>Anthony</dc:creator> <pubDate>Thu, 24 Mar 2011 23:15:35 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-170311</guid> <description>does 224.0.0.0/4 via IP dev eth0  in the route-eth0 script route all mutlicast addresses? For example I need to multicast on 224 and 235 addresses ...if not..how would I enable it in static routing in Red Hat Linux?</description> <content:encoded><![CDATA[<p>does 224.0.0.0/4 via IP dev eth0  in the route-eth0 script route all mutlicast addresses? For example I need to multicast on 224 and 235 addresses &#8230;if not..how would I enable it in static routing in Red Hat Linux?</p> ]]></content:encoded> </item> <item><title>By: Zarg</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-170309</link> <dc:creator>Zarg</dc:creator> <pubDate>Thu, 24 Mar 2011 21:14:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-170309</guid> <description>I done it in a way. I have a crontab every minute do something like
ping -c1 my_adress.dyndns.org &#124; grep from &#124; cut -d&#039; &#039; -f 4 &#124; cut -d&#039;:&#039; -f1&#039; &gt; /tmp/new_ip
diff /tmp/old_ip /tmp/new_IP &amp;&amp; route del default gw 192.168.1.254 eth0 route add -net `echo /tmp/new_ip` -mask 255.255.255.0 &amp;&amp;cat /tmp/old_ip &gt; /tmp/old_ip &amp;&amp; route add default gw 192.168.1.254 eth0 route add -net `echo /tmp/new_ip` -mask 255.255.255.0</description> <content:encoded><![CDATA[<p>I done it in a way. I have a crontab every minute do something like<br
/> ping -c1 my_adress.dyndns.org | grep from | cut -d&#8217; &#8216; -f 4 | cut -d&#8217;:&#8217; -f1&#8242; &gt; /tmp/new_ip<br
/> diff /tmp/old_ip /tmp/new_IP &amp;&amp; route del default gw 192.168.1.254 eth0 route add -net `echo /tmp/new_ip` -mask 255.255.255.0 &amp;&amp;cat /tmp/old_ip &gt; /tmp/old_ip &amp;&amp; route add default gw 192.168.1.254 eth0 route add -net `echo /tmp/new_ip` -mask 255.255.255.0</p> ]]></content:encoded> </item> <item><title>By: rockysyas</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-170298</link> <dc:creator>rockysyas</dc:creator> <pubDate>Thu, 24 Mar 2011 03:40:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-170298</guid> <description>If you read /etc/init.d/network (rhel),you can find this:
# Add non interface-specific static-routes.
if [ -f /etc/sysconfig/static-routes ]; then
grep &quot;^any&quot; /etc/sysconfig/static-routes &#124; while read ignore args ; do
/sbin/route add -$args
done
fi
so, /etc/sysconfig/static-routes is your best chose!
vi /etc/sysconfig/static-routes
any -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.254
any -host 192.168.100.1  gw  192.168.1.254
Thanks!</description> <content:encoded><![CDATA[<p>If you read /etc/init.d/network (rhel),you can find this:<br
/> # Add non interface-specific static-routes.<br
/> if [ -f /etc/sysconfig/static-routes ]; then<br
/> grep &#8220;^any&#8221; /etc/sysconfig/static-routes | while read ignore args ; do<br
/> /sbin/route add -$args<br
/> done<br
/> fi<br
/> so, /etc/sysconfig/static-routes is your best chose!<br
/> vi /etc/sysconfig/static-routes<br
/> any -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.254<br
/> any -host 192.168.100.1  gw  192.168.1.254<br
/> Thanks!</p> ]]></content:encoded> </item> <item><title>By: Stephen</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-168762</link> <dc:creator>Stephen</dc:creator> <pubDate>Tue, 15 Feb 2011 08:25:52 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-168762</guid> <description>Can&#039;t be done. Otherwise your host would have to resolve the dyndns name each time it routed a packet !!
Find out what range your ISP is allocating the dyndns host within and add a route for that.</description> <content:encoded><![CDATA[<p>Can&#8217;t be done. Otherwise your host would have to resolve the dyndns name each time it routed a packet !!</p><p>Find out what range your ISP is allocating the dyndns host within and add a route for that.</p> ]]></content:encoded> </item> <item><title>By: Zarg</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-164798</link> <dc:creator>Zarg</dc:creator> <pubDate>Mon, 20 Dec 2010 17:44:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-164798</guid> <description>Hi
I would like to know how I can add permanently a dyndns host in my routing table(I have two network interfaces...). I have some hosts with fixed ip addresses in my /etc/sysconfig/network-scripts/route-eth0 that I have added with
1.2.3.4/32 via 192.168.1.1
but if I can not ad in this file
myhost.dyndns.org/32 via 192.168.1.1
Thank you</description> <content:encoded><![CDATA[<p>Hi<br
/> I would like to know how I can add permanently a dyndns host in my routing table(I have two network interfaces&#8230;). I have some hosts with fixed ip addresses in my /etc/sysconfig/network-scripts/route-eth0 that I have added with<br
/> 1.2.3.4/32 via 192.168.1.1<br
/> but if I can not ad in this file<br
/> myhost.dyndns.org/32 via 192.168.1.1</p><p>Thank you</p> ]]></content:encoded> </item> <item><title>By: wiqar.hussain</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-161449</link> <dc:creator>wiqar.hussain</dc:creator> <pubDate>Mon, 22 Nov 2010 00:53:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-161449</guid> <description>i like the redhat and i trying to learn  the redhat window so pleas help me in this ok thanks</description> <content:encoded><![CDATA[<p>i like the redhat and i trying to learn  the redhat window so pleas help me in this ok thanks</p> ]]></content:encoded> </item> <item><title>By: Joel</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-159261</link> <dc:creator>Joel</dc:creator> <pubDate>Tue, 31 Aug 2010 14:56:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-159261</guid> <description>How command can I use to list the multicast coming out of my redhat server?</description> <content:encoded><![CDATA[<p>How command can I use to list the multicast coming out of my redhat server?</p> ]]></content:encoded> </item> <item><title>By: john</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-154586</link> <dc:creator>john</dc:creator> <pubDate>Mon, 29 Mar 2010 14:04:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-154586</guid> <description>hey guys ,,
I have a problem, I&#039;m trying to configure a Debian board (Olimex) to do the routing but all my trys failed even though it seems my network is connected well
I can ping from my pc the both interfaces which the board are connected to but the problem I can&#039;t ping any IP outside ?!?!?!
anyone can help and let me know what missing ?!!!!!</description> <content:encoded><![CDATA[<p>hey guys ,,<br
/> I have a problem, I&#8217;m trying to configure a Debian board (Olimex) to do the routing but all my trys failed even though it seems my network is connected well</p><p>I can ping from my pc the both interfaces which the board are connected to but the problem I can&#8217;t ping any IP outside ?!?!?!</p><p>anyone can help and let me know what missing ?!!!!!</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-153080</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Fri, 22 Jan 2010 18:20:22 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-153080</guid> <description>@Stan: create /etc/ppp/ip-up.d/route-traffic and add your route command. For example, I router 10.0.0.0/8 via ppp0 so my file is as follows:
&lt;pre&gt;#!/bin/sh
route add -net 10.0.0.0/8 dev ppp0
Save and close the file. And set permissions:
chmod +x /etc/ppp/ip-up.d/route-traffic&lt;/pre&gt;
HTH</description> <content:encoded><![CDATA[<p>@Stan: create /etc/ppp/ip-up.d/route-traffic and add your route command. For example, I router 10.0.0.0/8 via ppp0 so my file is as follows:</p><pre>#!/bin/sh
route add -net 10.0.0.0/8 dev ppp0
Save and close the file. And set permissions:
chmod +x /etc/ppp/ip-up.d/route-traffic</pre><p>HTH</p> ]]></content:encoded> </item> <item><title>By: Stan</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-153078</link> <dc:creator>Stan</dc:creator> <pubDate>Fri, 22 Jan 2010 18:00:05 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-153078</guid> <description>I have a pptp connection and have added the following in /etc/sysconfig/network-scripts/route-ppp0
ADDRESS0=172.16.0.0
GATEWAY0=192.168.10.1
NETMASK0=255.255.0.0
ADDRESS1=192.168.0.251
GATEWAY1=192.168.10.50
NETMASK1=255.255.255.0
when the tunnel is established subnet 172.16.0.0/16 is reachable but not 192.168.0.251 as it tries to go out the def gw
192.168.0.251 become reachable if i manually add by (but looses route if pptp drops) :
route add 192.168.0.251 gw 192.168.10.1
I must be messing something up here....anyone can shed light pls ? :)</description> <content:encoded><![CDATA[<p>I have a pptp connection and have added the following in /etc/sysconfig/network-scripts/route-ppp0</p><p>ADDRESS0=172.16.0.0<br
/> GATEWAY0=192.168.10.1<br
/> NETMASK0=255.255.0.0<br
/> ADDRESS1=192.168.0.251<br
/> GATEWAY1=192.168.10.50<br
/> NETMASK1=255.255.255.0</p><p>when the tunnel is established subnet 172.16.0.0/16 is reachable but not 192.168.0.251 as it tries to go out the def gw</p><p>192.168.0.251 become reachable if i manually add by (but looses route if pptp drops) :</p><p>route add 192.168.0.251 gw 192.168.10.1</p><p>I must be messing something up here&#8230;.anyone can shed light pls ? :)</p> ]]></content:encoded> </item> <item><title>By: Soundar</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-152523</link> <dc:creator>Soundar</dc:creator> <pubDate>Mon, 28 Dec 2009 07:01:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-152523</guid> <description>thanks, bydefualt route-eth0  file will not be there, need to be created</description> <content:encoded><![CDATA[<p>thanks, bydefualt route-eth0  file will not be there, need to be created</p> ]]></content:encoded> </item> <item><title>By: Catalinux</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-150574</link> <dc:creator>Catalinux</dc:creator> <pubDate>Tue, 08 Sep 2009 21:19:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-150574</guid> <description>Thank&#039;s, is very pretty info.</description> <content:encoded><![CDATA[<p>Thank&#8217;s, is very pretty info.</p> ]]></content:encoded> </item> <item><title>By: Alan</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-146562</link> <dc:creator>Alan</dc:creator> <pubDate>Mon, 05 Jan 2009 05:51:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-146562</guid> <description>Hi everyone,
Can you help me with this, how to configure Red Hat Linux to work with a load balancer router?  I&#039;m not familiar with the Red Hat Linux.  Thanks.</description> <content:encoded><![CDATA[<p>Hi everyone,</p><p>Can you help me with this, how to configure Red Hat Linux to work with a load balancer router?  I&#8217;m not familiar with the Red Hat Linux.  Thanks.</p> ]]></content:encoded> </item> <item><title>By: sql</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-145029</link> <dc:creator>sql</dc:creator> <pubDate>Wed, 17 Sep 2008 10:17:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-145029</guid> <description>thank you!</description> <content:encoded><![CDATA[<p>thank you!</p> ]]></content:encoded> </item> <item><title>By: Stuart Gathman</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-144845</link> <dc:creator>Stuart Gathman</dc:creator> <pubDate>Wed, 03 Sep 2008 18:21:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-144845</guid> <description>&lt;blockquote cite=&quot;75069&quot;&gt;
If i have to add static route in /etc/sysconfig/network-scripts/static-route file then how to do that.
&lt;/blockquote&gt;
/etc/sysconfig/network-scripts/static-routes
&lt;code&gt;
eth0 host 1.2.3.4
eth0 net 192.168.2.0 netmask 255.255.255.0 gw 192.168.9.6
&lt;/code&gt;
The first line provide a host route to an interface for proxy arp.
The second line provides a VPN gateway.</description> <content:encoded><![CDATA[<blockquote
cite="75069"><p> If i have to add static route in /etc/sysconfig/network-scripts/static-route file then how to do that.</p></blockquote><p>/etc/sysconfig/network-scripts/static-routes</p><p><code><br
/> eth0 host 1.2.3.4<br
/> eth0 net 192.168.2.0 netmask 255.255.255.0 gw 192.168.9.6<br
/> </code><br
/> The first line provide a host route to an interface for proxy arp.<br
/> The second line provides a VPN gateway.</p> ]]></content:encoded> </item> <item><title>By: Proglot</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-143908</link> <dc:creator>Proglot</dc:creator> <pubDate>Wed, 28 May 2008 09:08:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-143908</guid> <description>by the way to see all you routes use
&lt;strong&gt;ip route list table all&lt;/strong&gt;
command
for more information issue
&lt;strong&gt;ip route help&lt;/strong&gt;
for example if you have a 2 internet lines and want to do load balance route then do not set default gateway in configuration, but add in one of the route files (let&#039;s say /etc/sysconfig/network-scripts/route-ppp1) something like:
&lt;code&gt;default dev ppp0 nexthop ppp1&lt;/code&gt;</description> <content:encoded><![CDATA[<p>by the way to see all you routes use<br
/> <strong>ip route list table all</strong><br
/> command<br
/> for more information issue<br
/> <strong>ip route help</strong><br
/> for example if you have a 2 internet lines and want to do load balance route then do not set default gateway in configuration, but add in one of the route files (let&#8217;s say /etc/sysconfig/network-scripts/route-ppp1) something like:<br
/> <code>default dev ppp0 nexthop ppp1</code></p> ]]></content:encoded> </item> <item><title>By: Proglot</title><link>http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-143907</link> <dc:creator>Proglot</dc:creator> <pubDate>Wed, 28 May 2008 08:44:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html#comment-143907</guid> <description>Actually script recognize 2 formats of route- files. The older one is just continued command line pararameters for &#039;ip route add&#039; command and new one use
&lt;code&gt;
ADDRESS[0-9]
GATEWAY[0-9]
NETMASK[0-9]
&lt;/code&gt;
triples
The simplest way is to figure out what &#039;ip&#039; command will do a trick and put it without &#039;ip route add&#039; into /etc/sysconfig/network-scripts/route-eth0
i.e.
224.0.0.0/4 dev eth1
or
to multicast 224.0.0.0/4 dev eth1
192.168.55.0/24 via 192.168.1.254</description> <content:encoded><![CDATA[<p>Actually script recognize 2 formats of route- files. The older one is just continued command line pararameters for &#8216;ip route add&#8217; command and new one use<br
/> <code><br
/> ADDRESS[0-9]<br
/> GATEWAY[0-9]<br
/> NETMASK[0-9]<br
/> </code><br
/> triples<br
/> The simplest way is to figure out what &#8216;ip&#8217; command will do a trick and put it without &#8216;ip route add&#8217; into /etc/sysconfig/network-scripts/route-eth0<br
/> i.e.<br
/> 224.0.0.0/4 dev eth1<br
/> or<br
/> to multicast 224.0.0.0/4 dev eth1</p><p>192.168.55.0/24 via 192.168.1.254</p> ]]></content:encoded> </item> </channel> </rss>
