Configuring Virtual Machines and Containers in Host-Routed ModeYou can configure the following parameters of network adapters that operate in the host-routed mode:
Setting IP addresses
The session below how to set IP addresses for the
# pctl set MyVM --device-set net0 --ipadd 10.0.186.100/24 # pctl set MyVM --device-set net0 --ipadd 1fe80::20c:29ff:fe01:fb07 # pctl set 101 --ipadd 10.0.186.101/24 --save # pctl set 101 --ipadd fe80::20c:29ff:fe01:fb08 --save
Setting DNS server addresses
To set a DNS server for the
# pctl set MyVM --device-set net0 --nameserver 192.168.1.165 # pctl set 101 --nameserver 192.168.1.165 --save Setting DNS search domains
To set a DNS search domain for the
# pctl set MyVM --device-set net0 --searchdomain 192.168.10.10 # pctl set 101 --searchdomain 192.168.10.10 --save Notes : 1. You can configure the network settings only of virtual machines that have Parallels Tools installed. 2. Network adapters operating in the routed mode must have at least one static IP address assigned.
3. To assign network masks to Containers operating in the
4. Containers can have only one network adapter operating in the host-routed mode. This adapter is automatically created when you create a virtual machine. Switching network adapters to the host-routed mode By default, a virtual adapter in any newly created virtual machine starts operating in connected to the virtual network mode (see the Connecting Virtual Machines to Virtual Networks for details). To change the current network mode to host-routed, you can run the following command: # pctl set VM_Name --device-set Net_ID --type routed For example, to set the net0 adapter in the MyVM virtual machine to operate in the host-routed mode, use this command: # pctl set MyVM --device-set net0 --type routed Configure net0 (+) dev='vme417795ba.0' type=routed mac=001C424BD617 card=e1000 state=disconnected
The VM has been successfully configured. |
||||
|