Few Boundaries, Expandable Box

ESXi

This quick guide will guide you on how to use ESXi.

Network

Edit the configuration file.
1cd /etc/sysconfig/network-scripts/
2vi ifcfg-enp0s3
Configuration file content.
1# Need to change
2BOOTPROTO="static"
3IPADDR=192.168.1.111
4NETMASK=255.255.255.0
5GATEWAY=192.168.1.1
6DNS1=8.8.8.8
Restart the network card.
1/etc/init.d/network restart
2cat /etc/resolv.conf

Firewall

firewalld
1systemctl status firewalld
2firewall-cmd --reload
3systemctl enable firewalld
4sytemctl disable firewalld
5systemctl start firewalld
6systemctl stop firewalld
7firewall-cmd --get-active-zones
8firewall-cmd --get-zone-of-interface=enp0s3
9firewall-cmd --query-panic
10firewall-cmd --panic-on
11firewall-cmd --panic-off
12firewall-cmd --zone=public --list-ports
13firewall-cmd --zone=public --add-port=80/tcp --permanent
14firewall-cmd --reload
15# firewall-cmd --zone=public --add-interface=eth0(Make it permanent by adding --permanent, and then reload the firewall.)
16# firewall-cmd --set-default-zone=public(Take effect immediately, no need to restart.)
17# firewall-cmd --reload或firewall-cmd --complete-reload(The difference between the two is that the first one does not require disconnecting, which is one of the dynamic features of firewalld.)