Messages in this thread | | | Date | Thu, 16 May 2002 10:53:55 +0200 | From | Juan Cespedes <> | Subject | Re: 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/
| |