Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1925123

Summary: man nm-settings-ifcfg-rh does not mention NETMASK option
Product: Red Hat Enterprise Linux 8 Reporter: Josef Kubin <jkubin>
Component: NetworkManagerAssignee: Thomas Haller <thaller>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.2CC: acardace, atragler, bgalvani, lrintel, rkhan, sukulkar, thaller, till, vbenes
Target Milestone: rcKeywords: Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: NetworkManager-1.30.0-0.9.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 13:32:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Josef Kubin 2021-02-04 12:50:10 UTC
Description of problem:

NETMASK is not mentioned in our documentation (RHEL8.2):
~~~
$ man nm-settings-ifcfg-rh 2>/dev/null | grep 'NETMASK\>'
~~~

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

Actual results:

Only PREFIX is mentioned:
~~~
$ man nm-settings-ifcfg-rh 2>/dev/null | sed -n '/Simple ethernet configuration with static IP/,/^$/p' 
           Simple ethernet configuration with static IP:
           TYPE=Ethernet
           BOOTPROTO=none
           IPADDR=10.1.0.25
           PREFIX=24
           GATEWAY=10.1.0.1
           DEFROUTE=yes
           IPV4_FAILURE_FATAL=no
           IPV6INIT=yes
           IPV6_AUTOCONF=yes
           IPV6_DEFROUTE=yes
           IPV6_PEERDNS=yes
           IPV6_PEERROUTES=yes
           IPV6_FAILURE_FATAL=no
           NAME=ethernet-em2
           UUID=51bb3904-c0fc-4dfe-83b2-0a71e7928c13
           DEVICE=em2
           ONBOOT=yes

~~~

Expected results:
The NETMASK option should also be mentioned.

Comment 1 Josef Kubin 2021-02-05 07:50:42 UTC
Roughly my idea:

--- nm-settings-ifcfg-rh.5      2021-02-05 01:30:16.990194909 -0500
+++ new-nm-settings-ifcfg-rh.5  2021-02-05 01:30:08.190126502 -0500
@@ -242,6 +242,8 @@
 The UUID values in the config files must be unique\&. You can use
 \fIuuidgen\fR
 command line tool to generate such values\&. Alternatively, you can leave out UUID entirely\&. In that case NetworkManager will generate a UUID based on the file name\&.
+.br
+The PREFIX option (CIDR) can be replaced by the traditional NETMASK option\&.
 .SH "DIFFERENCES AGAINST INITSCRIPTS"
 .PP
 The main differences of NetworkManager ifcfg\-rh plugin and traditional initscripts are:

Comment 11 errata-xmlrpc 2021-05-18 13:32:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: NetworkManager and libnma security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1574