**有多种配置方法: 比如nmtui。本文用命令生成。
[root@h ~]# cd /etc/sysconfig/network-scripts/
[root@h network-scripts]# ll
total 216
-rw-r–r–. 1 root root 293 Aug 25 14:28 ifcfg-Backup
-rw-r–r–. 1 root root 337 Aug 30 08:53 ifcfg-eno16777736
-rw-r–r–. 1 root root 254 Apr 2 2014 ifcfg-lo
本机有三块网卡: ifcfg-eno16777736,ifcfg-lo, ifcfg-Backup
我需要给 ifcfg-eno16777736设置三个IP 地址。
ifconfig -a
eno16777736: flags=4163