[Solved] static IP 10.0... but I need 192.168....
Posted: 30. Nov 2008, 20:02
Hi, I run VB on a vista and I've installed a Ubuntu 8.10 on it.
The DHCP configuration give me a 10.0 ip.
But my network have a 192.168.0..... ip.
So I can't ping computers....
I need to have a 192.168... IP on my ubuntu.
In the help file, i saw that I could change it :
"
9.11. Configuring the address of a NAT network interface
In NAT mode, the guest network interface is assigned to the IPv4 range 10.0.x.0/24 by default where x corresponds to the instance of the NAT interface +2 of that VM. So x is 2 if there is only once NAT instance active. In that case the guest is assigned to the address 10.0.2.15, the gateway is set to 10.0.2.2 and the name server can be found at 10.0.2.3.
If, for any reason, the NAT network needs to be changed, this can be achieved with the following command:
VBoxManage modifyvm "My VM" -natnet1 "192.168/16"
This command would reserve the network addresses 192.168.0.0 ... 192.168.254.254 for the first NAT network instance of "My VM". The guest IP would be assigned to 192.168.0.15 and the default gateway could be found at 192.168.0.2.
"
But I don't understand How can I enter a command line with the vboxmanage ?
Can someone could help me to have a 192.168..... static IP on my virtual ubuntu.
thanks JC
The DHCP configuration give me a 10.0 ip.
But my network have a 192.168.0..... ip.
So I can't ping computers....
I need to have a 192.168... IP on my ubuntu.
In the help file, i saw that I could change it :
"
9.11. Configuring the address of a NAT network interface
In NAT mode, the guest network interface is assigned to the IPv4 range 10.0.x.0/24 by default where x corresponds to the instance of the NAT interface +2 of that VM. So x is 2 if there is only once NAT instance active. In that case the guest is assigned to the address 10.0.2.15, the gateway is set to 10.0.2.2 and the name server can be found at 10.0.2.3.
If, for any reason, the NAT network needs to be changed, this can be achieved with the following command:
VBoxManage modifyvm "My VM" -natnet1 "192.168/16"
This command would reserve the network addresses 192.168.0.0 ... 192.168.254.254 for the first NAT network instance of "My VM". The guest IP would be assigned to 192.168.0.15 and the default gateway could be found at 192.168.0.2.
"
But I don't understand How can I enter a command line with the vboxmanage ?
Can someone could help me to have a 192.168..... static IP on my virtual ubuntu.
thanks JC