HEADS UP: multi-IPv4/v6/no-IP jails now in 7-STABLE

Miroslav Lachman 000.fbsd at quip.cz
Wed Apr 22 20:26:04 UTC 2009


Stefan Lambrev wrote:
> Hi,
> 
> Does this allow multiple network interfaces to be used by a single  jail 
> instance?

Yes, I am using it.

root at 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 at 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


More information about the freebsd-jail mailing list