0632-7654321

只做高防服务器租用,所以专业! - 通为网络

防护热线:0632-7654321

关于我们 信息中心 法律申明 支付方式 加入我们 联系我们

单网卡设置双IP(ubuntu,debian10)

新闻发布:高防服务器   发布时间:2022-11-11 15:08

修改/etc/network/interfaces

 

auto eth0
iface eth0 inet static
address 192.168.6.6
netmask 255.255.0.0
gateway 192.168.6.1

 

auto eth0:1
iface eth0:1 inet static
address 192.168.10.6
netmask 255.255.0.0

gateway 192.168.10.1

dns-nameservers 114.114.114.114

 

 

重启网络

systemctl restart networking