From owner-freebsd-questions Sun Oct 13 17:04:45 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA12567 for questions-outgoing; Sun, 13 Oct 1996 17:04:45 -0700 (PDT) Received: from haywire.DIALix.COM (haywire.DIALix.COM [192.203.228.65]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id RAA12560 for ; Sun, 13 Oct 1996 17:04:38 -0700 (PDT) Received: (from news@localhost) by haywire.DIALix.COM (8.7.6/8.7.3) id IAA05361 for freebsd-questions@freebsd.org; Mon, 14 Oct 1996 08:04:34 +0800 (WST) Received: from GATEWAY by haywire.DIALix.COM with netnews for freebsd-questions@freebsd.org (problems to: usenet@haywire.dialix.com) To: freebsd-questions@freebsd.org Date: Sun, 13 Oct 1996 23:01:44 GMT From: mark@putte.seeware.DIALix.oz.au (Mark Hannon) Message-ID: Organization: Private FreeBSD site Subject: Routing advice Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 | | +-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+