單網絡卡設定雙IP(ubuntu,debian)
阿新 • • 發佈:2019-01-10
分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow
也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!
# This file describes the network interfaces availableon your system
# and how to activate them. For more information, see interfaces(5).
#/etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.116
netmask 255.255.255.0
gateway 192.168.1.2
auto eth0:1
iface eth0:1 inet static
address 192.168.1.135
netmask 255.255.255.0
gateway 192.168.1.2