can jail use 2 NICS?

Boris Samorodov bsam at ipt.ru
Thu Nov 13 13:25:11 PST 2008


On Wed, 12 Nov 2008 13:30:21 +0700 huynhnguyen wrote:

> o   bge0: 192.168.1.2/24
> bge0_alias0: 192.168.1.3/24
> o   bge1: 11.0.0.2/24
> bge1_alias0: 11.0.0.3/24

Sorry, it's not an answer to your original question. But imho you
can't use /24 for an alias address. According to ifconfig(8):
-----
     alias   Establish an additional network address for this interface.  This
             is sometimes useful when changing network numbers, and one wishes
             to accept packets addressed to the old interface.  If the address
             is on the same subnet as the first network address for this
             interface, a non-conflicting netmask must be given.  Usually
             0xffffffff is most appropriate.
-----

As I understand the mask /32 should be used here.


WBR
-- 
bsam


More information about the freebsd-jail mailing list