Host networking for dummies without a GUI
Posted: 16. Feb 2009, 09:55
Please bear with me, I need an example, and the manual doesn't provide the CLI equivalent of the GUI commands.
I currently have a Vbox setup for nat, i.e.:
VBoxManage modifyvm "station1" -nic1 nat
It works just fine. Unfortunately, I need a full IP on the intranet at the office--natting just won't do anymore. Hence:
VBoxManage modifyvm *station1* -nic1 hostif
The command is successful, and within Win XP (in the Virtual machine) I reset my ethernet card to a real ip within the office (10.x.y.z, with netmask 255.0.0.0, gateway 10.0.0.1). Yet I cannot ping the gateway, see anything on the network, do anything that seems to relate to the "host side".
When I look at the station1.xml file, I see the following line:
<Network>
<Adapter slot="0" enabled="true" MACAddress="000027c610d7" cable="true" speed="1000000" type="Am79C973"/>
<NAT/>
</Adapter>
Could someone please provide an example of what this line would change to if I enabled hostif? I suspect somewhere in the xml there would be a pointer to the actual host interface, yet each time I try it I simply get this:
(same as above, but chane NAT line to <HostInterface/>)
I'm betting that there's something else that's either supposed to enter into that, or that some extra XML flag is posted elsewhere in the xml, since the manual mentions that the GUI has a pulldown menu for the actual host interface you wish to attach to.
Please help!!!
I currently have a Vbox setup for nat, i.e.:
VBoxManage modifyvm "station1" -nic1 nat
It works just fine. Unfortunately, I need a full IP on the intranet at the office--natting just won't do anymore. Hence:
VBoxManage modifyvm *station1* -nic1 hostif
The command is successful, and within Win XP (in the Virtual machine) I reset my ethernet card to a real ip within the office (10.x.y.z, with netmask 255.0.0.0, gateway 10.0.0.1). Yet I cannot ping the gateway, see anything on the network, do anything that seems to relate to the "host side".
When I look at the station1.xml file, I see the following line:
<Network>
<Adapter slot="0" enabled="true" MACAddress="000027c610d7" cable="true" speed="1000000" type="Am79C973"/>
<NAT/>
</Adapter>
Could someone please provide an example of what this line would change to if I enabled hostif? I suspect somewhere in the xml there would be a pointer to the actual host interface, yet each time I try it I simply get this:
(same as above, but chane NAT line to <HostInterface/>)
I'm betting that there's something else that's either supposed to enter into that, or that some extra XML flag is posted elsewhere in the xml, since the manual mentions that the GUI has a pulldown menu for the actual host interface you wish to attach to.
Please help!!!