Set static IP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello,
I want my CentOS 6.5 computer to have a static IP.  Currently I get the 
IP I want because I have my router assign it on the basis of mac address.
I placed the following file as:
/etc/sysconfig/networking-scripts/eth0

DEVICE="eth0"
BOOTPROTO=static
HWADDR=00:1F:D0:9E:AE:67
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
NETMASK=255.255.255.0
IPADDR=192.168.0.99
GATEWAY=192.168.0.1
NM_CONTROLLED=no

I also disabled Network Manager with chkconfig.

It didn't work.  When I rebooted I had no IP address for eth0. Should I 
leave all the other scripts in /etc/sysconfig/networking-scripts unchanged?

Suggestions would be appreciated.

Thank you,
Joe
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux