From owner-freebsd-questions Thu Sep 12 13:48:06 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA01769 for questions-outgoing; Thu, 12 Sep 1996 13:48:06 -0700 (PDT) Received: from gatekeeper.fsl.noaa.gov (gatekeeper.fsl.noaa.gov [137.75.131.181]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA01756 for ; Thu, 12 Sep 1996 13:48:02 -0700 (PDT) Received: from emu.fsl.noaa.gov (kelly@emu.fsl.noaa.gov [137.75.60.32]) by gatekeeper.fsl.noaa.gov (8.7.5/8.7.3) with ESMTP id UAA06469; Thu, 12 Sep 1996 20:47:53 GMT Message-Id: <199609122047.UAA06469@gatekeeper.fsl.noaa.gov> Received: by emu.fsl.noaa.gov (1.40.112.4/16.2) id AA253181277; Thu, 12 Sep 1996 14:47:57 -0600 Date: Thu, 12 Sep 1996 14:47:57 -0600 From: Sean Kelly To: tony@rtd.com Cc: questions@freebsd.org In-Reply-To: <199609121730.KAA22493@seagull.rtd.com> (message from Tony Jones on Thu, 12 Sep 1996 10:30:57 -0700 (MST)) Subject: Re: DNS/host config (RFC 1597 ether/PPP) Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >>>>> Tony Jones writes: > Any tips for configuring a FreeBSD system > (hostname/DNS/resolver/PPP) with two interfaces (PPP to ISP/dynamic > address allocation and local Ethernet) ? I've done it, but I really don't have any tips. I sort of just figure out what to do as I go along. Let's see: Turn on the gateway option on the host which has two interfaces so it can route between them. Do gateway=YES in /etc/sysconfig. Also, on that host, set up the /etc/hosts file with two entries since it'll be multihomed: 1.2.3.10 blah.what.ever.com blah 1.2.4.1 blah-gw.what.ever.com blah-gw The ppp interface uses the IP address without the -gw (for `gateway'). The network_interfaces section in /etc/sysconfig then looks like: network_interfaces="lo0 de0 tun0" ifconfig_tun0="inet 1.2.3.10 1.2.3.10 netmask 0xffffff00" ifconfig_de0="inet 1.2.4.1 netmask 0xffffff00" ifconfig_lo0="inet localhost" For all your hosts on the other side of your gateway host (on the 1.2.4 subnet in this example), set defaultrouter in /etc/sysconfig to be the -gw IP address: defaultrouter="1.2.4.1" I'm not running DNS or YP, so I make /etc/host.conf on all my hosts look like hosts bind I don't get my own subdomain---all my hosts are just part of my provider's domain. And I use their nameservers, so make /etc/resolv.conf look like: domain what.ever.com nameserver 1.2.3.4 nameserver 1.2.3.5 > Hosts on the ethernet (RFC 1597 addressing) access the net via > Socks5 running on the FreeBSD system (this part is working well) Oh, these aren't other FreeBSD (or other Unix) hosts! Okay ... the same ideas apply. The default router for those hosts is the IP address of the FreeBSD host's -gw. > I'm running into issues like what should my hostname be (part of the > ISP domain, or part of some local domain), Depends on whether your ISP is willing to allow a local domain and your willingness to run DNS. -- Sean Kelly NOAA Forecast Systems Laboratory kelly@fsl.noaa.gov Boulder Colorado USA http://www-sdd.fsl.noaa.gov/~kelly/