lkml.org 
[lkml]   [2002]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ip addr add
On Tue, May 14, 2002 at 04:50:15PM -0700, Jason A. Ramsey wrote:
> I'm working with a RH7.3 box that has iproute2 installed. I am trying to
> configure a slew of virtual interfaces on the server to accommodate
> ip-based virtual hosting with Apache. I was led to believe that it was
> possible to provision a group of addresses with a single command that
> would cause the host to listen on all those addresses. I would like to
> configure addresses 172.20.0.128-172.20.0.254 on the box without having
> to manually specify every address. Is this possible? Thanks.

If you don't mind adding also IP 172.20.0.255, so that you can use a
netmask 255.255.255.128, you can use the following:

ip route add local 172.20.0.128/25 dev eth0

(replacing "eth0" with your network interface, of course).

--
Juan Cespedes
http://www.cespedes.org/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.050 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site