Registered Member
|
Not sure why, but when I configure a static ethernet interface and save the config, the subnet mask is changed to be the same as the default gateway.
What I type: address = 192.168.0.200 mask = 255.255.255.0 default gw = 192.168.0.1 What gets saved: address = 192.168.0.200 mask = 192.168.0.1 default gw = 192.168.0.1 Is this just my box or is it a comon problem. |
Administrator
|
In which way do you save it? With a normal editor?
|
Registered Member
|
Ran into the problem first after install when I changed from DHCP to static. I used system-config-network script. I fixed it by editing /etc/sysconfig/networking/devices/ifcfg-eth0 using vi in an xterm and then running "/etc/init.d/network restart". Subsequent to that, various programs (firefox, the graphical update client) would say that the network is 'offline', though the network was in fact working. Firefox can be put back on line using it's file menu. Trying to solve the offline problem I ran system-config-network (I'll call it SCN) either directly or via the control panel program, the network system tray icon. I found that initially SCN showed the correct subnet mask. If I saved that using SCN's File|Save and then checked using ifconfig, the netmask was changed to 192.168.0.1 from 255.255.255.0. And indeed running SCN then showed the mask to be 192.168.0.1 not 255.255.255.0. So, edting the ifcfg-eth0 diirectly I can make the subnet mask be correct. Editing it using system-config-network results in an incorrect subnet mask. |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell