VirtualBox

source: vbox/trunk/doc/manual/en_US/man_VBoxManage-hostonlyif.xml@ 96918

Last change on this file since 96918 was 96407, checked in by vboxsync, 2 years ago

scm copyright and license note update

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 7.9 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 manpage, user manual, usage: VBoxManage hostonlyif
4-->
5<!--
6 Copyright (C) 2006-2022 Oracle and/or its affiliates.
7
8 This file is part of VirtualBox base platform packages, as
9 available from https://www.virtualbox.org.
10
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License
13 as published by the Free Software Foundation, in version 3 of the
14 License.
15
16 This program is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, see <https://www.gnu.org/licenses>.
23
24 SPDX-License-Identifier: GPL-3.0-only
25-->
26<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
27 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"[
28<!ENTITY % all.entities SYSTEM "all-entities.ent">
29%all.entities;
30]>
31<refentry id="vboxmanage-hostonlyif" lang="en">
32 <refentryinfo>
33 <pubdate>$Date: 2022-08-22 17:43:14 +0000 (Mon, 22 Aug 2022) $</pubdate>
34 <title>VBoxManage hostonlyif</title>
35 </refentryinfo>
36
37 <refmeta>
38 <refentrytitle>VBoxManage-hostonlyif</refentrytitle>
39 <manvolnum>1</manvolnum>
40 </refmeta>
41
42 <refnamediv>
43 <refname>VBoxManage-hostonlyif</refname>
44 <refpurpose>manage host-only network interfaces</refpurpose>
45 <refclass>&product-name;</refclass>
46 </refnamediv>
47
48 <refsynopsisdiv>
49<!-- The 'id' is mandatory and must start with 'synopsis-'. -->
50 <cmdsynopsis id="synopsis-vboxmanage-hostonlyif-ipconfig">
51 <command>VBoxManage hostonlyif ipconfig</command>
52 <arg choice="req"><replaceable>ifname</replaceable></arg>
53 <group>
54 <arg choice="plain">--dhcp</arg>
55 <arg choice="plain">--ip=<replaceable>IPv4-address</replaceable> <arg>--netmask=<replaceable>IPv4-netmask</replaceable></arg></arg>
56 <arg choice="plain">--ipv6=<replaceable>IPv6-address</replaceable> <arg>--netmasklengthv6=<replaceable>length</replaceable></arg></arg>
57 </group>
58 </cmdsynopsis>
59
60 <cmdsynopsis id="synopsis-vboxmanage-hostonlyif-create">
61 <command>VBoxManage hostonlyif create</command>
62 </cmdsynopsis>
63
64 <cmdsynopsis id="synopsis-vboxmanage-hostonlyif-remove">
65 <command>VBoxManage hostonlyif remove</command>
66 <arg choice="req"><replaceable>ifname</replaceable></arg>
67 </cmdsynopsis>
68 </refsynopsisdiv>
69
70 <refsect1>
71 <title>Description</title>
72 <para>
73 The <command>VBoxManage hostonlyif</command> command enables you
74 to change the IP configuration of a host-only network interface.
75 For a description of host-only networking, see
76 <xref linkend="network_hostonly" />. Each host-only network
77 interface is identified by a name and can either use the internal
78 DHCP server or a manual IP configuration, both IPv4 and IPv6.
79 </para>
80 <refsect2 id="vboxmanage-hostonlyif-ipconfig">
81 <title>Configure a Host-Only Interface</title>
82 <remark role="help-copy-synopsis"/>
83 <para>
84 The <command>VBoxManage hostonlyif ipconfig</command> command
85 configures a host-only interface.
86 </para>
87 <variablelist>
88 <varlistentry>
89 <term><replaceable>ifname</replaceable></term>
90 <listitem><para>
91 Specifies the name of the network interface. The name is
92 of the form
93 <literal>vboxnet</literal><replaceable>N</replaceable>
94 where <replaceable>N</replaceable> is the interface
95 instance.
96 </para></listitem>
97 </varlistentry>
98 <varlistentry>
99 <term><option>--dhcp</option></term>
100 <listitem><para>
101 Uses DHCP for the network interface.
102 </para><para>
103 You cannot use this option with the <option>--ip</option>,
104 <option>--ipv6</option>, <option>--netmask</option>, and
105 <option>--netmasklengthv6</option> options.
106 </para></listitem>
107 </varlistentry>
108 <varlistentry>
109 <term><option>--ip=<replaceable>IPv4-address</replaceable></option></term>
110 <listitem><para>
111 Specifies the IPv4 IP address for the network interface.
112 </para><para>
113 You cannot use this option with the
114 <option>--dhcp</option>, <option>--ipv6</option>, and
115 <option>--netmasklengthv6</option> options.
116 </para></listitem>
117 </varlistentry>
118 <varlistentry>
119 <term><option>--netmask=<replaceable>IPv4-netmask</replaceable></option></term>
120 <listitem><para>
121 Specifies the IPv4 netmask of the network interface. The
122 default value is <literal>255.255.255.0</literal>.
123 </para><para>
124 You can use this option only with the
125 <option>--ip</option> option.
126 </para></listitem>
127 </varlistentry>
128 <varlistentry>
129 <term><option>--ipv6=<replaceable>IPv6-address</replaceable></option></term>
130 <listitem><para>
131 Specifies the IPv6 IP address for the network interface.
132 </para><para>
133 You cannot use this option with the
134 <option>--dhcp</option>, <option>--ip</option>, and
135 <option>--netmask</option> options.
136 </para></listitem>
137 </varlistentry>
138 <varlistentry>
139 <term><option>--netmasklengthv6=<replaceable>length</replaceable></option></term>
140 <listitem><para>
141 Specifies the length of the IPv6 network interface. The
142 default value is <literal>64</literal>.
143 </para><para>
144 You can use this option only with the
145 <option>--ipv6</option> option.
146 </para></listitem>
147 </varlistentry>
148 </variablelist>
149 </refsect2>
150 <refsect2 id="vboxmanage-hostonlyif-create">
151 <title>Create a Network Interface on the Host System</title>
152 <remark role="help-copy-synopsis"/>
153 <para>
154 The <command>VBoxManage hostonlyif create</command> command
155 creates a new host-only network interface on the host operating
156 system (OS). The network interface name is of the form
157 <literal>vboxnet</literal><replaceable>N</replaceable> where
158 <replaceable>N</replaceable> is the interface instance. You must
159 run this command before you can attach virtual machines (VMs) to
160 the host-only network.
161 </para>
162 </refsect2>
163 <refsect2 id="vboxmanage-hostonlyif-remove">
164 <title>Remove a Network Interface From the Host System</title>
165 <remark role="help-copy-synopsis"/>
166 <para>
167 The <command>VBoxManage hostonlyif remove</command> command
168 removes the specified host-only network interface from the host
169 OS.
170 </para>
171 <variablelist>
172 <varlistentry>
173 <term><replaceable>ifname</replaceable></term>
174 <listitem><para>
175 Specifies the name of the network interface. The name is
176 of the form
177 <literal>vboxnet</literal><replaceable>N</replaceable>
178 where <replaceable>N</replaceable> is the interface
179 instance.
180 </para></listitem>
181 </varlistentry>
182 </variablelist>
183 </refsect2>
184 </refsect1>
185
186 <refsect1>
187 <title>Examples</title>
188 <remark role="help-scope" condition="GLOBAL" />
189 <para>
190 The following command creates a new host-only network interface.
191 </para>
192<screen>$ VBoxManage hostonlyif create
1930%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
194Interface 'vboxnet2' was successfully created</screen>
195 <para>
196 The following command configures the IPv4 address for the
197 <literal>vboxnet2</literal> host-only network interface.
198 </para>
199<screen>$ VBoxManage hostonlyif ipconfig vboxnet2 --ip 10.0.2.18</screen>
200 </refsect1>
201</refentry>
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette