Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Mar 1999 14:50:39 -0500
From:      "George M. Ellenburg (Mailing List Account)" <gmelists@caffeine.sundial.net>
To:        Rick Knebel <rknebel@uplink.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Home Network
Message-ID:  <4.1.19990331141721.03fe85d0@10.0.0.1>
In-Reply-To: <37023E2A.166FB8C6@uplink.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Here's my setup in the hopes it'll help you:

 - CAFFEINE.SUNDIAL.NET
|   FreeBSD 3.0 (soon to be 3.1)
|    ed0: 10.0.0.1/255.255.255.0
|   tun0: 204.181.150.5/255.255.255.255
|
|- MTDEW.CAFFEINE.SUNDIAL.NET
|   Win98
|    Eth: 10.0.0.3/255.255.255.0
|
|- PROZAC.CAFFEINE.SUNDIAL.NET
|   RedHat Linux 5.2
|    eth0: 10.0.0.2/255.255.255.0
|
|- LITHIUM.CAFFEINE.SUNDIAL.NET
|   MacOS System 8
|    Eth: 10.0.0.4/255.255.255.0
|
|- RIDILLIN.CAFFEINE.SUNDIAL.NET
|   Solaris 2.6
|    le0: 10.0.0.5/255.255.255.0
|
 - ZANTAC.CAFFEINE.SUNDIAL.NET
    WinNT 4.0/SP3
     Eth: 10.0.0.6/255.255.255.0

CAFFEINE.SUNDIAL.NET
	I have a dedicated ISDN connection through a Motorola Bitsurfr
Pro TA.  PPP is very straight forward.  I use the NAT capabilities of
PPP with the -alias switch.
	Attached are snippets from my rc.conf and ppp.conf to get you started.

/etc/rc.conf snippets:
### Basic network options: ###
hostname="caffeine.sundial.net"
nisdomainname="NO"
firewall_enable="NO"
firewall_type="UNKNOWN"
firewall_quiet="NO"
natd_enable="NO"
natd_interface="fxp0"
natd_flags=""
tcp_extensions="NO"
network_interfaces="ed0 lo0"
ifconfig_ed0="inet 10.0.0.1 netmask 255.255.255.0 link1"
ifconfig_lo0="inet 127.0.0.1"

### Network routing options: ###
defaultrouter="204.181.150.5"
static_routes=""
gateway_enable="YES"
router_enable="YES"
router="routed"
router_flags="-q -h"
mrouted_enable="NO"
mrouted_flags=""
ipxgateway_enable="NO"
ipxrouted_enable="NO"
ipxrouted_flags=""
arpproxy_all=""
forward_sourceroute="NO"
accept_sourceroute="NO"

/etc/ppp/ppp.conf snippets:
default:
 set log Phase Chat LCP IPCP CCP tun command
 set device /dev/cuaa0
 set speed 115200

dialback:
 set dial "ABORT BUSY TIMEOUT 60 \"\" ATZ OK-AT-OK ATE1Q0 OK
\\dAT@B0=1%A2=2&C0S0=1DT\\T TIMEOUT 90"
 set phone XXXXXXX
 set login "ABORT BUSY TIMEOUT 60 ogin:--ogin: XXXXXXXX word: XXXXXXXX
CONNECT" 
 set authname XXXXXXXX
 set authkey XXXXXXXX
 set timeout 120
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR
 enable dns

ondemand:
 set dial "ABORT BUSY TIMEOUT 60 \"\" ATZ OK-AT-OK ATE1Q0 OK
\\dAT%A2=95S0=0D\\T TIMEOUT 90"
 set phone XXXXXXX
 set login
 set authname XXXXXXXX
 set authkey XXXXXXXX
 set timeout 120
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR
 enable dns

dualchannel:
 set dial "ABORT BUSY ERROR TIMEOUT 60 \"\" AT OK-AT-OK ATE1Q0 OK
\\dAT%A2=95@b0=2S0=0DT\\T TIMEOUT 90"
 set phone XXXXXXX&XXXXXXX
 set login
 set authname XXXXXXXX
 set authkey XXXXXXXX
 set timeout 120
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR
 enable dns

Notes:
	ondemand: is used to get a USR Total Control Chassis to perform dial-back.
	As suggested by Dan O'Connor, I start PPP through:

/etc/start_if.tun0:
#!/bin/sh
ppp -ddial -alias dialback

	For most cases though, you'd probably want to use:
		ppp -auto -alias ondemand

Make sure you also setup /etc/networks.  Here's mine:

/etc/networks:
#	$Id: networks,v 1.2 1998/09/02 01:34:56 brian Exp $
#	@(#)networks	5.1 (Berkeley) 6/30/90
#
# Your Local Networks Database
#
localhost	127
localmask	255.255.255
caffeine	10.0.0
sundial	204.181.150

Don't forget about /etc/hosts, either.

/etc/hosts:
# $Id: hosts,v 1.9 1998/04/16 14:37:19 joerg Exp $
#
# Host Database
# This file should contain the addresses and aliases
# for local hosts that share this file.
# In the presence of the domain name service or NIS, this file may
# not be consulted at all; see /etc/host.conf for the resolution order.
#
#
127.0.0.1		localhost localhost.caffeine.sundial.net caffeine.sundial.net
#
# Imaginary network.
10.0.0.1	caffeine.sundial.net		caffeine
10.0.0.2	prozac.caffeine.sundial.net	prozac
10.0.0.3	mtdew.caffeine.sundial.net	mtdew
10.0.0.4	lithium.caffeine.sundial.net	lithium
10.0.0.5	ridillin.caffeine.sundial.net	ridillin
10.0.0.6	zantac.caffeine.sundial.net	zantac

That should get you started, at least. ;-)

Good luck!

George Ellenburg


At 10:24 AM 3/31/99 , Rick Knebel wrote:
>Hi,
>I am in the very early stages of trying to put together a home network
>and would like to run it bye a few people to see if it is possible
>before I go all out.
>
>I have three computers. One which will be running FreeBSD 3.1. A MAC and
>a Win 98 machine.
>
>Obviously the FreeBSD machine will be the server. I have a static IP
>adress from my ISP and would like to connect to the internet with my 56K
>modem and network the other two to this so they two can get onto the
>internet .I guess via a gateway I supply with the FreeBSD machine.
>
>I know the this could get bogged down if all three machines are trying
>to do something at the same time, but this would be rare.
>
>I know this is very vague and I have alot of reading to do, but is this
>sort of thing possible.
>
>I guess I would need an ethernet card in each machine and a hub??
>
>Thanks
>Rick
>
>
>
>
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-questions" in the body of the message



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.1.19990331141721.03fe85d0>