Knowledgebase

多IP设置

  • 0

vi /etc/network/interfaces
 
 
auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
 
# 额外的IP地址
up ip addr add 192.168.1.11/24 dev eth0
up ip addr add 192.168.1.12/24 dev eth0


systemctl restart networking

Was this answer helpful?

© Copyright 2019. CTG SERVER LTD