Bug 1056746 - Anaconda kickstart drops netmask in ifcfg
Summary: Anaconda kickstart drops netmask in ifcfg
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 20
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-22 20:16 UTC by Andreas Girgensohn
Modified: 2014-01-23 06:37 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-23 06:37:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
anaconda.ifcfg.log (6.84 KB, text/plain)
2014-01-22 20:16 UTC, Andreas Girgensohn
no flags Details
anaconda.log (6.16 KB, text/plain)
2014-01-22 20:17 UTC, Andreas Girgensohn
no flags Details

Description Andreas Girgensohn 2014-01-22 20:16:49 UTC
Created attachment 854023 [details]
anaconda.ifcfg.log

Description of problem:

During kickstart with a static IP address and a netmask of 255.255.252.0, Anaconda does not put the NETMASK entry into the ifcfg file.

Version-Release number of selected component (if applicable):

anaconda 20.25.15-1

How reproducible:

Always

Steps to Reproduce:
1. Create a kickstart file with a static IP address and a non-default netmask.
2. Install the system

Actual results:

The generated ifcfg file does not include a NETMASK entry.

Expected results:

The entry should be there.


Additional info:

This is the network statement in the kickstart file:

network --bootproto static --ip 192.168.23.0 --netmask 255.255.252.0 --gateway 192.168.20.1 --nameserver 192.168.20.4

The attached file anaconda.ifcfg.log shows that the NETMASK entry at first was generated correctly.  A later pass through the file added the suffix "0" to the entries IPADDR and GATEWAY and dropped the NETMASK entry.

Comment 1 Andreas Girgensohn 2014-01-22 20:17:48 UTC
Created attachment 854024 [details]
anaconda.log

Comment 2 Andreas Girgensohn 2014-01-22 21:08:55 UTC
Sorry, I realized that this isn't a bug.  I didn't know that PREFIX had the same effect as NETMASK.  The problem was caused by me replacing "IPADDR0=" with "IPADDR=" when changing the IP address with a script.


Note You need to log in before you can comment on or make changes to this bug.