From owner-freebsd-questions@FreeBSD.ORG Thu Sep 12 19:16:46 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 D4FCEB42 for ; Thu, 12 Sep 2013 19:16:46 +0000 (UTC) (envelope-from daniel.nang01@gmail.com) Received: from mail-bk0-x244.google.com (mail-bk0-x244.google.com [IPv6:2a00:1450:4008:c01::244]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6B8082E4D for ; Thu, 12 Sep 2013 19:16:46 +0000 (UTC) Received: by mail-bk0-f68.google.com with SMTP id mx10so21080bkb.11 for ; Thu, 12 Sep 2013 12:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=KE9rIkMKpQyRyH7Sg3nIkeBgY26teP08e6l0eNBbLXs=; b=WaIn7uQABrW6MWY9X9A+0NSzj+bNelhT5FyWnmxxvmRy1rxsQViPjdkxpBzNDZl5w4 9hXYJO5xw+oacQ+9vZNVD/aiZRUg68HlGPC6daJ8XZR3t4IxAmC9lODzNyv+HWgpwAsZ U375IOIk6+gpCUY/K2Vb9Gkq0wQK5lnFktyU+/WDrGrBSIGDo/4pAA0V323pXJSOxYFj dFvv/FqRN+N3hhKH1SKXxGMqHdXt1Rl6lMLYTLZruHXEhggxhTIZWFY6A/JOhOAn+99r PMg59EM4ItyySPfTT3PDcf8hrHO49pN4Ko6kSCHfqZA8773c5PFO7UlJilwJWszJw+gi UDgw== MIME-Version: 1.0 X-Received: by 10.205.97.136 with SMTP id ck8mr14096bkc.59.1379013404699; Thu, 12 Sep 2013 12:16:44 -0700 (PDT) Received: by 10.205.70.135 with HTTP; Thu, 12 Sep 2013 12:16:44 -0700 (PDT) In-Reply-To: References: Date: Fri, 13 Sep 2013 03:16:44 +0800 Message-ID: Subject: Re: Network Question From: Daniel Nang To: Adam Vande More Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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 19:16:46 -0000 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 >