From owner-freebsd-questions@FreeBSD.ORG Tue Nov 11 20:04:41 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 39F32C2D for ; Tue, 11 Nov 2014 20:04:41 +0000 (UTC) Received: from mail-qa0-x231.google.com (mail-qa0-x231.google.com [IPv6:2607:f8b0:400d:c00::231]) (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 E08A7652 for ; Tue, 11 Nov 2014 20:04:40 +0000 (UTC) Received: by mail-qa0-f49.google.com with SMTP id i13so7386418qae.8 for ; Tue, 11 Nov 2014 12:04:39 -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; bh=VBvDaDqZStMQfojWNDGnKMvH1KOUCUBPB4o9YdOwDns=; b=o07yIfqj6LQdm0meq8EQQfPODUq3zLDv6UYM2V7OR4dmft7DGgizBXOInKOZUn4c3Z AgmJJIBc3RjdOghw3xSe2FWjMNkh7XL4hO0PDGG9UjK/2ihKUDJ5S/pvQpdxPL2QSrha saNvI+5aDIsTrIVWnSV3Fg0IF62fKbY50JuSBg5UU/XudHvrErHSer3BGvmh+sJL7EhM Q3CCgVzWi1sh0mfhWvFHxBbNrrlU9ty3U6TwVy57O6LsnG1XDQ2ixLoO18QFDzdbmRpb t9RIQfrTycG6CSfqb5sZd7UMsGe1hpp9LgIhgGOUPDKtlx93p6AdV7NWNhEwcqY2zyON mSgg== X-Received: by 10.224.151.207 with SMTP id d15mr56046171qaw.4.1415736279758; Tue, 11 Nov 2014 12:04:39 -0800 (PST) Received: from dante.portari.intra ([201.91.194.178]) by mx.google.com with ESMTPSA id g3sm1400820qaf.2.2014.11.11.12.04.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Nov 2014 12:04:39 -0800 (PST) Message-ID: <54626BDD.3070408@gmail.com> Date: Tue, 11 Nov 2014 18:04:45 -0200 From: =?windows-1252?Q?=22Dante_F=2E_B=2E_Col=F2=22?= 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: Martin Paredes , freebsd-questions@freebsd.org Subject: Re: Static routing References: <545BE713.9090705@gmail.com> <20141109203840.2949195f@morena.maps.net> In-Reply-To: <20141109203840.2949195f@morena.maps.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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:04:41 -0000 Hi Martin Thank you for your response. I mean the same subnet on both interfaces , i was just trying to setup static route for destinies *189.92.72.11* and *189.92.72.12* through the *em1* omitting the gateway, that's what we do on Linux ( eg route add -host *189.92.72.11 *dev ethx) but without success here. +-------+ | 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 default 189.92.72.9 UGS 5606 706082933 em0 127/8 127.0.0.1 UGRS 0 63 33200 lo0 127.0.0.1 127.0.0.1 UH 2 542950 33200 lo0 189.92.72.10/29 link#5 UC 2 0 em0 189.92.72.9 f4:0f:1b:20:4b:20 UHLc 1 0 em0 189.92.72.10 00:10:18:9d:31:84 UHLc 0 46 lo0 189.92.72.11 link#5 UHLc 0 2 em0 204.31.112/24 link#2 C 0 0 bge1 204.31.112.24/29 link#2 C 1 0 bge1 204.31.112.26 00:25:64:3c:de:76 UHLc 0 34 lo0 224/4 127.0.0.1 URS 0 0 33200 lo0 On 11/10/14 1:38 AM, Martin Paredes wrote: > El Thu, 06 Nov 2014 19:24:35 -0200 > "Dante F. B. Colò" escribió: >> 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 , > What you mean with "the same range", same subnet? > >> *em1 *appears has absolutely no communication , 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", > ip address does not point to interfaces, interfaces has ip address > > a route always need a network and an interface (you are omitting the > interface) > > >> someone can help >> me or give some tips to fix this ? for many here this is probably a >> nooby question, we also have some firewall Linux boxes that i'm gonna >> migrate to freebsd (also trying on openbsd with the same problem) but >> first i have to solve this. >> >> Best Regards >> Dante F. B. Colò > What I image after reading your mail, is something like this > > +-------+ > | Cisco | > +-----+-+ > |if: x.x.x.x/? > | > |em0: 192.168.0.1/255.255.255.0 > +-+-------+ > | FreeBSD | > +-+-------+ > |em1: 192.168.0.2/255.255.255.0 > | > | > +-----+--+ > | Switch | > +--------+ > > But having 2 ip address of the same subnet, make no sense to me > > you need to put more information (ip addresses) > > The handbook part about statics routes > > https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-routing.html#network-static-routes > _______________________________________________ > 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"