Problem Assigning Static IP to CentOS Server
- by nategood
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?