How to set ip address in centos7
May 23, 2020 pm 03:04 PMFirst open the ifcfg-eth0 file
# vim /etc/sysconfig/network-scripts/ifcfg-eth0
Then modify the following content
BOOTPROTO="static" #dhcp改为static ONBOOT="yes" #开机启用本配置 IPADDR=192.168.7.106 #静态IP GATEWAY=192.168.7.1 #默认网关 NETMASK=255.255.255.0 #子网掩码 DNS1=192.168.7.1 #DNS 配置
Finally restart the network service
# service network restart
Recommended tutorial: centos tutorial
The above is the detailed content of How to set ip address in centos7. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to set Xiaohongshu not to display IP address? How does it change the id to locate the city?

CentOS7 various version image download addresses and version descriptions (including Everything version)

Where is the IP address of Xiaomi mobile phone?

Where to change the IP address of Xianyu_Share how to change the IP address of Xianyu

How to change the location of Douyin IP address? Why does the IP address change location?

Steps to enter CentOS 7 emergency repair mode

Bitcoin transaction IP address (Is the Bitcoin transaction IP address public?)

Where can I change the printer's IP address? Tutorial on changing printer IP address
