0

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?

1 Answer 1

1

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>
1
  • 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, 2012 at 16:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .