Red Hat Bugzilla – Bug 470364
invalid netmask for static ip
Last modified: 2008-11-07 01:49:59 EST
Description of problem:
When setting a static ip using edit of the 'network' menu, you set an ip address, a netmask and a default ip address. When this is saved in /etc/sysconfig/ifcfg-eth1, the netmask is wrongly set to value of the default gateway.
Version-Release number of selected component (if applicable):
using 'root' System->administration->network to edit the network device.
Steps to Reproduce:
1. select system->administration->network
2. highlight which device. In my case it is eth1
3. press edit
4. change from dynamic addressing to static addressing
5. set the ip address (ex: 192.168.5.27)
6. set the netmask (255.255.255.0)
7. set the default gateway address (ex: 192.168.5.1)
8. save the configuration
if you reopen the above display, you will see the netmask has been changed
to the value of 'default gateway address'
if you check /etc/sysconfig/ifcfg-eth1, you will see the netmask has been
altered to the value reported in the gui display.
setting the netmask should cause the config to accept the value supplied.
*** This bug has been marked as a duplicate of bug 470068 ***