<?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: How to bind a range of IP&#8217;s in Debian / Ubuntu Linux</title> <atom:link href="http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Douglas</title><link>http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-59936</link> <dc:creator>Douglas</dc:creator> <pubDate>Sun, 12 Jun 2011 20:40:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-59936</guid> <description>Not sure, but I just tried to add 5000 ipv6 ips to one interface, but got out of memory message after 4091 IPs</description> <content:encoded><![CDATA[<p>Not sure, but I just tried to add 5000 ipv6 ips to one interface, but got out of memory message after 4091 IPs</p> ]]></content:encoded> </item> <item><title>By: conan</title><link>http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-47612</link> <dc:creator>conan</dc:creator> <pubDate>Wed, 02 Jun 2010 17:04:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-47612</guid> <description>it seems that we can bind these ip to loopback, such as lo:1 lo:2 ?</description> <content:encoded><![CDATA[<p>it seems that we can bind these ip to loopback, such as lo:1 lo:2 ?</p> ]]></content:encoded> </item> <item><title>By: Jesse</title><link>http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-43004</link> <dc:creator>Jesse</dc:creator> <pubDate>Tue, 11 Aug 2009 01:15:29 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-43004</guid> <description>Umm... yeah, so why is the netmask 255.255.255.248 when the client IPs are .1-3 and the gateway is at .254? Would you not need a netmask of 255.255.255.0 to keep the client IP&#039;s and gateway in the same subnet??</description> <content:encoded><![CDATA[<p>Umm&#8230; yeah, so why is the netmask 255.255.255.248 when the client IPs are .1-3 and the gateway is at .254? Would you not need a netmask of 255.255.255.0 to keep the client IP&#8217;s and gateway in the same subnet??</p> ]]></content:encoded> </item> <item><title>By: Gagan Brahmi</title><link>http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-41634</link> <dc:creator>Gagan Brahmi</dc:creator> <pubDate>Sat, 16 May 2009 13:26:04 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-41634</guid> <description>Hey Vivek,
I have a related question. Do you know what is the maximum limit of IP addresses a single NIC can have in linux?</description> <content:encoded><![CDATA[<p>Hey Vivek,</p><p>I have a related question. Do you know what is the maximum limit of IP addresses a single NIC can have in linux?</p> ]]></content:encoded> </item> <item><title>By: Joseph Bloe</title><link>http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-39464</link> <dc:creator>Joseph Bloe</dc:creator> <pubDate>Mon, 15 Dec 2008 01:29:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-39464</guid> <description>Actually, what you have described is how to create a virtual interface on a NIC.  A side effect of doing this is an IP alias is also automatically created.  These are not the same things.
As an aside, I have several servers with several aliased IP addresses on the NICs.  There are NO virtual interfaces (e.g. eth0.2, eth1:3, etc).</description> <content:encoded><![CDATA[<p>Actually, what you have described is how to create a virtual interface on a NIC.  A side effect of doing this is an IP alias is also automatically created.  These are not the same things.</p><p>As an aside, I have several servers with several aliased IP addresses on the NICs.  There are NO virtual interfaces (e.g. eth0.2, eth1:3, etc).</p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-39247</link> <dc:creator>vivek</dc:creator> <pubDate>Tue, 18 Nov 2008 07:30:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-39247</guid> <description>Clint,
title is correct and this is the only way to add ranges. Redhat/centos has special file for this purpose. However, you can write a shell script to add IP in ranges. Try something as follows from /etc/rc.local:
&lt;pre&gt;for ip in {1..254}; do echo ifconfig eth0:${ip} 192.168.1.$ip netmask 255.255.255.248 up; done&lt;/pre&gt;
HTH</description> <content:encoded><![CDATA[<p>Clint,</p><p>title is correct and this is the only way to add ranges. Redhat/centos has special file for this purpose. However, you can write a shell script to add IP in ranges. Try something as follows from /etc/rc.local:</p><pre>for ip in {1..254}; do echo ifconfig eth0:${ip} 192.168.1.$ip netmask 255.255.255.248 up; done</pre><p>HTH</p> ]]></content:encoded> </item> <item><title>By: Clint</title><link>http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-39243</link> <dc:creator>Clint</dc:creator> <pubDate>Tue, 18 Nov 2008 04:54:20 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-39243</guid> <description>This posting title is a bit misleading, it doesn&#039;t tell you how to setup a range, it tells you how to setup multiple ip addresses individually.
Is there any way to say bind all ip&#039;s in a 192.168.1.0/24 range, starting with eth0:0 or some such?  Something without having to have 4 lines per ip address.
In RedHat its a special file called ifcfg-eth0-range0 and has some special parameters but allows you to bind hundreds of ip addresses with just a few lines</description> <content:encoded><![CDATA[<p>This posting title is a bit misleading, it doesn&#8217;t tell you how to setup a range, it tells you how to setup multiple ip addresses individually.</p><p>Is there any way to say bind all ip&#8217;s in a 192.168.1.0/24 range, starting with eth0:0 or some such?  Something without having to have 4 lines per ip address.</p><p>In RedHat its a special file called ifcfg-eth0-range0 and has some special parameters but allows you to bind hundreds of ip addresses with just a few lines</p> ]]></content:encoded> </item> <item><title>By: redsonic</title><link>http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-38066</link> <dc:creator>redsonic</dc:creator> <pubDate>Mon, 09 Jun 2008 09:38:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-38066</guid> <description>Hi,
Thank you a lot for this very nice howto.
It was very helpful
:)</description> <content:encoded><![CDATA[<p>Hi,</p><p>Thank you a lot for this very nice howto.</p><p>It was very helpful</p><p>:)</p> ]]></content:encoded> </item> <item><title>By: Darkall</title><link>http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-37377</link> <dc:creator>Darkall</dc:creator> <pubDate>Thu, 31 Jan 2008 04:09:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-37377</guid> <description>Yes, he meant to type iface eth0:1 instead of iface eth0:0 :)  He typo&#039;d</description> <content:encoded><![CDATA[<p>Yes, he meant to type iface eth0:1 instead of iface eth0:0 :)  He typo&#8217;d</p> ]]></content:encoded> </item> <item><title>By: Stephen G</title><link>http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-36236</link> <dc:creator>Stephen G</dc:creator> <pubDate>Wed, 30 May 2007 02:56:32 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/bind-alias-range-of-ip-address-in-linux/#comment-36236</guid> <description>Did you possibly make a type for the 192.168.1.3 assignment?
shows:
iface eth0:0 inet static
address 192.168.1.3
netmask 255.255.255.248
gateway 192.168.1.254
should be (?):
iface eth0:1 inet static
address 192.168.1.3
netmask 255.255.255.248
gateway 192.168.1.254</description> <content:encoded><![CDATA[<p>Did you possibly make a type for the 192.168.1.3 assignment?</p><p>shows:<br
/> iface eth0:0 inet static<br
/> address 192.168.1.3<br
/> netmask 255.255.255.248<br
/> gateway 192.168.1.254</p><p>should be (?):<br
/> iface eth0:1 inet static<br
/> address 192.168.1.3<br
/> netmask 255.255.255.248<br
/> gateway 192.168.1.254</p> ]]></content:encoded> </item> </channel> </rss>
