I know it's possible to assign multiple IPs (at least for listening) to a single ethernet device. I _know_ I should read first and ask questions second, but I'm just _so_ lazy, and there hasn't been much traffic anyway. TIA, Bill
On Wed, Jun 27, 2001 at 03:53:19PM -0400, Bill Mills-Curran wrote:
I know it's possible to assign multiple IPs (at least for listening) to a single ethernet device. I _know_ I should read first and ask questions second, but I'm just _so_ lazy, and there hasn't been much traffic anyway.
It's called IP-alias. Enable the option in the kernel, then in addition to the main "eth0" interface, you'll get a bunch of other ones of the form "eth0:0" "eth0:1" etc... if you wanna go ghetto-style, you can just do this: ifconfig eth0:0 xxx.xxx.xxx.xxx and it will bind to the specified address. You can do this for more than just listening. I use it to route messages between two virtual subnets. It's real handy when your ISP gives you three real IPs, and you want to masq the rest without creating multiple physical networks. -Chuck
On Wed, 27 Jun 2001, Chuck Homic wrote:
Date: Wed, 27 Jun 2001 16:04:11 -0400 From: Chuck Homic <chuck@vvisions.com> Reply-To: wlug@mail.wlug.org To: wlug@mail.wlug.org Subject: Re: [Wlug] Multiple IPs on one NIC
On Wed, Jun 27, 2001 at 03:53:19PM -0400, Bill Mills-Curran wrote:
I know it's possible to assign multiple IPs (at least for listening) to a single ethernet device. I _know_ I should read first and ask questions second, but I'm just _so_ lazy, and there hasn't been much traffic anyway.
It's called IP-alias. Enable the option in the kernel, then in addition to the main "eth0" interface, you'll get a bunch of other ones of the form "eth0:0" "eth0:1" etc... if you wanna go ghetto-style, you can just do this:
ifconfig eth0:0 xxx.xxx.xxx.xxx
and it will bind to the specified address.
You can do this for more than just listening. I use it to route messages between two virtual subnets. It's real handy when your ISP gives you three real IPs, and you want to masq the rest without creating multiple physical networks.
-Chuck _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
Chuck, Yes, thanks to your hint, I found it in the network configuration screen of control-panel. I'll get to try it soon. I want to use a redirector and a web server on the same NIC of a single machine, and have them both use the default port (80). So, I'll just add an IP to the setup and tell both squid & apache to listen on a single IP. Thanks, Bill
participants (2)
-
Bill Mills-Curran
-
Chuck Homic