How Do You Change Ip Address in Red Hat Linux?
Contents How Do You Change Ip Address in Redhat Linux? How to Configure a Static Ip Address on Centos 7 / Rhel 7 Create a File Named...
Contents
How do you change IP address in Redhat Linux?
How to configure a static IP address on CentOS 7 / RHEL 7
- Create a file named /etc/sysconfig/network-scripts/ifcfg-eth0 as follows:
- DEVICE=eth0.
- BOOTPROTO=none.
- ONBOOT=yes.
- PREFIX=24.
- IPADDR=192.168. 2.203.
- Restart network service: systemctl restart network.
19 февр. 2021 г.
Must Read
How do I change my IP address in Linux terminal?
To change your IP address on Linux, use the “ifconfig” command followed by the name of your network interface and the new IP address to be changed on your computer. To assign the subnet mask, you can either add a “netmask” clause followed by the subnet mask or use the CIDR notation directly.