Cloud/Softlayer
Global IP setting
뭉기
2018. 7. 8. 11:27
Softlayer의 글로벌 IP는 40개 DC 어디에 있는 서버에 라도 할당 가능하다.
서버를 다른 DC에 지정할 경우 30초~1분가량 후 바로 이전 된다.
사용자는 가장 가까운 센터로 접속하고 이후 라우팅은 Softlayer 내부망을 사용하기 때문에 글로벌 네트워크 가속 효과가 있다.
(단, 사용자->서버만 그렇하며, 서버->사용자 는 일반 Routing과 동일하다. Softlayer는 서버의 DC는 알지만, 사용자 위치는 모르므로 당연하다. )
1. 포털에서 Global IP를 구매한다.
2. Global IP메뉴에서 가서 Global IP를 할당할 서버를 지정한다.
3. 해당 서버로 로그인 해서 해당 IP를 eth1 서브 인터페이스로 추가한다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GIP="169.55.63.3" | |
cd /etc/sysconfig/network-scripts/ | |
cp ifcfg-eth1{,:1} | |
sed -i 's|eth1$|eth1:1|g' ifcfg-eth1:1 | |
sed -i "s|^IPADDR=.*|IPADDR=$GIP|g" ifcfg-eth1:1 | |
sed -i "s|^NETMASK=.*|NETMASK=255.255.255.255|g" ifcfg-eth1:1 | |
sed -i "/HWADDR=/d" ifcfg-eth1:1 | |
systemctl restart network |