Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Oct 1996 23:01:44 GMT
From:      mark@putte.seeware.DIALix.oz.au (Mark Hannon)
To:        freebsd-questions@freebsd.org
Subject:   Routing advice
Message-ID:  <Dz8LAw.LrF.L.doorway@seeware.DIALix.oz.au>

next in thread | raw e-mail | index | archive | help
Hi,

I have two freebsd boxes connected together like thus:-

		doorway			putte
	--dialup--   --ed0-----------ed0--
	             10.0.0.5      10.0.0.1

I use doorway as my news & mail server as well as an
internet router.  In the later capacity I have been
using the ppp+Aliasing software.

My problem is that I don't really know how to setup
my routing on 'putte'.  At the moment I have:

network_interfaces="ed0 lo0"
ifconfig_ed0="inet 10.0.0.1  netmask 255.255.255.0"
ifconfig_lo0="inet localhost"
static_routes=""
defaultrouter=NO
router=routed
routerflags=-q

This works OK for normal usage but when I connect to
the internet I need to run:
	route add default 10.0.0.5
to get out, and then:
	route delete default 10.0.0.5
on disconnection.

Alternatively, I have had defaultroute=10.0.0.5 but then some
X11 applications take 90 seconds to start (they seem to be
waiting on some network info).

Other files:

/etc/resolv.conf

	# Use default domain name of cware
	domain	seeware.DIALix.oz.au

	# First we try DIALix's nameserver

	nameserver 192.203.228.98

	# Then we try the main EPA server...
	# Note that only one server is listed as bind will
	# not support lots of them.

	nameserver 146.11.8.1
	nameserver 146.11.32.2
	#nameserver 130.100.128.25
	#nameserver 134.138.199.101

/etc/host.conf

	# host.conf,v 1.2 1993/11/07 01:02:57 wollman Exp
	# Try the /etc/hosts file first
	hosts
	# Default is to use the nameserver first
	bind
	# If that doesn't work, then try the /etc/hosts file
	#hosts
	# If you have YP/NIS configured, uncomment the next line
	# nis

If anybody has a suggestion I'd be grateful,

Regards/mark





-- 
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
| Mark Hannon,| FreeBSD, Free Unix for your PC | mark@seeware.DIALix.oz.au|
| Melbourne,  | PGP key available by fingering | epamha@epa.ericsson.se   |
| Australia   | seeware@melbourne.DIALix.oz.au |                          |
+-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Dz8LAw.LrF.L.doorway>