Bug 613801 - NetworkManager does not write subnet mask to /etc/sysconfig/network-scripts/ifcfg-eth0
Summary: NetworkManager does not write subnet mask to /etc/sysconfig/network-scripts/i...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-network
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-12 20:44 UTC by Need Real Name
Modified: 2010-09-04 05:16 UTC (History)
6 users (show)

Fixed In Version: system-config-network-1.6.1-1.fc14
Clone Of:
Environment:
Last Closed: 2010-09-02 20:44:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
system-config-network-tui read/write PREFIX of ifcfg files (1.80 KB, patch)
2010-07-21 13:57 UTC, Jirka Klimes
no flags Details | Diff

Description Need Real Name 2010-07-12 20:44:03 UTC
I noticed that NetworkManager does not write subnet mask to /etc/sysconfig/network-scripts/ifcfg-eth0

Comment 1 Dan Williams 2010-07-20 19:55:01 UTC
Does it write:

PREFIX=xx

?  That's the preferred form these days instead of subnet masks, even when NM isn't being used.

Comment 2 Need Real Name 2010-07-20 21:20:56 UTC
Yes, but system-config-network-tui doesn't understand that.

Comment 3 Jirka Klimes 2010-07-21 13:50:36 UTC
Well, NM prefers PREFIX over NETMASK for static IP in ifcfg files.
Initscripts also uses PREFIX with 'ip' command. (except in aliases, where NETMASK is used with ifconfig.)

/usr/share/doc/initscripts-*/sysconfig.txt doesn't mention PREFIX. That'd a deficiency of the documentation and should be updated.

So, this report is an issue of system-config-network-tui, that doesn't read/write PREFIX.

Comment 4 Jirka Klimes 2010-07-21 13:57:40 UTC
Created attachment 433426 [details]
system-config-network-tui read/write PREFIX of ifcfg files


The patch reads and writes PREFIX from/to ifcfg file.
When both PREFIX and NETMASK exists, PREFIX takes precedence as it's done such by initscripts and NM a long time already.

Comment 6 Fedora Update System 2010-08-23 13:47:09 UTC
system-config-network-1.6.1-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/system-config-network-1.6.1-1.fc13

Comment 7 Fedora Update System 2010-08-23 13:50:29 UTC
system-config-network-1.6.1-1.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/system-config-network-1.6.1-1.fc14

Comment 8 Fedora Update System 2010-08-23 19:02:31 UTC
system-config-network-1.6.1-1.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update system-config-network'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/system-config-network-1.6.1-1.fc14

Comment 9 Fedora Update System 2010-09-02 20:43:48 UTC
system-config-network-1.6.1-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2010-09-04 05:16:11 UTC
system-config-network-1.6.1-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


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