1. ifconfig Command not found
Workaround: Install the net-tools.x86_64 toolkit yum install net-tools.x86_64
2. Iptables cannot be used
Workaround: Yum Install iptables-services
Vi/etc/sysconfig/iptables #配置防火墙参数
# Sample configuration for iptables service
# can edit this manually or use System-config-firewall
# additional ports/services to the default configuration
*filter
: INPUT ACCEPT [0:0]
: FORWARD ACCEPT [0:0]
: OUTPUT ACCEPT [0:0]
-A input-m state--state related,established-j ACCEPT
-A input-p icmp-j ACCEPT
-A input-i lo-j ACCEPT
-A input-p tcp-m state--state new-m TCP--dport 22-j ACCEPT
-A input-j REJECT--reject-with icmp-host-prohibited
-A forward-j REJECT--reject-with icmp-host-prohibited
COMMIT
: wq! #保存退出
Systemctl Restart Iptables.service #最后重启防火墙使配置生效
Systemctl Enable Iptables.service #设置防火墙开机启动
Centos 7.5 Configuration Network