Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a server (SL6.2) with IP configured from install, but now I need to change the IP address. The IP is controlled by the NwtworkManager:

# cat /etc/sysconfig/network-scripts/ifcfg-eth1 
DEVICE="eth1"
BOOTPROTO="dhcp"
HWADDR="34:40:B5:B8:1E:BA"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"

I need to change the static IP, but it's a server and I have no x11 installed. How can I changed it in the NetworkManager configuration?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

This interface looks like it is configured to use DHCP. To make the configuration static, you change the file to look like:

BOOTPROTO="none"
IPADDR=<your.ip.addr.ess>
NETMASK=<your.sub.net.mask>
GATEWAY=<your.gate.way.ip>
share|improve this answer
    
thansk, It's a solution, But I'm interested in maintain the same ifcfg-ethX file, and change the networkmanager configuration ... or equivalent. –  Zhen May 30 '12 at 16:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.