CentOS-Stream-8设置多IP(一张网卡多IP)

编辑网卡文件

默认网卡文件是:

vim /etc/sysconfig/network-scripts/ifcfg-ens160
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=eui64
NAME=ens160
UUID=784036f8-e67a-41b0-a0cb-bb38b28426bf
DEVICE=ens160
ONBOOT=yes

IPADDR=172.16.0.100
PREFIX=24

IPADDR1=172.16.0.101
PREFIX=24

IPADDR2=172.16.0.102
PREFIX=24

GATEWAY=172.16.0.1
DNS1=223.5.5.5
DNS2=8.8.8.8
sanradar
sanradar
文章: 97

4 评论

  1. Insightful read! I found your perspective very engaging. For more detailed information, visit: READ MORE. Eager to see what others have to say!

  2. Hello there, just became alert to your blog through Google, and found that it’s really informative.
    I am gonna watch out for brussels. I will appreciate if you
    continue this in future. A lot of people will be benefited
    from your writing. Cheers! Lista escape room

留下评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注