debian添加多IP

发布时间:2025年11月03日 阅读:27 次

  1. 打开网卡配置文件

nano /etc/network/interfaces

2.编辑

auto eno1

iface eno1 inet static

        address 223.113.54.130/26

auto eno1:1

iface eno1:1 inet static

        address 223.113.54.134/26

        gateway 223.113.54.129

3. ctrl+o 保存配置,按回车, ctrl+x 退出 nano 编辑器。

4.重启网卡systemctl restart networking.service


Tag:
相关文章

发表评论: