按下图找到添加ip的位置

在面板上重启主机,记得购买完之后一定要先重启,一定要重启,一定要重启!!!否则配置会失败

看着教程直接复制粘贴就好了

好了现在就可以绑定域名一键搭建Trojan科学上网了,被墙的梯子又可以死灰复燃了。

还没找到梯子服务器的朋友可以看下:国外高性价比搭梯子服务器推荐

下面是官方教程copy过来的翻译

我的主ip:45.32.85.34 ,添加的ip:149.248.4.22

CentOS 6, CentOS 7

将下面的代码粘贴到 /etc/sysconfig/network-scripts/ifcfg-eth0 文件中覆盖掉原文件

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=45.32.85.34
NETMASK=255.255.252.0
GATEWAY=45.32.84.1
DNS1=108.61.10.10

将下面的代码粘贴到 /etc/sysconfig/network-scripts/route-eth0 中

169.254.0.0/16 dev eth0

将下面的代码粘贴到/etc/sysconfig/network-scripts/ifcfg-eth0:1 中,如果没有此文件直接创建就行

DEVICE=eth0:1
BOOTPROTO=static
IPADDR=149.248.4.22
NETMASK=255.255.255.255
ONBOOT=yes

重启网络

service network restart

ping 一下如果还不能ping通就重启一下主机


CentOS 8

Populate the /etc/sysconfig/network-scripts/ifcfg-ens3 file with the following text.

TYPE="Ethernet"
DEVICE="ens3"
ONBOOT="yes"
BOOTPROTO="none"
IPADDR=45.32.85.34
PREFIX=22
GATEWAY=45.32.84.1
DNS1=108.61.10.10
IPADDR1=149.248.4.22
PREFIX1=32
IPV6INIT="yes"
IPV6_AUTOCONF="yes"

Restart the connection, or reboot.

nmcli con load /etc/sysconfig/network-scripts/ifcfg-ens3
nmcli con up 'System ens3'

Debian 7, Debian 8

Populate the /etc/network/interfaces file with the following text.

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
	address 45.32.85.34
	netmask 255.255.252.0
	gateway 45.32.84.1
	dns-nameservers 108.61.10.10
	post-up ip route add 169.254.0.0/16 dev eth0


auto eth0:1
iface eth0:1 inet static
	address 149.248.4.22
	netmask 255.255.255.255

Restart networking or reboot.

systemctl restart networking.service

Debian 9, Debian 10

Populate the /etc/network/interfaces file with the following text.

auto lo
iface lo inet loopback

auto ens3
iface ens3 inet static
	address 45.32.85.34
	netmask 255.255.252.0
	gateway 45.32.84.1
	dns-nameservers 108.61.10.10
	post-up ip route add 169.254.0.0/16 dev ens3


auto ens3:1
iface ens3:1 inet static
	address 149.248.4.22
	netmask 255.255.255.255

Restart networking or reboot.

systemctl restart networking.service