Problem Assigning Static IP to CentOS Server

Posted by nategood on Server Fault See other posts from Server Fault or by nategood
Published on 2010-04-09T20:37:33Z Indexed on 2010/04/09 20:43 UTC
Read the original article Hit count: 499

Filed under:
|
|
|

We have a sandbox server running CentOS that we run inside our office. Our ISP has assigned us a block of 5 static IPs. We now want to assign it a static IP.

DEVICE=eth0
BOOTPROTO=none # have also tried "static" here
HWADDR=00:13:72:*:*:*
ONBOOT=yes
TYPE=Ethernet
NETMASK=255.255.255.0
IPADDR=173.*.*.161
GATEWAY=10.1.10.1

/etc/resolv.cnf is also set with the appropriate name servers from our ISP.

When I ifdown eth0 then ifup eth0 I get...

SIOCADDRT: Network is unreachable

When I switch to DCHP, the machine has an IP assigned and there are no connection problems.

Any ideas?

© Server Fault or respective owner

Related posts about centos

Related posts about static-ip