<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ItsyourIP.com &#187; Debian</title>
	<atom:link href="http://www.itsyourip.com/category/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itsyourip.com</link>
	<description>Your gateway to Internet</description>
	<lastBuildDate>Sat, 24 Jan 2009 16:48:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<image>
<link>http://www.itsyourip.com</link>
<url>http://www.itsyourip.com/wp-content/mbp-favicon/Internet-Alt.ico</url>
<title>ItsyourIP.com</title>
</image>
		<item>
		<title>Dnsmasq &#8211; Opensource DNS Server Forwarder &amp; DHCP Server</title>
		<link>http://www.itsyourip.com/dns/dnsmasq-opensource-dns-server-forwarder-dhcp-server/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=dnsmasq-opensource-dns-server-forwarder-dhcp-server</link>
		<comments>http://www.itsyourip.com/dns/dnsmasq-opensource-dns-server-forwarder-dhcp-server/#comments</comments>
		<pubDate>Mon, 17 Dec 2007 16:41:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DHCP]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[dns-forwarder]]></category>
		<category><![CDATA[dnsmasq]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[routers]]></category>

		<guid isPermaLink="false">http://www.itsyourip.com/dns/dnsmasq-opensource-dns-server-forwarder-dhcp-server/</guid>
		<description><![CDATA[Dnsmasq is an opensource light-weight,easy to configure and administer DNS and a DHCP Server. Dnsmasq is ideally suitable for smaller networks like Small Office and Home Office networks (SOHO) and branch office networks. Dnsmasq can be run on old PC and is very easy to configure and administer. Dnsmasq is seen to support upto 1000 [...]]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p><!--adsense#content_336_280-->
<p>Dnsmasq is an opensource light-weight,easy to configure and administer DNS and a DHCP Server. Dnsmasq is ideally suitable for smaller networks like Small Office and Home Office networks (SOHO) and branch office networks. Dnsmasq can be run on old PC and is very easy to configure and administer. Dnsmasq is seen to support upto 1000 nodes on a network.</p>
<p><span id="more-129"></span></p>
<p>In essence, Dnsmasq is a Caching nameserver and a DNS forwarder with DHCP enabled on it. Dnsmasq can provide nameservice for local hosts while forwarding the queries for global public resources to a Public DNS Server (like an ISP DNS server). So, small networks which are behind a DSL/ADSL router or even a modem link and share a single internet connection can make the best use of Dnsmasq.</p>
<p>Dnsmasq is included in most of the opensource firewalls and opensource router firmware and in the most common Linux distributions. Some of them include:</p>
<p><strong>Opensource Firewalls:</strong></p>
<p><em>IPCop / Smoothwall / floppyfw / Firebox / LEAF / m0n0wall / PfSense / Endian Firewall / ClarkConnect</em></p>
<p><strong>Opensource router firmware:</strong></p>
<p><em>dd-wrt / openwrt / stock firmware / fli4l</em></p>
<p><strong>Linux Distributions:</strong></p>
<p><em>Debian / Gentoo / Slackware / Suse / Fedora / Coyote Linux</em></p>
<p><strong>*BSD</strong></p>
<p><em>FreeBSD / OpenBSD / NetBSD</em></p>
<p>Some of the highlighting features of Dnsmasq are as follows:</p>
<ul>
<li>Automatically update the Public DNS Servers through PPP or DHCP connections. So, change in a Public DNS server of an ISP that the network is connected to will be picked up by Dnsmasq</li>
<li>Caching Nameserver to reduce network traffic and improve performance</li>
<li>Forwarding to Private DNS servers for specific Domains can be configured</li>
<li>Nameservice for the localhosts using the /etc/hosts file and for DHCP Client hosts</li>
<li>Static and Dynamic client leases on DHCP</li>
<li>Multiple Network and IP Ranges on the DHCP server</li>
<li>BOOTP support for network booting using a secure read-only TFTP server</li>
<li>Simple global configuration using the /etc/dnsmasq.conf file</li>
<li>Supports BOOTP and DHCP Relays</li>
<li>Caches A records for IPv4 and AAAA records for IPv6 and PTR records</li>
<li>Supports IPv4 and IPv6 protocols and even can act as a IPv4 toIPv6 and IPv6 to IPv4 forwarder</li>
<li>Support MX records and SRV records for local machines</li>
<li>Block DNS redirect websites (like some websites which forward to a link for a website that doesn&#39;t exist)</li>
</ul>
<p>Dnsmasq does the name lookup from its /etc/hosts file and hence its all about maintaining a /etc/hosts file on one computer as against multiple PCs on the LAN. If the host is a DHCP client then even if there isn&#39;t an entry for the host in the &quot;hosts&quot; file it can still provide name resolution for the host.</p>
<p>Effectively, all hosts in the LAN will have the dnsmasq server as the nameserver in /etc/resolv.conf file (In windows under network connection) and you dont have to worry about the &quot;hosts&quot; file on the local system.</p>
<p>The /etc/hosts file on the Dnsmasq server can have only the hostname without the domain name (example: host1 instead of host1.mynetwork.com) as the domain name can be appended globally using configurations in the /etc/dnsmasq.conf file.</p>
<p>It&#39;s got .deb and rpm packages for Debian, Fedora and other distributions and also can be built from the Source files. For more information and download, <a href="http://thekelleys.org.uk/dnsmasq/doc.html" target="_blank" title="DNSMASQ - DNS Forwarder DHCP DNS BOOTP server">click here</a> for dnsmasq home page.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.itsyourip.com%2Fdns%2Fdnsmasq-opensource-dns-server-forwarder-dhcp-server%2F';
  addthis_title  = 'Dnsmasq+%26%238211%3B+Opensource+DNS+Server+Forwarder+%26%23038%3B+DHCP+Server';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
</div><!-- KonaBody -->]]></content:encoded>
			<wfw:commentRss>http://www.itsyourip.com/dns/dnsmasq-opensource-dns-server-forwarder-dhcp-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Disable ICMP Redirects in Linux for security (Redhat,Debian,Ubuntu,SuSe tested)</title>
		<link>http://www.itsyourip.com/Security/how-to-disable-icmp-redirects-in-linux-for-security-redhatdebianubuntususe-tested/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-disable-icmp-redirects-in-linux-for-security-redhatdebianubuntususe-tested</link>
		<comments>http://www.itsyourip.com/Security/how-to-disable-icmp-redirects-in-linux-for-security-redhatdebianubuntususe-tested/#comments</comments>
		<pubDate>Thu, 13 Dec 2007 19:38:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ICMP-redirects]]></category>
		<category><![CDATA[suse]]></category>

		<guid isPermaLink="false">http://www.itsyourip.com/Security/how-to-disable-icmp-redirects-in-linux-for-security-redhatdebianubuntususe-tested/</guid>
		<description><![CDATA[ICMP Redirects Send and Accept are by default enabled on most of the linux flavours including Debian, Ubuntu, Redhat Enterprise Linux, Suse Linux. While ICMP Redirects are not the very efficient way to update a hosts Routing table of an optimal route to a target destination, it can cause serious security concerns where a hacker [...]]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p><!--adsense#content_336_280-->
<p>ICMP Redirects Send and Accept are by default enabled on most of the linux flavours including Debian, Ubuntu, Redhat Enterprise Linux, Suse Linux.</p>
<p><span id="more-128"></span></p>
<p>While ICMP Redirects are not the very efficient way to update a hosts Routing table of an optimal route to a target destination, it can cause serious security concerns where a hacker or attacker can send malicously crafted ICMP redirect messages and cause a Denial of Service attack on the network.</p>
<p>If ICMP Redirects are not used in the network for route updates and if the server is not acting as a Router or a Gateway (ICMP Redirect send only) then ICMP Redirect send and accepts should be disabled on the server.</p>
<p>In most of the Linux flavors (tested on Debian,Ubuntu,Redhat Enterprise linux,Suse) ICMP Redirects can be dynamically disabled on the host by using</p>
<p><strong><u><font color="#009900">1. /sbin/sysctl utility which can modify Kernel paramters at runtime</font></u></strong></p>
<p>Login as root and run the following command to disable ICMP Redirects Send and Accept</p>
<p><font color="#009999">Server# /sbin/sysctl -w net.ipv4.conf.all.accept_redirects = 0<br /> Server# /sbin/sysctl -w net.ipv4.conf.all.send_redirects = 0</font></p>
<p><font color="#009999">Server# /sbin/sysctl -w net.ipv6.conf.all.accept_redirects = 0<br /> Server# /sbin/sysctl -w net.ipv6.conf.all.send_redirects = 0</font></p>
<p>The above disables ICMP Redirects globally on the server. However, if you want to disable on a per interface basis then in the above command, instead of using &quot;all&quot; use the inerface name (say &quot;eth0&quot;)</p>
<p><font color="#009999">Server# /sbin/sysctl -w net.ipv4.conf.eth0.accept_redirects = 0<br /> Server# /sbin/sysctl -w net.ipv4.conf.eth0.send_redirects = 0</font></p>
<p><font color="#009999">Server# /sbin/sysctl -w net.ipv6.conf.eth0.accept_redirects = 0<br /> Server# /sbin/sysctl -w net.ipv6.conf.eth0.send_redirects = 0</font></p>
<p>This will disable ICMP Redirects immediatly.</p>
<p>or even a simpler option would be to</p>
<p><strong><u><font color="#009900">2. Passing appropriate value (0 or 1) to the above kernel variables as follows:</font></u></strong></p>
<p><font color="#009999">Server# echo 0 &gt; /proc/sys/net/ipv4/conf/all/accept_redirects [for IPv4]<br /> Server# echo 0 &gt; /proc/sys/net/ipv4/conf/all/send_redirects [for IPv4]</font></p>
<p><font color="#009999">Server# echo 0 &gt; /proc/sys/net/ipv6/conf/all/accept_redirects [for IPv6]<br /> Server# echo 0 &gt; /proc/sys/net/ipv6/conf/all/send_redirects [for IPv6]</font></p>
<p>Again this can be used on a per interface basis as</p>
<p><font color="#009999">Server# echo 0 &gt; /proc/sys/net/ipv4/conf/eth0/accept_redirects [for IPv4]<br /> Server# echo 0 &gt; /proc/sys/net/ipv4/conf/eth0/send_redirects [for IPv4]</font></p>
<p><font color="#009999">Server# echo 0 &gt; /proc/sys/net/ipv6/conf/eth0/accept_redirects [for IPv6]<br /> Server# echo 0 &gt; /proc/sys/net/ipv6/conf/eth0/send_redirects [for IPv6]</font></p>
<p>However, these kernel changes made at runtime will be lost when the system reboots. So it is important that these are applied at boot time as well to ensure that the server is secure.</p>
<p><strong><u><font color="#009900">ICMP REDIRECT DISABLE AT BOOT TIME</font></u></strong></p>
<p>In order to disable ICMP Redirects at boot time,</p>
<p><strong><u><font color="#009900">1. Edit the /etc/sysctl.conf file</font></u></strong></p>
<p>Edit the /etc/sysctl.conf file and add the following lines:</p>
<p><font>In Debian and Ubuntu Linux:</font></p>
<p><font color="#009999">net/ipv4/conf/all/accept_redirects = 0 [for IPv4]<br /> net/ipv4/conf/all/send_redirects = 0 [for IPv4]</font></p>
<p><font color="#009999">net/ipv6/conf/all/accept_redirects = 0 [for IPv6]<br /> net/ipv6/conf/all/send_redirects = 0 [for IPv6]<br /> </font>&nbsp;<br /> Again, if you want to control ICMP redirects on a per interface basis then add the following lines (say for eth0):</p>
<p><font color="#009999">net/ipv4/conf/eth0/accept_redirects = 0 [for IPv4]<br /> net/ipv4/conf/eth0/send_redirects = 0 [for IPv4]</font></p>
<p><font color="#009999">net/ipv6/conf/eth0/accept_redirects = 0 [for IPv6]<br /> net/ipv6/conf/eth0/send_redirects = 0 [for IPv6]</font></p>
<p><font>In Redhat Enterprise Linux and Suse:</font></p>
<p><font color="#009999">net.ipv4.conf.all.accept_redirects = 0 [for IPv4]<br /> net.ipv4.conf.all.send_redirects = 0 [for IPv4]</font></p>
<p><font color="#009999">net.ipv6.conf.all.accept_redirects = 0 [for IPv6]<br /> net.ipv6.conf.all.send_redirects = 0 [for IPv6]</font><br /> &nbsp;<br /> Again, if you want to control ICMP redirects on a per interface basis then add the following lines (say for eth0):</p>
<p><font color="#009999">net.ipv4.conf.eth0.accept_redirects = 0 [for IPv4]<br /> net.ipv4.conf.eth0.send_redirects = 0 [for IPv4]</font></p>
<p><font color="#009999">net.ipv6.conf.eth0.accept_redirects = 0 [for IPv6]<br /> net.ipv6.conf.eth0.send_redirects = 0 [for IPv6]</font></p>
<p>This will allow the /etc/sysctl.conf be read by the /sbin/sysctl utility at the startup.</p>
<p><em>NOTE: In Debian and Ubuntu, this will be overiden by any options set in /etc/network/options as the /etc/init.d/networking script which sets the /etc/network/options file kernel paramters at boot time runs after the /etc/init.d/procps script which sets the kernel variable values specified in /etc/sysctl.conf file. It is advisable to make all change to /etc/sysctl.conf file instead of /etc/network/options file as this is being depreciated.</em></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.itsyourip.com%2FSecurity%2Fhow-to-disable-icmp-redirects-in-linux-for-security-redhatdebianubuntususe-tested%2F';
  addthis_title  = 'How+to+Disable+ICMP+Redirects+in+Linux+for+security+%28Redhat%2CDebian%2CUbuntu%2CSuSe+tested%29';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
</div><!-- KonaBody -->]]></content:encoded>
			<wfw:commentRss>http://www.itsyourip.com/Security/how-to-disable-icmp-redirects-in-linux-for-security-redhatdebianubuntususe-tested/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>HowTo: Add persistent Static Routes in Debian Linux</title>
		<link>http://www.itsyourip.com/networking/add-persistent-static-routes-in-debian-linux/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=add-persistent-static-routes-in-debian-linux</link>
		<comments>http://www.itsyourip.com/networking/add-persistent-static-routes-in-debian-linux/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 22:39:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://www.itsyourip.com/networking/add-persistent-static-routes-in-debian-linux/</guid>
		<description><![CDATA[As in any Network device or a server, there will be times when you need to add a persistent static route to a target destination in your Debain Linux Server. Adding a Static route in Debain Linux can be done using the &#34;route&#34; command and editing the network script files. Advantage of using the route [...]]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p><!--adsense#content_336_280-->
<p>As in any Network device or a server, there will be times when you need to add a persistent static route to a target destination in your Debain Linux Server.</p>
<p>Adding a Static route in Debain Linux can be done using the &quot;route&quot; command and editing the network script files.</p>
<p><span id="more-93"></span></p>
<p>Advantage of using the route command is that it alters the Kernel IP Routing table dynamically and the static route becomes available as soon as it is been added. However, a reboot of the server looses this static route. This is where it becomes essential to add the static route in the network script files.</p>
<p><strong><u>Add a Static route using &quot;route&quot; command:</u></strong></p>
<blockquote><p># route add [-net|-host] &lt;IP/Net&gt; netmask &lt;Mask&gt; gw &lt;Gateway IP&gt; dev &lt;Int&gt;X</p>
<p><strong>Example:</strong></p>
<p># route add -net 10.10.10.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0<br /> # route add -host 10.10.1.1 netmask 255.255.255.0 gw 192.168.1.1 dev eth0</p>
</blockquote>
<p>This adds the route immediatly to the Kernel IP routing table. To confirm the route has been successfully, simply type the &quot;route&quot; command with no arguements:</p>
<blockquote><p>DEBIAN:~# route</p>
<p>Kernel IP routing table<br /> Destination&nbsp;&nbsp;&nbsp;&nbsp; Gateway&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Genmask&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags Metric Ref&nbsp;&nbsp;&nbsp; Use Iface<br /> 192.168.1.254&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 255.255.255.0&nbsp;&nbsp; U&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 eth0<br /> localnet&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 255.255.255.0&nbsp;&nbsp; U&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 eth0<br /> 10.10.10.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 255.255.255.0&nbsp;&nbsp; U&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 eth0<br /> 10.10.1.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 255.255.255.0&nbsp;&nbsp; U&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 eth0<br /> default&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.1.1&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UG&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 eth0</p>
</blockquote>
<p>Use</p>
<blockquote><p><strong># netstat -rn</strong></p>
</blockquote>
<p>to print the Kernel IP Routing table.</p>
<p>To keep the Static Route persistent or you want to add the route entries to the network script files (not using the route command) then all you need to do is to edit the file</p>
<blockquote><p><strong>/etc/network/interfaces</strong></p>
</blockquote>
<p>and the static routes in the following format:</p>
<blockquote><p>up route add [-net|-host] &lt;host/net&gt;/&lt;mask&gt; gw &lt;host/IP&gt; dev &lt;Interface&gt;</p>
<p><strong>Example:</strong></p>
<p>up route add -net 172.20.11.0/16 gw 172.20.10.254 dev eth1</p>
</blockquote>
<p>And the file will like the following:</p>
<blockquote><p>#cat /etc/network/interfaces</p>
</blockquote>
<p>The output should show something like this</p>
<blockquote><p><strong># cat /etc/network/interfaces</strong></p>
<p>The output should show something like this</p>
<p># This file describes the network interfaces available on your system<br /> # and how to activate them. For more information, see interfaces(5).</p>
<p># The loopback network interface<br /> auto lo<br /> iface lo inet loopback</p>
<p># The primary network interface<br /> auto eth0 eth1</p>
<p>iface eth0 inet static<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; address 192.168.1.2<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; netmask 255.255.255.0<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; network 192.168.1.0<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; broadcast 192.168.1.255<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gateway 192.168.1.254<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # dns-* options are implemented by the resolvconf package, if installed<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p>iface eth1 inet static<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; address 172.20.10.1<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; netmask 255.255.255.0<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; broadcast 172.20.10.255<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gateway 172.20.10.254<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # static route<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; up route add -net 172.20.11.0/16 gw 172.20.10.254 dev eth1</p>
</blockquote>
<p>The above has 2 Ethernet interfaces and the static route is added to the interface eth1.</p>
<p>For the change to /etc/network/interface to take effect. please restart the &quot;networking&quot; service as follows:</p>
<blockquote><p><strong>/etc/init.d/networking restart</strong></p>
</blockquote>
<p><em>NOTE: If you added the route already using the &quot;route&quot; then there is no need to restart the networking service because, the next time server is restarted this takes effect.</em></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.itsyourip.com%2Fnetworking%2Fadd-persistent-static-routes-in-debian-linux%2F';
  addthis_title  = 'HowTo%3A+Add+persistent+Static+Routes+in+Debian+Linux';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
</div><!-- KonaBody -->]]></content:encoded>
			<wfw:commentRss>http://www.itsyourip.com/networking/add-persistent-static-routes-in-debian-linux/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
