How do I change my IP address permanently in RedHat?

Lâm Phung

New member
How do I change my IP address permanently in RedHat?
Answer
How to configure a static IP address on CentOS 7 / RHEL 7
  1. Create a file named /etc/sysconfig/network-scripts/ifcfg-eth0 as follows:
  2. DEVICE=eth0.
  3. BOOTPROTO=none.
  4. ONBOOT=yes.
  5. PREFIX=24.
  6. IPADDR=192.168.2.203.
  7. Restart network service: systemctl restart network.
 

Tìm kiếm

Back
Top