일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 레지오젯
- 잘츠부르크 김치
- 비엔나 여행
- 체스키
- vi편집기
- 트렌드코리아
- init 0
- 클라우드
- 도서평
- 김난도
- 초단파방송
- CK셔틀
- BGP AS_Path prepend
- 무차별 공격
- 모차르트 동상
- PIM-SM
- 딥러닝
- 체스키크롬로프
- 잘츠부르크 여행
- 오스트리아
- 오스트리아 여행
- 리눅스
- html5
- 프라하
- BGP
- 체코
- 소극적 공격
- 적극적 공격
- 할슈타트 페리
- init 6
- Today
- Total
AndrewNA
HSRP(Hot Standby Router Protocol ), MHSRP(Multigroup HSRP) 이론 및 실습 본문
HSRP(Hot Standby Router Protocol ), MHSRP(Multigroup HSRP) 이론 및 실습
N's Story 2019. 3. 20. 21:48HSRP(Hot Standby Router Protocol )
HSRP는 시스코에서의 장비 이중화 기술이며, 메인/백업 구성시 메인 장비가 장애났을 경우 백업 장비가 메인이 되는 것을 말한다.
MHSRP(Multigroup HSRP)
MHSRP는 HSRP의 이중화 기술을 말한다. 일종의 로드밸런스 개념으로 분산수용한다.
Topology
Command
현재 VLAN 10은 R1의 라우터 VLAN 20은 R2의 라우터의 경로를 이용하고 있다. 이 때 HSRP를 사용하여 기존 경로를 이용할 수 없을 시 다른 경로로 대체하겠다.
-R1-
spanning-tree vlan 10 priority 0
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet1/0
switchport mode trunk
!
interface FastEthernet1/1
switchport mode trunk
!
interface Vlan1
no ip address
!
interface Vlan10
ip address 172.16.10.1 255.255.255.0
standby 10 ip 172.16.10.254 // 가상 ip
standby 10 priority 120 // 초기 우선순위(높을수록 우선)
standby 10 preempt // 우선순위 전달(양쪽에 입력)
standby 10 track FastEthernet0/0 30 // fa0/0 down 시 우선순위 -30(default 10)
!
interface Vlan20
ip address 172.16.20.2 255.255.255.0
standby 20 ip 172.16.20.254
standby 20 preempt
!
router ospf 1
log-adjacency-changes
network 172.16.10.0 0.0.0.255 area 0
network 172.16.20.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
!
-R2-
spanning-tree vlan 20 priority 0
!
interface FastEthernet0/0
ip address 192.168.1.6 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet1/0
switchport mode trunk
!
interface FastEthernet1/1
switchport mode trunk
!
interface Vlan1
no ip address
!
interface Vlan10
ip address 172.16.10.2 255.255.255.0
standby 10 ip 172.16.10.254
standby 10 preempt
!
interface Vlan20
ip address 172.16.20.1 255.255.255.0
standby 20 ip 172.16.20.254
standby 20 priority 120
standby 20 preempt
standby 20 track FastEthernet0/0 30
!
router ospf 1
log-adjacency-changes
network 172.16.10.0 0.0.0.255 area 0
network 172.16.20.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
-R3-
interface FastEthernet0/0
switchport mode trunk
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
switchport access vlan 10
!
interface FastEthernet0/3
switchport access vlan 20
-R4-
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 192.168.1.5 255.255.255.252
duplex auto
speed auto
!
interface Serial2/0
ip address 100.100.100.1 255.255.255.252
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
network 100.100.100.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
-R5-
interface Serial0/2
ip address 100.100.100.2 255.255.255.0
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
network 100.100.100.0 0.0.0.255 area 0
-R6-
interface FastEthernet0/0
ip address 172.16.10.10 255.255.255.0
no ip route-cache
duplex auto
speed auto
!
ip default-gateway 172.16.10.1
Check
R1#show standby brief
R1은 VLAN 10의 Active 라우터
R2#show standby brief
R2는 VLAN 20의 Active 라우터
R2는 VLAN 20의 Active 라우터가 된다. 이 때 R1의 인터페이스 f0/0을 shut 해주면 우선순위가 90으로 바뀌면서 VLAN 10의 경로가 우선순위가 100인 R2의 경로로 바뀐다. 그러면 R1은 VLAN 10의 Standby 라우터 상태가 된다.
R2에서 확인해보면 VLAN 10, 20 모두 Active 라우터
'■ Communications > ↘ Cisco GNS' 카테고리의 다른 글
VRRP 이론 및 실습 (0) | 2019.03.25 |
---|---|
IP SLA 이론 및 실습 (0) | 2019.03.25 |
MSTP(Multiple Spanning Tree Protocol) 이론 및 실습 (1) | 2019.03.19 |
RSTP(Rapid STP) 이론 및 실습 (0) | 2019.03.18 |
이더채널(EtherChannel) 이론 및 실습 (0) | 2019.03.14 |