Static routing
"Dante F. B. Colò"
dante01010 at gmail.com
Tue Nov 11 20:04:41 UTC 2014
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ò"<dante01010 at gmail.com> 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to"freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list