VirtualBox

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

Last change on this file since 91099 was 82969, checked in by vboxsync, 5 years ago

Copyright year updates - manual ones.

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