Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Apr 2009 22:25:59 +0200
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        Stefan Lambrev <stefan.lambrev@moneybookers.com>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: HEADS UP: multi-IPv4/v6/no-IP jails now in 7-STABLE
Message-ID:  <49EF7D57.9010307@quip.cz>
In-Reply-To: <C967B08C-6674-49EA-8ACD-172B3A2B830C@moneybookers.com>
References:  <20090207174104.Y93725@maildrop.int.zabbadoz.net> <C967B08C-6674-49EA-8ACD-172B3A2B830C@moneybookers.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Stefan Lambrev wrote:
> Hi,
> 
> Does this allow multiple network interfaces to be used by a single  jail 
> instance?

Yes, I am using it.

root@cage ~/# jls -v
    JID  Hostname                      Path
         Name                          State
         CPUSetID
         IP Address(es)
     25  costa.example.com             /vol0/jail/costa
                                       ALIVE
         2
         xxx.yy.105.31
         192.168.222.57

root@costa //# ifconfig
nfe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
         options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
         ether 00:1a:24:bd:e2:0f
         inet 192.168.222.57 netmask 0xffffffff broadcast 192.168.222.57
         media: Ethernet autoselect (100baseTX <full-duplex,flag0,flag1>)
         status: active
[...]
bge1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
         options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
         ether 00:1a:24:bd:e2:0e
         inet xxx.yy.105.31 netmask 0xffffffff broadcast xxx.yy.105.31
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active


Above command (ifconfig) is inside jail, manually stripped other 
interfaces. (xxx.yy replaces real IP address)

bge1 is used for internet connection and nfe0 for access services in LAN

Miroslav Lachman



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49EF7D57.9010307>