No.1: curl ifconfig.co
No.1: vi /etc/sysconfig/network-scripts/ifcfg-eth0 eth0是網卡名稱,每台機器不一定一樣
No.1: vi /etc/sysconfig/network-scripts/route-eth0 eth0是網卡名稱,每台機器不一定一樣
No.1: 0.0.0.0/1 via 103.246.218.1 src 103.132.163.227 128.0.0.0/1 via 103.246.218.1 src 103.132.163.227 103.246.218.1 是這台機器主IP的網關 103.132.163.227 是要當作對外出口的IP
No.1: /etc/init.d/network restart No.2: curl ifconfig.co