From owner-freebsd-questions@FreeBSD.ORG Thu Sep 12 19:37:58 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 E58766B2 for ; Thu, 12 Sep 2013 19:37:58 +0000 (UTC) (envelope-from daniel.nang01@gmail.com) Received: from mail-bk0-x241.google.com (mail-bk0-x241.google.com [IPv6:2a00:1450:4008:c01::241]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6A0222115 for ; Thu, 12 Sep 2013 19:37:58 +0000 (UTC) Received: by mail-bk0-f65.google.com with SMTP id r7so23734bkg.4 for ; Thu, 12 Sep 2013 12:37:56 -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=ZcTS6RrBisDJqEpUCeCJ7R5TJRzYtc7h2EZoG5juTGI=; b=AiA4rv1EAbf9syoagjW86FHrd1wnk0gGlq1xgh0OwYRD/poHSIQ2XRYAcXaLIyz6iz 5o/tWhdPsXJ42Fnw2vwTZjiz0jiUC0E71Dom51SbSCbYFDraRAm7nTudNlhrH/y0ipNF TiOiqbCk8vDwyZlPxuhUemJ9/az0cs5u6dHT3qI03JOShKSPGOZJeLZ4iYEB2uKyu8j3 3kUPCM0kkInVsT8aWGx+bpXS8qts0G1COuWyUMGK9DFO+nLtJF9Cp0k+ISNySsFylqlS GHiMwXe8VFnbX0dgL6x7RXvq937QUASzbDLRxOKGRl+ZoOn7jtAsmNFT8FTwXNgmYTOH v2qg== MIME-Version: 1.0 X-Received: by 10.205.65.78 with SMTP id xl14mr7913436bkb.1.1379014676616; Thu, 12 Sep 2013 12:37:56 -0700 (PDT) Received: by 10.205.70.135 with HTTP; Thu, 12 Sep 2013 12:37:56 -0700 (PDT) In-Reply-To: References: Date: Fri, 13 Sep 2013 03:37:56 +0800 Message-ID: Subject: Re: Network Question From: Daniel Nang To: Kurt Buff 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:37:59 -0000 Just read your mail. I will have to take some time, to look into what you have said, as I have not yet used the concepts that you spoke about. Another solution would be to install a new network card into both computers and assign static ip addresses to them, but I do not want to do that. Daniel On Fri, Sep 13, 2013 at 3:06 AM, Kurt Buff wrote: > On Thu, Sep 12, 2013 at 11: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` > > > There's the rub. How do you determine the IP address of the other machine? > > DHCP, unless configured with reservations, doesn't guarantee IP > addresses to remain the with machines that request addresses. > > So, there are two ways to solve this problem: > > o- As I mention above, use reservations in DHCP to tie IP addresses to > MAC addresses - this is a fairly manual process, and doesn't scale > beyond a few machines.. > > o- Use a DNS/DHCP solution whereby DNS is dynamically updated with an > IP address by the DHCP server when a machine leases an IP address to a > machine. This requires some work up front, but then takes care of > itself, so scales fairly well. > > Kurt > _______________________________________________ > 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" >