在Mac上使用Parallels 11配置仅限网络主机的DHCP服务器段

时间:2016-01-04 20:20:34

标签: parallels

从Parallels 10版本升级到Parallels 11后,该公司已从首选项窗格中删除了“网络选项卡”,并将我的仅限主机的网络DHCP服务器段更改为10.32.xx,这打破了我现有的所有静态主机IP分配。根据{{​​3}},配置DHCP现在是一个“专业”功能,这意味着我们需要支付更多费用或更新我现有的所有静态IP分配(至20 + vms)。

如何更新DHCP服务器IP段以匹配升级前状态?

1 个答案:

答案 0 :(得分:1)

作为手动解决方法,您可以修改Parallels用于分配网络适配器段的 network.desktop.xml 文件。此解决方法的信用额转到this post

  1. 关闭/退出Parallels
  2. 使用提升的权限打开XML文件,在我的情况下,我在终端中配置了sublime,所以我跑了:

    sudo sublime /Library/Preferences/Parallels/network.desktop.xml

  3. 修改位于" Host-Only"下的适配器设置。在这个例子中,我将我的网段设置为10.211.55.x

    <VirtualNetwork id="1" dyn_lists="VZVirtualNetwork 0"> <Uuid>{your-guid-id-here}</Uuid> <NetworkID>Host-Only</NetworkID> <Description>Host Only Networking</Description> <Enabled>1</Enabled> <NetworkType>1</NetworkType> <BoundCardMac></BoundCardMac> <VLANTag>65535</VLANTag> <HostOnlyNetwork dyn_lists=""> <HostIPAddress>10.211.55.2</HostIPAddress> <DhcpIPAddress>10.211.55.1</DhcpIPAddress> <IPNetMask>255.255.255.0</IPNetMask> <HostIP6Address>FDB2:2C26:F4E4:1::1</HostIP6Address> <DhcpIP6Address>FDB2:2C26:F4E4:1::</DhcpIP6Address> <IP6NetMask>FFFF:FFFF:FFFF:FFFF::</IP6NetMask> <DNSUseEtcHosts>1</DNSUseEtcHosts> <RegVmNameInEtcHosts>1</RegVmNameInEtcHosts> <EnableDNS>1</EnableDNS> <ParallelsAdapter dyn_lists=""> <Enabled>1</Enabled> <Name>Parallels Host-Only #1</Name> <PrlAdapterIndex>1</PrlAdapterIndex> <HiddenAdapter>1</HiddenAdapter> </ParallelsAdapter> <DHCPServer dyn_lists=""> <Enabled>1</Enabled> <IPScopeStart>10.211.55.1</IPScopeStart> <IPScopeEnd>10.211.55.254</IPScopeEnd> <IPReservations dyn_lists="IPReservation 0"/> </DHCPServer> <DHCPv6Server dyn_lists=""> <Enabled>1</Enabled> <IPScopeStart>FDB2:2C26:F4E4:1::</IPScopeStart> <IPScopeEnd>FDB2:2C26:F4E4:1:FFFF:FFFF:FFFF:FFFF</IPScopeEnd> <IPReservations dyn_lists="IPReservation 0"/> </DHCPv6Server> <NATServer dyn_lists=""> <Enabled>0</Enabled> <PortForwarding dyn_lists=""> <TCP dyn_lists="ForwardEntry 0"/> <UDP dyn_lists="ForwardEntry 0"/> </PortForwarding> <IdleConnectionTimeoutSecs>7440</IdleConnectionTimeoutSecs> <UseIPFilter>0</UseIPFilter> <ProvideIPv6Route>-1</ProvideIPv6Route> <NatDNSFilterIPv6Replies>-1</NatDNSFilterIPv6Replies> <UseInterface></UseInterface> </NATServer> </HostOnlyNetwork> </VirtualNetwork>