Static routing

Jon Radel jon at radel.com
Thu Nov 6 22:39:33 UTC 2014


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 at radel.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3931 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20141106/84f5e30b/attachment.bin>


More information about the freebsd-questions mailing list