HSRPVRRPGLBP HSRP VRRP GLBP SLB HSRP Load Sharing

라우터 장애대비 HSRP/VRRP/GLBP

목차 • • HSRP VRRP GLBP SLB





![HSRP[구현] • 라우터 백업과 두대의 라우터를 모두 사용하여 Load Sharing 지원 [MHSRP] 1. 라우터에 HSRP[구현] • 라우터 백업과 두대의 라우터를 모두 사용하여 Load Sharing 지원 [MHSRP] 1. 라우터에](http://slidetodoc.com/presentation_image_h/9a2d7818e6f989f46e7c919469a8ee0d/image-8.jpg)
HSRP[구현] • 라우터 백업과 두대의 라우터를 모두 사용하여 Load Sharing 지원 [MHSRP] 1. 라우터에 Virtual Router 설정하기 Internet Router. A# show running S 0 A E 0 10. 1. 1. 3 B E 0 10. 1. 1. 4 Virtual Router(Group 1) 10. 1. 1. 1 Virtual Router(Group 2) 10. 1. 1. 2 Switch G/W 10. 1. 1. 1 G/W 10. 1. 1. 2 Group 1 Group 2 Router. B# show running interface Ethernet 0 ip address 10. 1. 1. 3 255. 0 interface Ethernet 0 ip address 10. 1. 1. 4 255. 0 standby 1 preempt standby 1 ip 10. 1. 1. 1 standby 1 track Serial 0 standby standby standby 2 preempt standby 2 ip 10. 1. 1. 2 standby 2 track serial 0 2 2 preempt ip 10. 1. 1. 2 track serial 0 priority 95 1 1 preempt ip 10. 1. 1. 1 track Serial 0 priority 95 2. Client중에서 반은 10. 1. 1. 1을 게이트웨이로 설정하고 나머지 반은 10. 1. 1. 2로 게이트웨이로 설정해서 Load sharing이 동작하도록 함
![HSRP[디버깅] • Cisco IOS release 12. 0(2. 1) 이후부터 debug standby 명령이 적용됨 Command HSRP[디버깅] • Cisco IOS release 12. 0(2. 1) 이후부터 debug standby 명령이 적용됨 Command](http://slidetodoc.com/presentation_image_h/9a2d7818e6f989f46e7c919469a8ee0d/image-9.jpg)
HSRP[디버깅] • Cisco IOS release 12. 0(2. 1) 이후부터 debug standby 명령이 적용됨 Command Description debug standby Displays all HSRP errors, events, and packets. debug standby terse Displays all HSRP errors, events, and packets, except hello and advertisement packets. debug standby errors Displays HSRP errors. debug standby events [[all | terse] | [icmp | protocol | redundancy | track]] [detail] Displays HSRP events. debug standby packets [[all | terse] | [advertise | coup | hello | resign]] [detail] Displays HSRP packets.


![VRRP[구현] • 구현명령 Vrrp 10 priority 100 : VRRP 10번 그룹내에 라우터의 우선순위 Vrrp VRRP[구현] • 구현명령 Vrrp 10 priority 100 : VRRP 10번 그룹내에 라우터의 우선순위 Vrrp](http://slidetodoc.com/presentation_image_h/9a2d7818e6f989f46e7c919469a8ee0d/image-12.jpg)
VRRP[구현] • 구현명령 Vrrp 10 priority 100 : VRRP 10번 그룹내에 라우터의 우선순위 Vrrp 10 times advertise 1 : VRRP Hello 교환 주기 Vrrp 10 timers learn : VRRP 마스터 라우터의 VRRP 타이머를 따름 Vrrp 10 preempt : VRRP 마스터가 다운되었다가 살아나면 다시 마 스터가 됨 Vrrp 10 authentication cisco : VRRP Advertisement를 주고받기 전에 확인 Vrrp 10 ip 1. 1 : VRRP Virtual Router의 IP 주소
![GLBP[개요] • GLBP [Gateway Load Balancing Protocol] • MHSRP, MVRRP의 약점을 보완하기 위해 만들어짐 GLBP[개요] • GLBP [Gateway Load Balancing Protocol] • MHSRP, MVRRP의 약점을 보완하기 위해 만들어짐](http://slidetodoc.com/presentation_image_h/9a2d7818e6f989f46e7c919469a8ee0d/image-13.jpg)
GLBP[개요] • GLBP [Gateway Load Balancing Protocol] • MHSRP, MVRRP의 약점을 보완하기 위해 만들어짐 – 로드밸런싱을 별도로 구현해야함 • 시스코 고유의 프로토콜 • 라우터들 사이에서 패킷 Load Sharing을 수행하고 동시에 백업라인구성으로 라우터 장애대비 Feature History Release Modification 12. 2(14)S This feature was introduced. 12. 2(15)T This feature was integrated into Cisco IOS Release 12. 2(15)T Supported Platforms Cisco 1700 series, Cisco 2600 series, Cisco 3620, Cisco 3631, Cisco 3640, Cisco 3660, Cisco 3725, Cisco 3745, Cisco 7100 series, Cisco 7200 series, Cisco 7400 series, Cisco 7500 series


![GLBP[구현] • 구현명령 – – – 1. 2. 3. 4. 5. • 6. • GLBP[구현] • 구현명령 – – – 1. 2. 3. 4. 5. • 6. •](http://slidetodoc.com/presentation_image_h/9a2d7818e6f989f46e7c919469a8ee0d/image-16.jpg)
GLBP[구현] • 구현명령 – – – 1. 2. 3. 4. 5. • 6. • 7. • 8. • 9. 10. 11. 12. enable configure terminal interface type number ip address ip-address mask [secondary] glbp group authentication text string 다른 라우터로부터 받은 GLBP 패킷을 인증화함, 그룹번호는 0~1023 glbp group forwarder preempt [delay minimum seconds] 현재 다른 라우터보다 더 높은 우선순위를 부여하면 새로운 AVF로 선출된다. glbp group load-balancing [host-dependent | round-robin | weighted] GLBP AVG에 의해서 사용될 로드밸런싱 방법을 선택 glbp group preempt [delay minimum seconds] 현재 다른 라우터보다 더 높은 우선순위를 부여하면 새로운 AVG로 선출된다. glbp group priority level glbp group timers [msec] hellotime [msec] holdtime glbp group timers redirect timeout exit
![GLBP[구현] • GLBP 구현 glbp 1 load-balancing round-robin Int fa 0/1 glbp 1 ip GLBP[구현] • GLBP 구현 glbp 1 load-balancing round-robin Int fa 0/1 glbp 1 ip](http://slidetodoc.com/presentation_image_h/9a2d7818e6f989f46e7c919469a8ee0d/image-17.jpg)
GLBP[구현] • GLBP 구현 glbp 1 load-balancing round-robin Int fa 0/1 glbp 1 ip 1. 1 glbp 1 priority 140 AVG standby AVF AVG SW 1 Int fa 0/1 glbp 1 ip 1. 1 glbp 1 priority 40 AVF SW 2 AVF SW 3 glbp 1 load-balancing round-robin Int fa 0/1 glbp 1 ip 1. 1 glbp 1 priority 150 glbp 1 preempt SW 4 Int fa 0/1 glbp 1 ip 1. 1 glbp 1 priority 40 Default gateway 1. 1

![SLB [Server Load Balancing] • 서버팜 구현 명령어 – – #ip slb serverfarm name SLB [Server Load Balancing] • 서버팜 구현 명령어 – – #ip slb serverfarm name](http://slidetodoc.com/presentation_image_h/9a2d7818e6f989f46e7c919469a8ee0d/image-19.jpg)
SLB [Server Load Balancing] • 서버팜 구현 명령어 – – #ip slb serverfarm name #predictor {roundrobin | leastconns} • 디폴트로 weighted round-robin – – – 방식 #real ip address • 실제 서버의 IP 주소 #weight value • 실제 서버의 weight값(1~255, 디 폴트 8) #inservice • 실제 서버 기능 시작 • 버츄얼 서버 구현 명령 어 – – – #ip slb vserverfarm name #virtual ip address • 버츄얼 서버의 IP 주소 • 외부 host들의 접근 주소 #client ip address wildcard_mask • 접속 가능한 Host만을 설정 • 미설정시 모두 접속 가능 #inservice • 버츄얼 서버 기능 시작
![SLB [구현] 1. 10 1. 11 클라이언트 10. 0 255. 0. 0. 0 [실제 SLB [구현] 1. 10 1. 11 클라이언트 10. 0 255. 0. 0. 0 [실제](http://slidetodoc.com/presentation_image_h/9a2d7818e6f989f46e7c919469a8ee0d/image-20.jpg)
SLB [구현] 1. 10 1. 11 클라이언트 10. 0 255. 0. 0. 0 [실제 서버팜] 실제의 서버 팜 WEB_SERVER 버츄얼 서버 1. 1 CISCO_AS _SERVER 1. 12 #ip slb serverfarm WEB_SERVER #predictor {roundrobin | leastconns [버츄얼 서버] #real 1. 10 : #weight 5 #inservice #real 1. 11 : #weight 10 #inservice #real 1. 12 : # weight 20 #inservice #ip slb vserver CISCO_AS_SERVER #serverfarm WEB_SERVER #virtual 1. 1 #client 10. 0 0. 255 #inservice

네떡 겅부 열쒸미! ▶ 참고자료 http: //www. cisco. com/en/US/products/sw/iosswrel/ps 1839/products_white_paper 09186 a 00801541 c 8. shtml#wp 1027173 http: //www. cisco. com/en/US/tech/tk 648/tk 362/technologies_tech_note 09186 a 0080094 afd. shtml http: //www. cisco. com/en/US/products/ps 6550/products_white_paper 09186 a 0080080 a 60. shtml
- Slides: 21