From owner-freebsd-questions@FreeBSD.ORG Thu Sep 12 21:00:47 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D4BAE8E8 for ; Thu, 12 Sep 2013 21:00:47 +0000 (UTC) (envelope-from genie@geniechka.ru) Received: from s1.loshmanov.ru (s1.loshmanov.ru [188.40.115.203]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 92B202723 for ; Thu, 12 Sep 2013 21:00:47 +0000 (UTC) Received: from geniepc2011 (0894461339.static.corbina.ru [95.31.5.144]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by s1.loshmanov.ru (Postfix) with ESMTPSA id 5D3C7DF2CC3; Fri, 13 Sep 2013 00:54:18 +0400 (MSK) Message-ID: <4A153F286DBA437B8096FC7F8FCF582D@geniepc2011> From: "Eugene" To: "Daniel Nang" References: In-Reply-To: Subject: Re: Network Question Date: Fri, 13 Sep 2013 00:54:15 +0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Sep 2013 21:00:47 -0000 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 > _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"