This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Subnet mask

Tags: None
(comma "," separated)
emerth
Registered Member
Posts
3
Karma
0

Subnet mask

Thu Dec 04, 2008 2:14 pm
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.
User avatar
neverendingo
Administrator
Posts
2136
Karma
17
OS

RE: Subnet mask

Thu Dec 04, 2008 3:28 pm
In which way do you save it? With a normal editor?


New to KDE Software? - get help from Userbase or ask questions on the Forums
Communicate.
Image
emerth
Registered Member
Posts
3
Karma
0

RE: Subnet mask

Thu Dec 04, 2008 5:55 pm
neverendingo wrote:In which way do you save it? With a normal editor?


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.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell