From owner-freebsd-questions@FreeBSD.ORG Sun Sep 15 01:57:13 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B69B33AB for ; Sun, 15 Sep 2013 01:57:13 +0000 (UTC) (envelope-from noc@hdk5.net) Received: from moku60.aloha50.net (moku60.aloha50.net [66.180.132.237]) by mx1.freebsd.org (Postfix) with ESMTP id 57F9D2763 for ; Sun, 15 Sep 2013 01:57:12 +0000 (UTC) Received: from mohawk7.intra.net (unknown [66.180.149.18]) by moku60.aloha50.net (Postfix) with ESMTP id D3BC31703E; Sat, 14 Sep 2013 15:57:05 -1000 (HST) Message-ID: <523513F1.8040900@hdk5.net> Date: Sat, 14 Sep 2013 15:57:05 -1000 From: Al Plant User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071128 FreeBSD/i386 SeaMonkey/1.1.7 MIME-Version: 1.0 To: Daniel Nang Subject: Re: Network Question References: <4A153F286DBA437B8096FC7F8FCF582D@geniepc2011> <5233593D.8000202@hdk5.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: noc@hdk5.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Sep 2013 01:57:13 -0000 Daniel Nang wrote: > Aloha, > > Sounds like an interesting setup. Do you have one machine acting as a > gateway? > > > On Sat, Sep 14, 2013 at 2:28 AM, Al Plant > wrote: > > Eugene wrote: > > Hi Daniel, > > The easiest way is to check the LAN Config (or similar) page of > the router. They usually allow one to specify fixed IP and > hostname for the DHCP clients based on the MAC addresses. > > Best wishes > Eugene > > -----Original Message----- From: Daniel Nang > Sent: Thursday, September 12, 2013 11:16 PM > To: Adam Vande More > Cc: freebsd-questions@freebsd.org > > Subject: Re: Network Question > > That was easier than I thought. My initial approach already looked > something like > this, except that for the ip address I always put the machine's > name as in: > > machine1# ssh user@machine2.example.com > > > which results in > > ssh: Could not resolve hostname machine2.example.com > : hostname nor servname > provided, or not known > > I think the problem here lies with the /etc/hosts file where > machine1 and > machine2 have > to be registered respectively. The thing here is that the ip > isn't static > which makes > this approach somewhat difficult to realize. > > Got it. > > Thanks. > > > > On Fri, Sep 13, 2013 at 2:51 AM, Adam Vande More > >wrote: > > On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang > >__wrote: > > Hello, > > I have two computers, both running FreeBSD, accessing the > web via DHCP from the router. The setup looks like this: > > > Internet > | > | > | > machine1.example.com --- > Router --- machine.2.example.com > > - DHCP - > - DHCP - > > > Both computers can access the internet with no problems. > So far so good... > > My question is, if I can simultaneously have the > computers access > the net as in the given picture and also let them > communicate with > each other e.g. via ssh? > > > > machine1# ssh `ip of machine2` > > > -- > Adam Vande More > > _________________________________________________ > ######### > > > Aloha, > > For many years I have 8 Freebsd boxes behind a PF firewall on a > static labeled lan. Only one public address feeds the lan. All the > boxes can work the internet and can ssh. > > I found that easier than dhcp. > > :) > > ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 > + http://hawaiidakine.com + http://freebsdinfo.org + > + http://aloha50.net - Supporting - FreeBSD 7.2 - 8.0 - 9* + > < email: noc@hdk5.net > > "All that's really worth doing is what we do for others."- Lewis Carrol > > Aloha, I have a gateway separate on an old box running a Freesco floppy disk. I have many old boxes here and they still work. A couple can run Up to FreeBSD 10. No gui needed as they are for firewall and servers and the like. ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 7.2 - 8.0 - 9* + < email: noc@hdk5.net > "All that's really worth doing is what we do for others."- Lewis Carrol