Bug 1474295 - default netmask of IP in nmtui
default netmask of IP in nmtui
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: NetworkManager (Show other bugs)
7.3
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: sushil kulkarni
Desktop QE
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-24 06:33 EDT by yangfei
Modified: 2017-08-04 16:39 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description yangfei 2017-07-24 06:33:41 EDT
Description of problem:

Setting IP address by nmtui, the 255.255.255.255 netmask by default, I think this is not make sense.

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


How reproducible:

# nmtui

into a tui interface and set ip address 

Steps to Reproduce:
1. # nmtui
2. set ip address 
3. the /32 netmask by default

Actual results:


Expected results:

I expect the netmask according to the IP subnet to add, for example, 192.168.0.0/24 the default netmask is 255.255.255.0, and 172.16.0.0/16, the default netmask is 255.255.0.0

Additional info:
Comment 2 Beniamino Galvani 2017-08-03 15:00:52 EDT
(In reply to yangfei from comment #0)
> Description of problem:
>
> Setting IP address by nmtui, the 255.255.255.255 netmask by default, I think
> this is not make sense.

> I expect the netmask according to the IP subnet to add, for example,
> 192.168.0.0/24 the default netmask is 255.255.255.0, and 172.16.0.0/16, the
> default netmask is 255.255.0.0

I don't think that choosing the prefix of the classful network
associated with the address makes much sense today. If the user
forgets to add a prefix, the interface should get the /32 prefix; the
tool should not make up a prefix which possibly is not the same the
user wants.

Note that in this regard nmtui has the same behavior of other modern
tools for configuring networking, as tools in the iproute2 suite.

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