<?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>x83.net &#187; /etc/network/interfaces/debian</title>
	<atom:link href="http://www.x83.net/tag/etcnetworkinterfacesdebian/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.x83.net</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 13:53:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Script to generate /etc/network/interfaces file on Ubuntu/Debian</title>
		<link>http://www.x83.net/script-to-generate-etcnetworkinterfaces-file-on-ubuntudebian/</link>
		<comments>http://www.x83.net/script-to-generate-etcnetworkinterfaces-file-on-ubuntudebian/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 18:37:04 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[/etc/network/interfaces/debian]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[generate]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=386</guid>
		<description><![CDATA[#!/bin/bash ifile=/etc/network/interfaces echo -n &#8220;Insert IPstart:&#8221; read ipstart echo -n &#8220;Insert IPend:&#8221; read ipend echo -n &#8220;Insert Gateway:&#8221; read gw #echo -n &#8220;Insert Subnet: &#8221; #read subnet echo -n &#8220;Insert Netmask: &#8221; read net echo -n &#8220;Insert aliast to start: &#8221; read ali firstIp=`echo &#8220;${ipstart%.*}&#8221;` lastIpStart=`echo &#8220;${ipstart##*.}&#8221;` lastIpEnd=`echo &#8220;${ipend##*.}&#8221;` dif=`echo $(($lastIpEnd-$lastIpStart))` ip=$lastIpStart for ((i=$ali;i>$ifile echo [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>#!/bin/bash<br />
ifile=/etc/network/interfaces<br />
echo -n &#8220;Insert IPstart:&#8221;<br />
read ipstart<br />
echo -n &#8220;Insert IPend:&#8221;<br />
read ipend<br />
echo -n &#8220;Insert Gateway:&#8221;<br />
read gw<br />
#echo -n &#8220;Insert Subnet: &#8221;<br />
#read subnet<br />
echo -n &#8220;Insert Netmask: &#8221;<br />
read net<br />
echo -n &#8220;Insert aliast to start: &#8221;<br />
read ali</p>
<p>firstIp=`echo &#8220;${ipstart%.*}&#8221;`<br />
lastIpStart=`echo &#8220;${ipstart##*.}&#8221;`<br />
lastIpEnd=`echo &#8220;${ipend##*.}&#8221;`<br />
dif=`echo $(($lastIpEnd-$lastIpStart))`</p>
<p>ip=$lastIpStart<br />
for ((i=$ali;i<=$ali+$dif;i++)){<br />
echo "auto eth0:$i" >>$ifile<br />
echo &#8220;iface eth0:$i inet static&#8221; >>$ifile<br />
echo &#8220;address $firstIp.$ip&#8221; >>$ifile<br />
echo &#8220;network $subnet&#8221; >>$ifile<br />
echo &#8220;netmask $net&#8221; >>$ifile<br />
echo &#8220;gateway $gw&#8221; >> $ifile<br />
echo &#8221; &#8221; >> $ifile<br />
let ip++<br />
}
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/script-to-generate-etcnetworkinterfaces-file-on-ubuntudebian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

