VirtualBox

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

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

doc: comment fixing

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