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 10
SUSE Linux Enterprise Desktop 11
SUSE Linux Enterprise Desktop 10
Situation
Resolution
Additional Information
<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
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com