Welcome to the KDE Community Forums, the official forum board for KDE.
You are currently viewing the forums as an unregistered user. Registration allows you to post and discuss topics, receive private messages, vote on ideas, subscribe to topics and many such great features. Registration is a simple process and completely free. So register now and be a part of the community!

Subnet mask



emerth

Registered Member

Posts: 3

Karma: 0

Canada

Subnet mask

Post 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.
emerth, proud to be a member of KDE forums since 2008-Dec.

Administrator User avatar

neverendingo

Administrator

Posts: 1750

Karma: 12

Gender:  Male

OS: Kubuntu Kubuntu

Germany

RE: Subnet mask

Post Thu Dec 04, 2008 3:28 pm

In which way do you save it? With a normal editor?
forum.kde.org
Communicate.
Image



emerth

Registered Member

Posts: 3

Karma: 0

Canada

RE: Subnet mask

Post 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.
emerth, proud to be a member of KDE forums since 2008-Dec.


Who is online

Users browsing this forum: No registered users and 4 guests