CCNP(SWITCH)

12일차 이중화 게이트웨이 프로토콜

컴공 2013. 3. 22. 01:53
반응형

HSRP의 구성도

 
이중화 장비에는 3가지가 있다.
HSRP - Host Standby Redundancy Protocol
VRRP
GLBP

preempt : 선점할 수 있게 만드는 권한. 50~ 60초 정도로 해야지, 트렁크가 잡을 시간을 줄 수 있다.
msec : 1/1000 초 200msec = 0.2초

L3 스위치는 SVI와 routed port로 쓰일 수 있다.
SVI (switch virtual interface) : 각각의 VLAN을 진짜 라우터로 만듬 || # interface vlan
routed port : 가상화된 포트를 IP할당이 가능한 진짜 라우터 포트로 만듬 || # no switchport

 
스위치 L3 장비를 라우터와 연결할 때에 라우터 기능으로 사용하기 위해서 F0/0과 F0/1은 사용하지 않는다. 이 스위치 포트는 라우터 기능이 동작하지 않는 포트이다.

sw3#show standby brief P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP
Vl100 1 100 P Standby 1.1.100.201 local 1.1.100.254

vlan 100 인터페이스에 1번 그룹이고 priority(우선순위)는 기본값인 100, preempt(선점)이 설정되었고, 준비한 사람은 (local)이다. 할당된 가상 IP는 254이다

Switch(config)# interface vlan 10
Switch(config-if)# ip address 10.1.1.2 255.255.255.0
Switch(config-if)# standby 10 10.1.1.1
Switch(config-if)# standby 10 priority 110
Switch(config-if)# standby 10 preempt
Switch(config-if)# standby 10 authentication xyz123
Switch(config-if)# stnadby 10 timers msec 200 msec 750
Switch(config-if)# standby 10 preempt delay minimum 300

0.200초 (200 millisecond)의 timer와 0.750초의 holdtime을 가지고 있다. 홀드타임이 끝난 후 교체한다.

R1>
interface fastethernet 0/1
ip address 1.1.100.1 255.255.255.0
no shutdown
ip route 0.0.0.0 0.0.0.0 1.1.100.254
R2>
interface fastethernet 0/1
ip address 1.1.100.2 255.255.255.0
no shutdown
ip route 0.0.0.0 0.0.0.0 1.1.100.254

SW1>
vlan 100
interface fastethernet 1/15
switchport mode access
switchport access vlan 100
interface vlan 100
ip address 1.1.100.201 255.255.255.0
interface fastethernet 1/13
no switchport
ip address 1.1.14.1 255.255.255.0
ip routing
router ospf 1
network 1.1.14.1 0.0.0.0 area 0
network 1.1.100.201 0.0.0.0 area 0
passive-interface vlan 100

< HSRP 설정 >
interface vlan 100
standby 1 ip 1.1.100.254
standby 1 priority 110
standby 1 preempt delay minimum 60
standby 1 authentication ccnp

SW2>
vlan 100
exi
interface range fa1/1 - 2 ,fa1/11 ,fa1/15
switchport mode access
switchport access vlan 100

SW3>
vlan 100
interface fastethernet 1/13
switchport mode access
switchport access vlan 100
interface vlan 100
ip address 1.1.100.203 255.255.255.0
interface fastethernet 1/15
no switchport
ip address 1.1.34.3 255.255.255.0
ip routing
router ospf 3
network 1.1.34.3 0.0.0.0 area 0
network 1.1.100.203 0.0.0.0 area 0
passive-interface vlan 100

< HSRP 설정 >
interface vlan 100
standby 1 ip 1.1.100.254
standby 1 preempt
standby 1 authentication ccnp

SW4>
ip routing
interface loopback 0
ip address 1.1.4.4 255.255.255.0
interface fastethernet 1/11
no switchport
ip address 1.1.14.4 255.255.255.0
interface fastethernet 1/15
no switchport
ip address 1.1.34.4 255.255.255.0
router ospf 4
network 1.1.4.4 0.0.0.0 area 0
network 1.1.14.4 0.0.0.0 area 0
network 1.1.34.4 0.0.0.0 area 0



 

반응형