diff --git a/AUTHORS.md b/AUTHORS.md index 1c28321b..082abf68 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -22,6 +22,7 @@ Christer Edwards [christer.edwards@gmail.com] - Petru T. Garstea - Sven R. - Tobias Tom +- Stefano Marinelli ### Special thanks Software doesn't happen in a vacuum. Thank you to the following people who may diff --git a/docs/chapters/networking.rst b/docs/chapters/networking.rst index 397a6d43..2addea1b 100644 --- a/docs/chapters/networking.rst +++ b/docs/chapters/networking.rst @@ -109,6 +109,18 @@ To define a default route / gateway for all VNET containers define the value in This config change will apply the defined gateway to any new containers. Existing containers will need to be manually updated. +Virtual Network (VNET) on External Bridge +-------------------------------------- +To create a VNET based container and attach it to an external, already existing bridge, use the `-B` option, an IP/netmask and +external bridge. + +.. code-block:: shell + + bastille create -B azkaban 12.1-RELEASE 192.168.1.50/24 bridge0 + +Bastille will automagically create the interface, attach it to the specified bridge and connect / +disconnect containers as they are started and stopped. +The bridge needs to be created/enabled before creating and starting the jail. Public Network ============== diff --git a/usr/local/share/bastille/create.sh b/usr/local/share/bastille/create.sh index 1c4b04b0..53ef5a21 100644 --- a/usr/local/share/bastille/create.sh +++ b/usr/local/share/bastille/create.sh @@ -43,7 +43,7 @@ usage() { -L | --linux -- This option is intended for testing with Linux jails, this is considered experimental. -T | --thick -- Creates a thick container, they consume more space as they are self contained and independent. -V | --vnet -- Enables VNET, VNET containers are attached to a virtual bridge interface for connectivity. - -B | --bridge -- Enables VNET, VNET containers are attached to a specified, already existing local bridge. + -B | --bridge -- Enables VNET, VNET containers are attached to a specified, already existing external bridge. EOF exit 1