VirtualBox

Changeset 17991 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Mar 17, 2009 1:06:01 AM (16 years ago)
Author:
vboxsync
Message:

default Dhcp server settings for non-windows platforms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/SettingsConverter.xsl

    r17990 r17991  
    858858            <NetserviceRegistry>
    859859           <DhcpServers>
    860                 <DhcpServer networkName="HostInterfaceNetworking-VirtualBox Host-Only Network Adapter"
     860              <xsl:choose>
     861                <xsl:when test="substring-after(../@version,'-')='windows'">
     862                       <DhcpServer networkName="HostInterfaceNetworking-VirtualBox Host-Only Network Adapter"
    861863                        IPAddress="192.168.56.2" networkMask="255.255.255.0"
    862864                        lowerIP="192.168.56.3" upperIP="192.168.56.255"
    863865                        enabled="1"/>
     866                </xsl:when>
     867                <xsl:otherwise>
     868                       <DhcpServer networkName="HostInterfaceNetworking-vboxnet0"
     869                        IPAddress="192.168.56.2" networkMask="255.255.255.0"
     870                        lowerIP="192.168.56.3" upperIP="192.168.56.255"
     871                        enabled="1"/>
     872                </xsl:otherwise>
     873              </xsl:choose>
    864874           </DhcpServers>
    865875        </NetserviceRegistry>             
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette