我真的很挣扎,因为我不是网络管理员,只是一个凡人的程序员。
Linode 为您提供外部和内部 IP,以便与 linode 网络上的其他节点一起使用。在我的情况下,我已经像这样配置了我的外部接口:
# The loopback interface
auto lo
iface lo inet loopback
# Configuration for eth0 and aliases
# This line ensures that the interface will be brought up during boot.
auto eth0 eth0:0 eth0:1
# eth0 - This is the main IP address that will be used for most outbound connec$
# The address, netmask and gateway are all necessary.
iface eth0 inet static
address 97.107.XXX.XX
netmask 255.255.255.0
gateway 97.107.XXX.1
# eth0:1 - Private IPs …Run Code Online (Sandbox Code Playgroud)