Friday, June 5, 2009

Assigning Static IP in fedora core 10

If you are using fedora core 10, and tried to assign a static IP to your pc, you might have experience this problem in Network Manager where your assigned subnet mask gets overwritten whenever you tried to save the settings.

SO how do you exactly assigned a static IP to your fedora core 10 box....

- login as root
- turn off Network manager by the following command
chkconfig NetworkManager off

- edit /etc/sysconfig/network-scripts/ifcfg-eth0 set it to the following, replacing IPADDR with your IP

# nVidia Corporation MCP61 Ethernet
DEVICE=eth0
HWADDR=00:24:1d:18:46:ec
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
PEERDNS=yes
IPV6INIT=yes
NM_CONTROLLED=no
TYPE=Ethernet
BROADCAST=192.168.1.255
IPADDR=192.168.1.4
NETMASK=255.255.255.0
NETWORK=192.168.1.0
DNS1=192.168.1.1

- restart network service by
service network restart

1 comment:

  1. I think you could just skip chkconfig NetworkManager off

    ReplyDelete