Centos 7.4单网卡双IP设置
Centos 7.4单网卡双IP设置
[root@xxxxxx network-scripts]# cat ifcfg-enp3s0
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
NAME=enp3s0
UUID=90a46ce2-a14e-4d07-a7f1-2b36d19b996a
DEVICE=enp3s0
ONBOOT=yes
IPADDR=192.168.80.ddd
PREFIX=24
GATEWAY=192.168.80.tttt
DNS1=202.96.134.133
DNS2=202.96.128.86
[root@xxxxxx network-scripts]# cat ifcfg-enp3s0:01
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
NAME=enp3s0:01
UUID=90a46ce2-a14e-4d07-a7f1-2b36d19b996a
DEVICE=enp3s0:01
ONBOOT=yes
IPADDR=172.16.3.xxx
PREFIX=24
GATEWAY=172.16.3.yyy
DNS1=202.96.134.133
DNS2=202.96.128.86