linux单网卡双IP配置

 

[root@localhost ~]# more /etc/sysconfig/network-scripts/ifcfg-ens224 /etc/sysconfig/network-scripts/ifcfg-ens224:1
::::::::::::::
/etc/sysconfig/network-scripts/ifcfg-ens224
::::::::::::::
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
#BOOTPROTO=dhcp
DEFROUTE=no
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=ens224
#UUID=e4014630-448b-5ad3-4992-f4678202147c
DEVICE=ens224
ONBOOT=yes
IPADDR=10.10.2.50
PREFIX=24
BOOTPROTO=none
::::::::::::::
/etc/sysconfig/network-scripts/ifcfg-ens224:1
::::::::::::::
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
#BOOTPROTO=dhcp
DEFROUTE=no
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=ens224:1
#UUID=e4014630-448b-5ad3-4992-f4678202147c
DEVICE=ens224:1
ONBOOT=yes
IPADDR=10.10.2.51
PREFIX=24
BOOTPROTO=none

 

posted @ 2024-02-01 14:48  咿呀哒喏  阅读(351)  评论(0编辑  收藏  举报