Configuring Network Settings
To be accessible from the network, a virtual machine and Container must be assigned a correct IP address. DNS servers must also be configured. The session below illustrates setting the main network parameters for a virtual machine having the name of
MyVM
:
-
To set the IP address of
10.0.186.1
, run this command:
# pctl set MyVM --device-set net0 --ipadd 10.0.186.1
(
net0
is the network card to assign the IP address to.)
-
To set the DNS server IP address of
192.168.1.165
, run this command:
# pctl set MyVM --nameserver 192.168.1.165
To set the aforementioned parameters for a Container, just replace the virtual machine name (
MyVM
) with the corresponding Container ID (e.g. 101). You also need to specify the
-save
flag in the commands above if you wish to save all the parameters to the Container configuration file, while running these commands for a virtual machine will automatically save the changes in its configuration file.
Note
: You can configure the network settings only inside virtual machines that have Parallels Tools installed.
|