yum install net-tools -y 才能使用ifconfig

 

eth0 eth1

em1 em2

 

iptables -F

setenforce 0

 

ifconfig eno16777736 192.168.16.102 netmask 255.255.255.0

ifconfig eno16777736 192.168.16.102/24

ifconfig eno16777736:0 192.168.16.104/24

 

/etc/sysconfig/network-scripts

 

vim ifcfg-eno16777736网卡配置  

  etc/ resolv.conf DNS配置  

 

改子网掩码?

 

systemctl restart network

 

route add default gw 192.168.16.254

 

rpm -ivh 安装  

  -q 查看  

  -qa |grep 名 过滤查看  

  -e 卸载  

  -ql 查看安装路径  

  -qi 查看安装信息  

  -qf 查看命令安装来源  

 

vim /etc/yum/yum-cron-hourly.conf