PDA

View Full Version : system-config-network in F8


beckerde
2007-11-22, 08:14 AM CST
I installed F8 and initially configured eth0 with dhcp in anaconda.
But now I need eth0 to use a static ip address.
I used system-config-network to configure it.
Disabled dhcp and configured the static ip.
I also specified the hostname to be "mypc".
It seems nm-applet mess things up.
If it takes control of the network, it assigns a dhcp address and the static address as a secondary address.
And the most important, I can not "ping mypc" from another computer in the lan.
I can ping to both addresses nm-applet assigns.
But I can not with the hostname.
Firewall and SELinux disabled.
Samba is sharing a directory with no problem, but I can access it only by \\ip\sharename instead of \\mypc\sharename.

What's wrong with my config ?
Any help ?

jaspock
2007-11-22, 08:32 AM CST
Change the ip in /etc/sysconfig/network-scripts/ifcfg-eth0 (if eth0 is what
you want to change)

The hostname can be changed in /etc/syconfig/network .

After entering the IP address that you want, you could restart the network:

/etc/rc.d/init.d/network restart

If after doing this, you type /sbin/ifconfig and your IP address is unchanged you can do:

ifdown eth0
ifup eth0


good luck

Javier

bbfuller
2007-11-22, 08:54 AM CST
Hello beckerde

The network manager applet is work in progress and as I understand doesn't sit well with static ip's. If you disable NetworkManager in system-config-services, or start the system applet from the menus, you should be able to assign static ip addresses in the system-config-network applet.

As to pinging your machines by name and using that name with samba, I manage that by editing the file:

/etc/nsswitch.conf

That file has changed between fedora 7 and fedora 8.

In both instances you need to edit the line starting:

hosts

for f7 add:

wins

between the existing entries:

files dns

so that it looks like

files wins dns

for f8 the existing entry is more complicated but I just add wins after files once more and before mdns4_minimal.

Hope it works for you.

beckerde
2007-11-22, 09:58 AM CST
jaspock: I touched those files, but did't work.
bbfuller: network manager "work in pogress" does not work.

I had to disable NetworkManager in session preferences, and disable NetworkManager service, re-enable network in runlevel 5. Now it assigns only 1 ip addr.
I also had to enable nmb in runlevel 5, for other computer to see my hostname (I found that if nmb service is not running, other computers can't ping to this by name).

Now I can access the linux server with my software and other computer can enter this one by name to get documents from a shared directory.

system-config-network does what it's supposed to do, but gnome's networkmanager messes things up.

thank you guys.