auto lo
iface lo inet loopback
#allow-hotplug eth0
auto eth0
iface eth0 inet dhcp
#allow-hotplug eth1
auto eth1
#iface eth1 inet dhcp
iface eth1 inet static
address 172.17.0.20
netmask 255.255.255.0
#auto eth0
#iface eth0 inet static
#address 172.17.0.15
#netmask 255.255.255.0
#gateway 172.17.0.1
#auto eth0
#iface eth0 inet static
#address 172.17.0.20
#netmask 255.255.255.0
#gateway 172.17.0.1
然后按esc :wq!
保存
我就不懂了 如何让他们互通 互连?
我看人家都是ip route
17.17.0.0/24 dev eth0 prote kervel scope link src 172.17.0.15
17.17.0.0/24 dev eth1 prote kervel scope link src 172.17.0.20
接下来真的不会..
就是如何让他们无论进入公网IP 都可以进入云服务器