SUSE Support

Here When You Need Us

Setting up autoyast to ask for static network configuration settings during installation

This document (3769690) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 10
SUSE Linux Enterprise Desktop 11
SUSE Linux Enterprise Desktop 10

 

Situation

An autoyast configuration file has been set up to ask for static network configuration details during autoyast installation. However, after the installation, the configuration is always set to DHCP and not all of the network configuration details supplied during installation are effective once the installation is completed.
 

Resolution

This behaviour is typically caused by the use of incorrect syntax for the value in the directive that describes the location of the XML value to be changed and can be fixed by using the correct syntax.
 

Additional Information

For example, assume the following XML structure is used to set up two network interfaces:
 
<networking>
  <interfaces config:type="list">
    <interface>
      <bootproto>static</bootproto>
      <device>eth0</device>
      <ipaddr>10.0.0.1</ipaddr>
    </interface>
    <interface>
      <bootproto>static</bootproto>
      <device>eth1</device>
      <ipaddr>20.0.0.1</ipaddr>
    </interface>
  </interfaces>
</networking>

To ask the user for ip address for the first interface, eth0, the following fragment needs to be used:

 
<ask>
  <path>networking,interfaces,0,ipaddr</path>
  <question>Enter the server IP address:</question>
  <stage>initial</stage>
  <default>10.0.0.1</default>
</ask>

Note that the interface number needs to be specified in the <path></path> element and that interfaces are numbered starting from zero and refer back to the interfaces as defined in the <interfaces></interfaces> section.

To also ask for an IP address for the second interface during autoyast installation, the following fragment needs to be used:
<ask>
  <path>networking,interfaces,1,ipaddr</path>
  <question>Enter the server IP address:</question>
  <stage>initial</stage>
  <default>20.0.0.1</default>
</ask>

More details can be found in the SUSE AutoYaST documentation for the corresponding OS/SP version.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:3769690
  • Creation Date: 06-Feb-2008
  • Modified Date:05-Mar-2021
    • SUSE Linux Enterprise Desktop
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.