Modification method: 1. Right-click the mouse on the desktop and select "Open Terminal"; 2. In the terminal window, execute the "vi /etc/sysconfig/network-scripts/ifcfg-eth0" command; 3. In edit mode, just modify the values of IPADDR, NETMASK and other items.
#The operating environment of this tutorial: Red Hat Enterprise Linux 6.1 system, Dell G3 computer.
linux modify ip address
1. Log in to the linux operating system and enter the interface
2. Right-click on the desktop to open the terminal.
3. Execute the ifconfig -a
command in the terminal to view the IP address
as shown below Saw the ip address.
4. Enter in the terminal: vi /etc/sysconfig/network-scripts/ifcfg-eth0
5. After pressing Enter, start editing and fill in the IP address, subnet mask, gateway, DNS, etc. Among them, the "information in the red box" is a must. That’s it
#Related recommendations: "Linux Video Tutorial"
The above is the detailed content of How to change ip address in linux. For more information, please follow other related articles on the PHP Chinese website!