Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!news.adelaide.edu.au!yoyo.aarnet.edu.au!goliath.camtech.com.au!gateway.dircsa.org.au!cleese.apana.org.au!apanix.apana.org.au!hart From: hart@apanix.apana.org.au (Leigh Hart) Newsgroups: comp.os.386bsd.questions Subject: Re: Can FreeBSD act as a SLIP router/gateway for a subnet? Date: 20 Nov 94 13:07:05 GMT Organization: Apanix Public Access Unix, +61 8 373 5485 (5 lines) Lines: 81 Message-ID: <hart.785336825@apanix.apana.org.au> References: <mark.1261.2EC9193C@novell.business.uwo.ca> NNTP-Posting-Host: seldon.apanix.apana.org.au mark@novell.business.uwo.ca writes: > Can FreeBSD act as a SLIP router/gateway for a subnet? Yep - quite nicely too. > I have a situation where there is a small remote LAN wanting tcp/ip access. > > They have ethernet and run tcp/ip. Thats the ok part. > > I can give them a phone number with a SLIP port. I can also assign them a > subnet and route from me onto that SLIP port. > > If they setup a FreeBSD machine at their site, can it act as a router via > SLIP? > > {warning standard tcpip lingo used here} > > They would define the FreeBSD as their default gateway and the box > would route onto the SLIP line. The slip line would have enough > smarts to redial on loss of carrier and pass login info via script. > > Currently they are only interested at 14,400. > > I am not sure of the extent of SLIP/PPP support in freebsd (dialin, > dialout or both) > > The ideal situation would be the com ports look like standard network > interfaces and I simply use net config routing commands. This is quite a standard feature of FreeBSD. A simple configuration on a small machine (I use a 386sx16/6mb/40mb/16550 UARTs) with the IP forwarding turned on in the kernel (options GATEWAY) will do the job. FreeBSD can be setup to automatically redial on loss of carrier, and can also support dialin SLIP and PPP. It's really quite a comprehensive package :-) Some extracts from the man pages: NAME slattach - attach serial lines as network interfaces SYOPNSIS Slattach [-a] [-c] [-e exit-command] [-f] [-h] [-l] [-n] [-r redial-command] [-s baudrate] [-u unit-command] [-z] ttyname DESCRIPTION Slattach is used to assign a tty line to a network interface, and to de- fine the network source and destination addresses. [...snip...] -r redial-command Specifies a command to be invoked within a shell (sh -c re- dial-command) whenever carrier is lost on the line. --------------- NAME pppd - Point to Point Protocol daemon SYNOPSIS pppd [ option ] tty_name speed [ local_IP_address ]:[ remote_IP_address ] DESCRIPTION The Point-to-Point Protocol (PPP) provides a method for transmitting datagrams over serial point-to-point links. If you need more precise details on what to do, mail me at hart@apanix.apana.org.au and I'll be happy to oblige! Cheers Leigh -- | "By the time they had diminished | Leigh Hart | | from 50 to 8, the other dwarves | <hart@eppie.apana.org.au> | | began to suspect 'Hungry' ..." | C/- 195 Gilles Street | | -- Gary Larson, "The Far Side" | Adelaide SA 5006 |