Ubuntu – 新的Ubuntu服务器不会接受新的公共IP

我目前正在设置服务器,因为我给服务器HachiSoftware02它是公共IP它不会让我连接到它通过SSH。

当它有一个本地IP它工作正常,我需要服务器的应用程序构build。

netstat -tulpn : http : netstat -tulpn

ifconfig : http : //i.imgur.com/he291.jpg

你还没有configuration任何公共IP在你的eth0通过编辑/etc/network/interfaces

以这种格式:

 auto eth0 iface eth0 inet static address ABCD netmask ABCD network ABCD broadcast ABCD gateway ABCD 

然后运行/etc/init.d/networking restart