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 shows how to set IP addresses for the
# prlctl set MyVM --device-set net0 --ipadd 10.0.186.100/24 # prlctl set MyVM --device-set net0 --ipadd 1fe80::20c:29ff:fe01:fb07 # prlctl set 101 --ipadd 10.0.186.101/24 # prlctl set 101 --ipadd fe80::20c:29ff:fe01:fb08
Setting DNS server addresses
To set a DNS server for the
# prlctl set MyVM --device-set net0 --nameserver 192.168.1.165 # prlctl set 101 --nameserver 192.168.1.165 Setting DNS search domains
To set a DNS search domain for the
# prlctl set MyVM --device-set net0 --searchdomain 192.168.10.10 # prlctl set 101 --searchdomain 192.168.10.10
Notes
:
Switching virtual machine adapters to host-routed mode By default, a virtual adapter in any newly created virtual machine starts operating in connected to the bridged 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:
# prlctl set
For example, to set the
# prlctl set MyVM --device-set net0 --type routed |
||||
|