블로그 이미지
분무기로 구름을 만들어 비가 내리다. 비내리는사막

카테고리

분류 전체보기 (28)
Cloud (9)
IT용어 (1)
뽐뿌 (1)
개인 (1)
Total
Today
Yesterday

달력

« » 2024.5
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

공지사항

최근에 올라온 글

# 아마존 공식 문서 (Amazon Linux 만 해당)

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html


하지만, 테스트 하고자 했던 인스턴스의 OS는 CentOS 였기 때문에, ec2-net-util 패키지가 기본 제공 되지 않았습니다.


현재 구성원하시는 두개의 CentOS 서버의 secondary ENI 끼리의 연결은 asymmetric routing(비대칭 라우팅) 으로 인하여 문제가 생기는듯 싶습니다.

 

문제를 해결하기 위하여 몇가지 OS 내에서 설정이 필요로 하는데요, 언급해주신대로 아마존 AMI 경우 ec2-net-utils 자동으로 결함을 고쳐주는 방면, CentOS 다른 배포판의 경우 직접 설정을 잡아주셔야 합니다.

 

앞서 다른 설정 변경전에 몇가지 파일 또는 인스턴스를 백업하시길 권장해 드립니다.

cp /etc/sysconfig/network-scripts/ifcfg-eth* /root/ cp /etc/rc.local /root/

 

그뒤 아래의 명령어를 순차적으로 실행해주세요

 

$ cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth1

$ sed -i 's/eth0/eth1/g' /etc/sysconfig/network-scripts/ifcfg-eth1

$ /etc/init.d/network restart

 

명령어 실행 연결이 끊어진다면, eth1 내부 아이피로 접속합니다

 

먼저 두개의 네트워크 인터페이스의 내부 아이피를 저장합니다

$ IP1=eth0 내부아이피

$ IP2=eth1 내부아이피

 

$ GWIP=`curl http://169.254.169.254/latest/meta-data/local-ipv4 | awk -F\. '{print $1"."$2"."$3"."1}'` $ echo "default via $GWIP dev eth0 table 20" > /etc/sysconfig/network-scripts/route-eth0

$ echo "from $IP1 table 20" > /etc/sysconfig/network-scripts/rule-eth0

$ echo "default via $GWIP dev eth1 table 21" > /etc/sysconfig/network-scripts/route-eth1

$ echo "from $IP2 table 21" > /etc/sysconfig/network-scripts/rule-eth1

$ echo "default via $GWIP dev eth2 table 22" > /etc/sysconfig/network-scripts/route-eth2

$ echo "from 172.23.222.136 table 22" > /etc/sysconfig/network-scripts/rule-eth2

 

$ echo "route add -net default gw $GWIP netmask 0.0.0.0 dev eth0 metric 10001" >> /etc/rc.local $ echo "supersede dhcp-server-identifier 255.255.255.255;" >> /etc/dhcp/dhclient.conf $ reboot

 

명령어 실행뒤 시스템 재시작 , 두개의 인터페이스가 동일히 작동 가능합니다.



http://thelongestblogurlicouldthinkof.blogspot.kr/2013/05/multiple-enis-on-amazon-aws-vpc-with.html



Posted by 비내리는사막
, |

AWS 국가코드 


코드이름

ap-northeast-1

아시아 태평양(도쿄)

ap-southeast-1

아시아 태평양(싱가포르)

ap-southeast-2

아시아 태평양(시드니)

eu-central-1

EU(프랑크푸르트)

eu-west-1

EU(아일랜드)

sa-east-1

남아메리카(상파울루)

us-east-1

US East (N. Virginia)

us-west-1

미국 서부(캘리포니아 북부 지역)

us-west-2

미국 서부(오레곤)

ap-northeast-2

Asia Pacific (Seoul)

http://docs.aws.amazon.com/ko_kr/AWSEC2/latest/UserGuide/using-regions-availability-zones.html


Posted by 비내리는사막
, |

1. IT월드:  http://www.itworld.co.kr/  (★★★★) 모바일지원, 깊이있는 내용

2. ZDnet코리아: http://www.zdnet.co.kr/ (★★★★) 모바일지원, 폭넓은 뉴스

3. 네이버IT뉴스: http://bit.ly/1rScLK7  (★★★)  모바일지원, 신속한 뉴스

4. 전자신문:  http://www.etnews.com/ (★★★★) 모바일지원

5. IT뉴스: http://www.itnews.or.kr/  (★★★)  모바일지원

6. 디지털데일리:  http://www.ddaily.co.kr/(★★★)  모바일지원

7. 베타뉴스: http://www.betanews.net/(★★★) 모바일지원, HW리뷰

8. CIO코리아:  http://www.ciokorea.com/(★★★) 전문적인 내용, 모바일 미지원

9. CIOBIZ: http://www.ciobiz.co.kr/  (★★★) 전문적인 내용, 모바일 미지원

10. 아이뉴스24: https://www.inews24.com/  (★) 모바일지원

Posted by 비내리는사막
, |

최근에 달린 댓글

글 보관함