Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!news.sol.net!newspump.sol.net!uniserve!n2van.istar!van.istar!ott.istar!istar.net!winternet.com!nntp.primenet.com!news.mathworks.com!newsfeed.internetmci.com!usenet.eel.ufl.edu!arclight.uoregon.edu!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail From: brian@awfulhak.demon.co.uk (Brian Somers) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: How do I keep Ethernet IP from overriding Dialup IP on a gateway machine! Date: 8 Jun 1996 12:46:03 +0100 Organization: Coverform Ltd. Lines: 34 Message-ID: <4pbp5r$dv@anorak.coverform.lan> References: <4p9vcr$44u@uhura.phoenix.net> <4pahsk$dar@uhura.phoenix.net> NNTP-Posting-Host: anorak.coverform.lan X-NNTP-Posting-Host: awfulhak.demon.co.uk X-Newsreader: TIN [version 1.2 PL2] Paul Flores (pflores@alpha1.phoenix.net) wrote: : Keith Veseleny (vccubed@phoenix.net) wrote: : : I have setup a FreeBSD Gateway machine to connect 4 machines to the : : net. My dedicated IP assigned by my provider is 199.3.234.19. My : : Subnet ips are 207.43.0.144 thru .159 [stuff deleted] : : network_interfaces="ed0 cuaa1 lo0 tun0" : : ifconfig_tun0="inet 199.3.234.19 netmask 255.255.255.0" : : ifconfig_ed0="inet 207.43.0.149 netmask 255.255.255.240" : : ifconfig_lo0="inet localhost" : Assuming you are using the user-ppp, ijppp, I don't think you need (or : want) to asign an IP address to your tun device. : use your ppp.conf file in /etc/ppp to do the ip assignments for PPP. you : might be suprised at how well it works. Yep, specifically, in /etc/ppp/ppp.conf you need the following lines: set ifaddr 199.3.234.19 a.b.c.d add 0 0 a.b.c.d where a.b.c.d is your provider - check your man page, you're allowed to use a special '/' notation to relax how specific his or your IP numbers are. you probably want to 'disable lqr' and 'deny lqr' as well, but if you've had it working, you'll know whether that's necessary. -- Brian <brian@awfulhak.demon.co.uk> Don't _EVER_ lose your sense of humour....