From owner-freebsd-questions@FreeBSD.ORG Mon Nov 10 03:43:50 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6961A8DC for ; Mon, 10 Nov 2014 03:43:50 +0000 (UTC) Received: from nlpiport18.prodigy.net.mx (nlpiport18.prodigy.net.mx [148.235.52.18]) by mx1.freebsd.org (Postfix) with ESMTP id 3472AE6B for ; Mon, 10 Nov 2014 03:43:49 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.07,350,1413262800"; d="scan'208";a="1023911996" Received: from nlpiport23.prodigy.net.mx ([148.235.52.97]) by nlpiport18.prodigy.net.mx with ESMTP; 09 Nov 2014 21:39:25 -0600 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArkSADEyYFS9qoXp/2dsb2JhbABbgw5UWbgVBpNTghSFMwQCAoEZFwEBAQEBfYQDAQEDAVYoCwshExIPEhgeGYgsAwkLC8YmDYZZAQsBGwSGOogigWgBARwuDBaENQWMBJAPghEBgTSOO4JnhAqEGh0vAQGBDYE8AQEB Received: from dsl-189-170-133-233-dyn.prod-infinitum.com.mx (HELO morena.maps.net) ([189.170.133.233]) by nlpiport23.prodigy.net.mx with SMTP; 09 Nov 2014 21:39:24 -0600 Date: Sun, 9 Nov 2014 20:38:40 -0700 From: Martin Paredes To: freebsd-questions@freebsd.org Subject: Re: Static routing Message-ID: <20141109203840.2949195f@morena.maps.net> In-Reply-To: <545BE713.9090705@gmail.com> References: <545BE713.9090705@gmail.com> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; i386-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Mon, 10 Nov 2014 03:43:50 -0000 El Thu, 06 Nov 2014 19:24:35 -0200 "Dante F. B. Col=F2" escribi=F3: > Hello everyone >=20 > 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. >=20 > Best Regards > Dante F. B. Col=F2 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