Modify the NIC configuration file as follows:
Onboot=yes
ipaddr=192.168.1.11
netmask=255.255.255.0
Nm_controlled=no
To restart the network card:
Systemctl Restart Network
To view network card information:
IP add
Reference Documentation:
LINUX7 no ifconfig command after the minimal session installation system:
Install the Net-tools tool!
LINUX7 Modify the NIC name, en*** to eth0:
If the above method does not take effect, restart the system to try it!
How to modify the host name:
hostname Server1
To modify the/etc/hostname file:
How to view or turn off a firewall:
View the firewall status.
Systemctl Status Firewalld
Temporarily shuts down the firewall command. After restarting your computer, the firewall is automatically up.
Systemctl Stop Firewalld
Permanently shuts down the firewall command. After rebooting, the firewall does not start automatically.
Systemctl Disable FIREWALLD
Open the Firewall command.
Systemctl Enable Firewalld
Manuscripts: Small program development qixoo.com
Linux 7 common commands