Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Nov 2014 20:38:40 -0700
From:      Martin Paredes <mapsware@prodigy.net.mx>
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>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
El Thu, 06 Nov 2014 19:24:35 -0200
"Dante F. B. Col=F2" <dante01010@gmail.com> 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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20141109203840.2949195f>