Static IP configuration for kdump
This document (7018592) is provided subject to the disclaimer at the end of this document.
SUSE Linux Enterprise Server 12 Service Pack 1 (SLES 12 SP1)
SUSE Linux Enterprise Server 12 Service Pack 2 (SLES 12 SP2)
As an example eth0 has been configured with a static IP address like this 192.168.1.1/24 and eth1 has been configured with a static IP address like this 10.50.50.100/20.
Kdump was configured to use the eth1 device with static configuration KDUMP_NETCONFIG in /etc/sysconfig/kdump:
When testing the above configuration with
kdump fails to reach the network which results in an error writing the kernel dump to the corresponding FTP location.
The following information needs to be added in order to achieve a static configuration.
KDUMP_COMMANDLINE_APPEND='ip=<dump client IP>:<dump server IP in this case the FTP server>:<gateway address>:<netmask>:<hostname>:<device>:<protocol>'
So in the above example the corresponding line would read:
leaving the KDUMP_COMMANDLINE_APPEND='' without a valid configuration for the static IP on eth1 kdump set's the netmask to /24 instead of /20.
This is the cause of the /usr/lib/dracut/modules.d/40network/ifup.sh script assuming that the IPv4 netmask is /24 because it can't find any valid static configuration in the /etc/sysconfig/kdump configuration.
As outlined in /etc/sysconfig/kdump you have to add the configuration to the KDUMP_COMMANDLINE_APPEND variable.
For static configuration, you have to add the configuration to KDUMP_COMMANDLINE_APPEND.
However the actual configuration was not documented here and a documentation update has been triggered internally to have this included in future documents.
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:7018592
- Creation Date: 06-Feb-2017
- Modified Date:03-Mar-2020
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com