Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
bastille-network(8)	     System Manager's Manual	     bastille-network(8)

NAME
     bastille network -- Add or remove interface(s) from jail(s).

SYNOPSIS
     bastille [-aBMnPVvx] TARGET add INTERFACE [IP]
     bastille [-ax] TARGET remove INTERFACE

DESCRIPTION
     The  bastille  sub-command  can  add or remove interfaces, as well as set a
     VLAN ID for jails. Setting the VLAN ID must be done during the 'add' phase.

     bastille network [-aBMnPVvx] TARGET add INTERFACE [IP]

	     add     Add the INTERFACE to the jail.

	     -a, --auto
		     Auto mode. Start/stop jail(s) if required.

	     -B, --bridge
		     Add a bridge interface.

	     -M, --static-mac
		     Use a static/persistent MAC address (VNET only).

	     -n, --no-ip
		     Create interface without an IP (VNET only).

	     -P, --passthrough
		     Add a raw interface.

	     -V, --vnet
		     Add a physical interface.

	     -v VLANID, --vlan VLANID
		     Assign VLANID to interface (VNET only).

	     -x, --debug
		     Enable debug mode.

	     The IP is only optional when the '-n|--no-ip' is set.

     bastille network [-ax] TARGET remove INTERFACE

	     remove  Remove the specifed INTERFACE from the jail.

	     -a, --auto
		     Auto mode. Start/stop jail(s) if required.

	     -x, --debug
		     Enable debug mode.

EXAMPLES
     Add vtnet0 to myjail:
	     bastille network -aV myjail add vtnet0 DHCP

     Add bridge0 to myjail with a static MAC:
	     bastille network -aBM myjail add bridge0 10.23.23.23/24

     Remove em0 from myjail:
	     bastille network -a myjail remove em0

SEE ALSO
     bastille.conf(5),	 bastille-bootstrap(8),   bastille-clone(8),   bastille-
     cmd(8),   bastille-config(8),   bastille-console(8),   bastille-convert(8),
     bastille-cp(8), bastille-create(8), bastille-destroy(8),  bastille-edit(8),
     bastille-etcupdate(8),  bastille-export(8),  bastille-htop(8), bastille-im-
     port(8), bastille-jcp(8), bastille-limits(8),  bastille-list(8),  bastille-
     migrate(8),    bastille-monitor(8),   bastille-mount(8),	bastille-pkg(8),
     bastille-rcp(8), bastille-rdr(8), bastille-rename(8),  bastille-restart(8),
     bastille-service(8),    bastille-setup(8),   bastille-start(8),   bastille-
     stop(8),	bastille-sysrc(8),    bastille-tags(8),    bastille-template(8),
     bastille-top(8),	bastille-umount(8),   bastille-update(8),   bastille-up-
     grade(8), bastille-verify(8), bastille-zfs(8)

FreeBSD ports 15.quarterly	December 6, 2025	     bastille-network(8)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=bastille-network&sektion=8&manpath=FreeBSD+Ports+15.1.quarterly>

home | help