- Timestamp:
- Mar 13, 2022 8:47:36 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 150468
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/Config.kmk
r94211 r94212 81 81 man_VBoxManage-guestcontrol.xml \ 82 82 man_VBoxManage-metrics.xml \ 83 man_VBoxManage-natnetwork.xml 83 man_VBoxManage-natnetwork.xml \ 84 man_VBoxManage-hostonlyif.xml 84 85 85 86 ## List of user manual XML files. -
trunk/doc/manual/en_US/man_VBoxManage-hostonlyif.xml
r82969 r94212 20 20 <refentry id="vboxmanage-hostonlyif" lang="en"> 21 21 <refentryinfo> 22 <pubdate> September 2019</pubdate>22 <pubdate>$Date$</pubdate> 23 23 <title>VBoxManage hostonlyif</title> 24 24 </refentryinfo> … … 32 32 <refname>VBoxManage-hostonlyif</refname> 33 33 <refpurpose>manage host-only network interfaces</refpurpose> 34 <refclass> Oracle VM VirtualBox</refclass>34 <refclass>&product-name;</refclass> 35 35 </refnamediv> 36 36 -
trunk/doc/manual/en_US/user_VBoxManage.xml
r94211 r94212 1121 1121 <xi:include href="user_man_VBoxManage-natnetwork.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" /> 1122 1122 1123 <sect1 id="vboxmanage-hostonlyif"> 1124 1125 <title>VBoxManage hostonlyif</title> 1126 1127 <para> 1128 The <command>hostonlyif</command> command enables you to change 1129 the IP configuration of a host-only network interface. For a 1130 description of host-only networking, see 1131 <xref linkend="network_hostonly" />. Each host-only interface is 1132 identified by a name and can either use the internal DHCP server 1133 or a manual IP configuration, both IP4 and IP6. 1134 </para> 1135 1136 <para> 1137 The following list summarizes the available subcommands: 1138 </para> 1139 1140 <variablelist> 1141 1142 <varlistentry> 1143 <term> 1144 <computeroutput>ipconfig "<name>"</computeroutput> 1145 </term> 1146 1147 <listitem> 1148 <para> 1149 Configures a host-only interface. 1150 </para> 1151 </listitem> 1152 </varlistentry> 1153 1154 <varlistentry> 1155 <term> 1156 <computeroutput>create</computeroutput> 1157 </term> 1158 1159 <listitem> 1160 <para> 1161 Creates a new vboxnet<N> interface on the host OS. 1162 This command is essential before you can attach VMs to a 1163 host-only network. 1164 </para> 1165 </listitem> 1166 </varlistentry> 1167 1168 <varlistentry> 1169 <term> 1170 <computeroutput>remove vboxnet<N></computeroutput> 1171 </term> 1172 1173 <listitem> 1174 <para> 1175 Removes a vboxnet<N> interface from the host OS. 1176 </para> 1177 </listitem> 1178 </varlistentry> 1179 1180 </variablelist> 1181 1182 </sect1> 1123 <xi:include href="user_man_VBoxManage-hostonlyif.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" /> 1183 1124 1184 1125 <xi:include href="user_man_VBoxManage-hostonlynet.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" /> -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r94211 r94212 242 242 { "signova", USAGE_S_NEWCMD, HELP_CMD_SIGNOVA, handleSignAppliance, VBMG_CMD_F_NO_COM }, 243 243 #ifdef VBOX_WITH_NETFLT 244 { "hostonlyif", USAGE_ HOSTONLYIFS, VBMG_CMD_TODO, handleHostonlyIf, 0 },244 { "hostonlyif", USAGE_S_NEWCMD, HELP_CMD_HOSTONLYIF, handleHostonlyIf, 0 }, 245 245 #endif 246 246 #ifdef VBOX_WITH_VMNET -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h
r94211 r94212 111 111 USAGE_I_CONVERTTORAW, 112 112 USAGE_I_CONVERTHD, 113 USAGE_HOSTONLYIFS,114 113 USAGE_I_DUMPHDINFO, 115 114 USAGE_STORAGEATTACH, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r94211 r94212 641 641 "\n", SEP); 642 642 643 #if defined(VBOX_WITH_NETFLT)644 if (enmCommand == USAGE_HOSTONLYIFS || enmCommand == USAGE_S_ALL)645 {646 RTStrmPrintf(pStrm,647 "%s hostonlyif %s ipconfig <name>\n"648 " [--dhcp |\n"649 " --ip <ipv4> [--netmask <ipv4> (def:255.255.255.0)]|\n"650 " --ipv6 <ipv6> [--netmasklengthv6 <N> (def:64)]]", SEP);651 # if !defined(RT_OS_SOLARIS) || defined(VBOX_ONLY_DOCS)652 RTStrmPrintf(pStrm,653 " |\n"654 " create |\n"655 " remove <name>\n");656 # else657 RTStrmPrintf(pStrm,658 "\n");659 # endif660 RTStrmPrintf(pStrm,661 "\n");662 }663 #endif664 665 643 if (enmCommand == USAGE_USBDEVSOURCE || enmCommand == USAGE_S_ALL) 666 644 { -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHostonly.cpp
r93115 r94212 72 72 73 73 default: 74 return errorGetOpt( USAGE_HOSTONLYIFS,c, &ValueUnion);74 return errorGetOpt(c, &ValueUnion); 75 75 } 76 76 } … … 123 123 case VINF_GETOPT_NOT_OPTION: 124 124 if (pszName) 125 return errorSyntax( USAGE_HOSTONLYIFS,HostOnly::tr("Only one interface name can be specified"));125 return errorSyntax(HostOnly::tr("Only one interface name can be specified")); 126 126 pszName = ValueUnion.psz; 127 127 break; 128 128 129 129 default: 130 return errorGetOpt( USAGE_HOSTONLYIFS,ch, &ValueUnion);130 return errorGetOpt(ch, &ValueUnion); 131 131 } 132 132 if (!pszName) 133 return errorSyntax( USAGE_HOSTONLYIFS,HostOnly::tr("No interface name was specified"));133 return errorSyntax(HostOnly::tr("No interface name was specified")); 134 134 135 135 /* … … 214 214 case VINF_GETOPT_NOT_OPTION: 215 215 if (pszName) 216 return errorSyntax( USAGE_HOSTONLYIFS,HostOnly::tr("Only one interface name can be specified"));216 return errorSyntax(HostOnly::tr("Only one interface name can be specified")); 217 217 pszName = ValueUnion.psz; 218 218 break; 219 219 default: 220 return errorGetOpt( USAGE_HOSTONLYIFS,c, &ValueUnion);220 return errorGetOpt(c, &ValueUnion); 221 221 } 222 222 } … … 224 224 /* parameter sanity check */ 225 225 if (fDhcp && (fNetmasklengthv6 || pszIpv6 || pszIp || pszNetmask)) 226 return errorSyntax(USAGE_HOSTONLYIFS, 227 HostOnly::tr("You can not use --dhcp with static ip configuration parameters: --ip, --netmask, --ipv6 and --netmasklengthv6.")); 226 return errorSyntax(HostOnly::tr("You can not use --dhcp with static ip configuration parameters: --ip, --netmask, --ipv6 and --netmasklengthv6.")); 228 227 if ((pszIp || pszNetmask) && (fNetmasklengthv6 || pszIpv6)) 229 return errorSyntax(USAGE_HOSTONLYIFS, 230 HostOnly::tr("You can not use ipv4 configuration (--ip and --netmask) with ipv6 (--ipv6 and --netmasklengthv6) simultaneously.")); 228 return errorSyntax(HostOnly::tr("You can not use ipv4 configuration (--ip and --netmask) with ipv6 (--ipv6 and --netmasklengthv6) simultaneously.")); 231 229 232 230 ComPtr<IHost> host; … … 261 259 } 262 260 else 263 return errorSyntax( USAGE_HOSTONLYIFS,HostOnly::tr("Neither -dhcp nor -ip nor -ipv6 was specfified"));261 return errorSyntax(HostOnly::tr("Neither -dhcp nor -ip nor -ipv6 was specfified")); 264 262 265 263 return RTEXITCODE_SUCCESS; … … 270 268 { 271 269 if (a->argc < 1) 272 return errorSyntax( USAGE_HOSTONLYIFS,HostOnly::tr("No sub-command specified"));270 return errorSyntax(HostOnly::tr("No sub-command specified")); 273 271 274 272 RTEXITCODE rcExit; 275 273 if (!strcmp(a->argv[0], "ipconfig")) 274 { 275 setCurrentSubcommand(HELP_SCOPE_HOSTONLYIF_IPCONFIG); 276 276 rcExit = handleIpConfig(a); 277 } 277 278 #if defined(VBOX_WITH_NETFLT) && !defined(RT_OS_SOLARIS) 278 279 else if (!strcmp(a->argv[0], "create")) 280 { 281 setCurrentSubcommand(HELP_SCOPE_HOSTONLYIF_CREATE); 279 282 rcExit = handleCreate(a); 283 } 280 284 else if (!strcmp(a->argv[0], "remove")) 285 { 286 setCurrentSubcommand(HELP_SCOPE_HOSTONLYIF_REMOVE); 281 287 rcExit = handleRemove(a); 288 } 282 289 #endif 283 290 else 284 rcExit = errorSyntax( USAGE_HOSTONLYIFS,HostOnly::tr("Unknown sub-command '%s'"), a->argv[0]);291 rcExit = errorSyntax(HostOnly::tr("Unknown sub-command '%s'"), a->argv[0]); 285 292 return rcExit; 286 293 }
Note:
See TracChangeset
for help on using the changeset viewer.