系统相关
首页 > 系统相关> > 单网卡设置双IP(ubuntu,debian10)

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

作者:互联网

修改/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

标签:IP,192.168,网卡,255.255,0.0,debian10,gateway,inet,eth0
来源: https://www.cnblogs.com/duoruaimi4/p/16374831.html