Date: Mon, 23 Nov 1998 09:07:48 GMT From: 310@ovb.ch (Oliver von Bueren) To: freebsd-isp@FreeBSD.ORG Subject: Re: Using 'lp0' as an interface? Message-ID: <365920d2.1781341774@mail.ovb.ch> In-Reply-To: <199811230158300920.01EA6E2B@mail.sheltonbbs.com> References: <Pine.GSU.4.05.9811221245040.11448-100000@www.ainet.com> <199811230158300920.01EA6E2B@mail.sheltonbbs.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 23 Nov 1998 01:58:30 -0600, you wrote: >I have another (likely dumb) question. I have a customer that has co-located his FreeBSD box at my site. I want to assign him a block of IP numbers which is a subnet that is different from my LAN. I have configured the routing so that that block of IP numbers is sent through his ethernet port. The question I have is this: Can I use the lp0 interface for these numbers? ( I am not sure how to word what I want to do here, but I hope this makes sense). If so, how do I set up the lp0 interface? I have tried using > ifconfig lp0 inet x.x.x.x netmask 255.255.255.224 I think what you want to do is to assign his box a subnet, but I thing you should do this on the loopback interface lo0 not the lp0. So you have to connect this box to you local network with a NIC, say ed0 and assign one IP address of your network to this interface. Route, as you suggested, the other subnet to this address. No comes the next part, assign the other subnet addresses as alias addresses to the loopback interface of this box. As I last did this, I had to use one line per address, something like: ifconfig lo0 alias 192.168.17.1 netmask 0xffffffff ifconfig lo0 alias 192.168.17.2 netmask 0xffffffff [...] This should do the trick. I've seen a document describing this in more depth somewhere on the www.apache.org site in the context of creating a web server with many ip-virtual-hosts. BTW: The above aliasing can be done in the rc.conf in FreeBSD 2.2.7. BTW: If it may look odd at the first sight, the netmask 0xffffffff is correct. For a description on IP aliasing look at http://www.cypher.net/~black/ipalias.html, a link from the FreeBSD Docs page on www.freebsd.org. Hope this help. Cheers, Oliver To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?365920d2.1781341774>
