Date: Mon, 23 Nov 1998 22:19:28 +1300 (NZDT) From: Andrew McNaughton <andrew@squiz.co.nz> To: Butch Evans <butch@sheltonbbs.com> Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Using 'lp0' as an interface? Message-ID: <Pine.BSF.4.05.9811232156440.25390-100000@aniwa.sky> In-Reply-To: <199811230158300920.01EA6E2B@mail.sheltonbbs.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 23 Nov 1998, Butch Evans 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 > > but it wants to know the other end of the point-to-point connection. > How do I change lp0 to a broadcast interface ( is that what I > want????)? > > My apologies in advance for the wording of this message. I am not > familiar with the correct terminology. If the question makes sense, > but more info is needed, let me know. Perhaps (most likely) there is > an easier/better way to do this. I am open to any and all > suggestions. My entry in /etc/rc.conf looks like ifconfig_lp0="inet 192.168.2.1 192.168.2.2 netmask 0xffffff00 link0" If you want to route a bunch of IP's down the link then set that up in your routing table. At the end connected to the net you want to route the appropriate IP range to the IP of lp0 at the other end of the link. At the other end you need to either alias your IP's onto lp0 or alias them onto lo0 and set up as a gateway to pass stuff between interfaces. For 32 IP's it's probably OK to alias them onto lp0. I used the lp0 interface to set up my laptop from my server as my laptop does not have a CD. the link didn't seem to want to go at all until I used the link0 option. Once it was going all was well for a while, but under heavy use the server's kernel would hang. Generally it went fine for a few hundred MB's worth and then crashed. This was using a vanilla 2.2.5-RELEASE kernel. Problem went away when I got my ethernet link going. Maybe it was just something to do with my hardware, but it's probably a good idea to do a bit of stress testing before using an lp0 link with a production machine at either end. Andrew McNaughton 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?Pine.BSF.4.05.9811232156440.25390-100000>