From owner-freebsd-questions@FreeBSD.ORG Tue Nov 11 20:17:33 2014 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C2E0FE0 for ; Tue, 11 Nov 2014 20:17:33 +0000 (UTC) Received: from mail-qa0-x22b.google.com (mail-qa0-x22b.google.com [IPv6:2607:f8b0:400d:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 842697BB for ; Tue, 11 Nov 2014 20:17:33 +0000 (UTC) Received: by mail-qa0-f43.google.com with SMTP id j7so7497944qaq.2 for ; Tue, 11 Nov 2014 12:17:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=y/7bbCTlXNNrCUIK7LD3x9kXIgq4ba1QhVVAzBdDIQY=; b=v1ZWTs7YJM4R2fMuWK4l6Gb1z/xKR8EFNH3PkG4cDSn3mcCns/teQ8E1apQcbND+kO TPVg2GGVAS2tmYyKqfbIE1GdCVdbSqCTKBsJZguYWkww7T7E5UspGGPoDxPxe3NUtOKj RyVDspWjtW9wJWQDNGeobfrVoHD815e2SizFhCI9XkZp3rBBmUfpx7oU2d1JIcOopUt6 7+LCETzwgVy5WqMqd4dsxztYUWX/oMCIwFZMQHZmzb9XpVjVmdN1ZhuGkmGgcoGRxcwb FDftcbpK6DJSiSgfN8bKDdJE8kb0T3N2yh9LQMcudwIN8BBY/zxmKAn2hnAcp3Ec6iJM eBaQ== X-Received: by 10.224.69.202 with SMTP id a10mr55516407qaj.62.1415737052679; Tue, 11 Nov 2014 12:17:32 -0800 (PST) Received: from dante.portari.intra ([201.91.194.178]) by mx.google.com with ESMTPSA id z32sm19096618qgd.40.2014.11.11.12.17.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Nov 2014 12:17:31 -0800 (PST) Message-ID: <54626EE3.2060308@gmail.com> Date: Tue, 11 Nov 2014 18:17:39 -0200 From: =?UTF-8?B?IkRhbnRlIEYuIEIuIENvbMOyIg==?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Jon Radel , freeBSD Subject: Re: Static routing References: <545BE713.9090705@gmail.com> <545BEA8A.9070607@radel.com> In-Reply-To: <545BEA8A.9070607@radel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2014 20:17:33 -0000 Hello Jon I don't have so much experience with bridges, i'm not asking you to tell how to setup , i''ll take a look at freebsd bridge related docs and something other stuff, but could you give me a brief of how would it work here ? . Thank you for your response. Regards +-------+ | Cisco | +-----+-+ |if: 189.92.72.0/29 | |em0: 189.92.72.10/255.255.255.248 +-+-------+ | FreeBSD | +-+-------+ |em1: 189.92.72.11/255.255.255.248 | | +-----+--+ | Switch | +-----------------+ +--------+ | MAIL | |---------------+-----------------+ bnx0: 189.72.92.12/255.255.255.248 On 11/6/14 7:39 PM, Jon Radel wrote: > On 11/6/14, 4:24 PM, "Dante F. B. Colò" wrote: >> Hello everyone >> >> I'm trying to setup some static routes on a freebsd box for some >> public addresses , the machine has two ethernet cards *em0 *and *em1 >> ***, *em0* is attached to a Cisco internet router and *em1* is >> connected to a switch, both interfaces have public addresses of the >> same range , *em1 *appears has absolutely no communication > It would be helpful if you provided the specific IP addresses you're > talking about, complete with the masks, and specific commands you > enter, or conf file lines you add or modify. For starters, when you > talk about "both interfaces have public addresses of the same range" > that's not a precise enough description for me to know if you mean two > addresses on the same subnet or two addresses, each in different > subnets (though they may be adjacent or part of the same larger > network). If you do, in fact, mean two addresses in the same network, > then your IP topology is broken if you think you can do layer 3 > routing between them, and the very first thing you'll need to do is > come up with a legal addressing scheme. (Or consider layer 2 > bridging, which has other design implications of its own but might > work better for you....) > > >> , i took a look at the static routes and there is a route for the >> subnet that it goes to *em0* , i'm trying to add a static route for >> the ip address pointing to the***em1 *without pass gateway using >> *-iface* parameter but always returns "Network unreachble", > Something is confused, so it would be better to give us the output > you're looking at rather than your interpretation of that output. > > Not to say that somebody else may not be able to figure out precisely > what's going on based on this description, but I'm much more likely to > spot what's going wrong with specific information: actual configs; > actual output. > > --Jon Radel > jon@radel.com >