From owner-freebsd-questions@FreeBSD.ORG Sat Dec 8 19:43:38 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07E2216A418 for ; Sat, 8 Dec 2007 19:43:38 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id B472313C447 for ; Sat, 8 Dec 2007 19:43:36 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8) with ESMTP id lB8JhRcJ005539; Sat, 8 Dec 2007 20:43:28 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8/Submit) with ESMTP id lB8II7rF004952; Sat, 8 Dec 2007 19:18:07 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sat, 8 Dec 2007 19:18:07 +0100 (CET) From: Wojciech Puchar To: Dave Curry In-Reply-To: <20071208160939.GA20186@shaftoe.nepharia.org> Message-ID: <20071208191757.K4951@wojtek.tensor.gdynia.pl> References: <2b6bd2cc0712080003t32cfb946p7f8227dce49eee1e@mail.gmail.com> <20071208160939.GA20186@shaftoe.nepharia.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Celso Viana , freebsd-questions@freebsd.org Subject: Re: Manual routing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Dec 2007 19:43:38 -0000 >> >> I have 2 machines (A and B) interconnected by a cable network >> crossover; added the following addresses on the network card: >> >> Machine "A": 192.168.1.1/24 >> Machine "B": 10.10.1.1/24 >> >> Question: How would for these machines to communicate, adding routes manually? no way. select same subnet >> >> Thanks >> >> -- >> Celso Vianna >> BSD User: 51318 >> http://www.bsdcounter.org >> >> 63 8404-8559 >> Palmas/TO >> _______________________________________________ >> 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" > > There shouldn't need to be any changes to the routing tables needed if they are > directly connected. If they do need to be on seperate subnets, then you can add > aliases to each interface so that they see each other as on the same subnet. > > On machine "A": > # ifconfig alias 10.10.1.2 255.255.255.0 (Any number that isn't 0, 1, or 255 ought > to work for the interface address but we'll use 2 for simplicity) > > On machine "B": > # ifconfig alias 192.168.1.2 255.255.255.0 > > Hopefully this helps you. > > -- > David Michael Curry (Dave) > > > () ASCII Ribbon Campaign | Against HTML e-mail > /\ www.asciiribbon.org | Against proprietary extensions > > _______________________________________________ > 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" > >