AI-IPs

From pressy's brainbackup
Jump to: navigation, search

Solaris AI profile with multiple IPs

If you want more than one IP configured after an AI installation you will need the following xml configuration in your AI profile:


  <service version="1" type="service" name="network/install">
    <instance enabled="true" name="default">
      <property_group type="application" name="install_ipv4_interface">
        <propval type="net_address_v4" name="static_address" value="10.11.12.13/24"/>
        <propval type="astring" name="name" value="net0/pd0"/>
        <propval type="astring" name="address_type" value="static"/>
        <propval type="net_address_v4" name="default_route" value="10.11.12.1"/>
      </property_group>
      <property_group type="ipv4_interface" name="install_ipv4_interface_0">
        <propval type="net_address_v4" name="static_address" value="10.11.13.14/24"/>
        <propval type="astring" name="name" value="net1/st0"/>
        <propval type="astring" name="address_type" value="static"/>
      </property_group>
      <property_group type="ipv4_interface" name="install_ipv4_interface_1">
        <propval type="net_address_v4" name="static_address" value="10.11.14.15/24"/>
        <propval type="astring" name="name" value="net2/bkp0"/>
        <propval type="astring" name="address_type" value="static"/>
      </property_group>
    </instance>
  </service>

Update the profile:

# installadm update-profile -p server.profile -n sol-ai -f /ai/config/server.profile