1. VRRP
Virtual Router Redundancy Protocol
νμ€ κ²μ΄νΈμ¨μ΄ μ΄μ€ν νλ‘ν μ½μ΄λ€. HSRPμ λ¬λ¦¬ μ¬λ¬ λ²€λ μ₯λΉμμ μ¬μ©ν μ μλ€.

VRRP μν
Virtual Router Master :
κ²μ΄νΈμ¨μ΄ μν μ νλ λΌμ°ν°.
Master λΌμ°ν° μ μΆμ ‘κ°μIPμ μ€μ IPκ° λμΌν λΌμ°ν°’ β ‘VRRPμ μ°μ μμκ° λμ λΌμ°ν°’ β ‘μΈν°νμ΄μ€ IPκ° λμ λΌμ°ν°’ μμ΄λ€.
Virtual Router Backup :
Master λΌμ°ν° μ₯μ μ μν μ μ΄μ΄λ°λ λΌμ°ν°.
VRRP νΉμ§
- λͺ©μ μ§ IP : 224.0.0.18 , Multicast.
- IPv4 ν¨ν· λ΄ ‘Protocol’ νλ : 112λ²
- Master λΌμ°ν°λ 1μ΄λ§λ€ VRRP μ°μ μμ μ μνλ₯Ό κ΄κ³ νλ€.
- μ€μ μ€μ λ μΈν°νμ΄μ€ IPλ₯Ό κ°μIPλ‘ μ¬μ©ν μ μλ€.
VRRP μΈμ¦
곡격μκ° Master λΌμ°ν°λ‘ μ μΆλλ κ²μ λ°©μ§νκΈ° μν΄ Plain-Text, MD5 μΈμ¦μ μ€μ ν μ μλ€.
2. VRRP μ€μ

κΈ°λ³Έμ€μ β VRRP μ€μ β VRRP μ€μ νμΈ β VRRP μΈμ¦
[κΈ°λ³Έ]
– IP μ€μ
κ° μ₯λΉμ μΈν°νμ΄μ€
(PC GWλ Virtual IPλ‘ μ€μ )
– OSPF λΌμ°ν
R1 fa0/0, fa1/0
R2 fa0/1, fa1/0
SW2 fa0/0, fa0/1, loopback 0
[VRRP μ€μ ]
R1(config)# track 1 int fa1/0 line-protocol R1(config-track)# exit R1(config)# R1(config)# int fa1/0 R1(config-if)# vrrp 1 ip 10.10.100.253 R1(config-if)# vrrp 1 priority 105 R1(config-if)# vrrp 1 preempt delay minimum 180 R1(config-if)# vrrp 1 timers advertise 1 R1(config-if)# vrrp 1 timers learn R1(config-if)# vrrp 1 track 1 R2(config)# int fa1/0 R2(config-if)# vrrp 1 ip 10.10.100.253 R2(config-if)# vrrp 1 timers advertise 1 R2(config-if)# vrrp 1 timers learn
2: κ°μν μΈν°νμ΄μ€λ κ²½λ‘λ₯Ό μ§μ νλ€. line-protocol μ΅μ
μ μ¬μ©νλ©΄ ν΄λΉ μΈν°νμ΄μ€μ Layer 2 μνμ λ°λΌ Up / Down μνλ‘ νλ¨νλ€. κ²½λ‘λ₯Ό μ§μ νκ³ μ νλ€λ©΄, “track 2 ip route 10.10.0.1/32 reachability” μ΄λ κ² ν μ μλ€.
6: vrrp κ·Έλ£Ήμ 1-255 μ¬μ΄λ‘ μ§μ ν μ μλ€.
7: κΈ°λ³Έ Priorityλ 100μ΄λ€. R1μ Master λΌμ°ν°λ‘ μ μ νκΈ° μν΄ Priority 105λ‘ μ€μ νλ€.
8: Master λΌμ°ν°κ° μ₯μ λ‘ μΈν΄ Backup λΌμ°ν°λ‘ λ³κ²½λμμ λ, μ₯μ 볡ꡬ μ΄ν λ€μ Master λΌμ°ν°λ‘ λμν μ μκ² νλ€. κΈ°λ³Έμ μΌλ‘ μΈν°νμ΄μ€κ° λ€μ νμ±ν(μ₯μ 볡ꡬ)λμ λ, λ°λ‘ Master λΌμ°ν°λ‘ λμκ°λλ° λΌμ°ν
ν
μ΄λΈ λ―Έμμ±μΌλ‘ μ λλ‘ λ ν΅μ μ νμ§ λͺ»νλ κ²½μ°κ° λ°μν μ μλ€. κ·Έλμ μΈν°νμ΄μ€κ° λ€μ νμ±νλκ³ λμ 180μ΄ μ΄ν Masterλ‘ λμλλλ‘ μ€μ νλ€.
9: vrrp κ΄κ³ μ£ΌκΈ°λ₯Ό 1μ΄λ‘ μ§μ νλ€. μ¬μ€ κΈ°λ³Έκ°μ΄ 1μ΄μ΄λ―λ‘ κ΄κ³ μ£ΌκΈ°λ₯Ό κ·Έλλ‘ 1μ΄λ‘ μ¬μ©ν κ±°λΌλ©΄, λ³λλ‘ μ€μ νμ§ μμλ λλ€. VRRP λΌμ°ν°λ€λΌλ¦¬ κ΄κ³ μ£ΌκΈ°κ° λ°λμ λμΌν΄μΌ νλ€. μλ‘ λ€λ₯΄λ€λ©΄ VRRPκ° λμνμ§ μλλ€.
10: Master λΌμ°ν°μ μ€μ λ VRRP κ΄κ³ μ£ΌκΈ° κ°μ λ°°μ°λλ‘ νλ€. μ§κΈμΌλ‘μ¨λ μΆν Masterμνμμ BackupμΌλ‘ λ³κ²½λ λ, μ μ©λλ€. μμ μ΄μΌκΈ°ν κ΄κ³ μ£ΌκΈ°κ° λ¬λΌ VRRPκ° λμνμ§ μλ μν©μ λ°©μ§νλ μ€μ μ΄λ€.
[VRRP μ€μ νμΈ]
– show vrrp brief

– show vrrp

[VRRP μΈμ¦]
– Plain-Text μΈμ¦
R1(config)# int fa1/0 R1(config-if)# vrrp 1 authentication text <WORD> R2(config)# int fa1/0 R2(config-if)# vrrp 1 authentication text <WORD>
– MD5 μΈμ¦ (Key-String)
R1(config)# int fa1/0 R1(config-if)# vrrp 1 authentication md5 key-string <WORD> R2(config)# int fa1/0 R2(config-if)# vrrp 1 authentication md5 key-string <WORD>
– MD5 μΈμ¦ (Key-Chain)
R1(config)# key chain <NAME> R1(config-keychain)# key [0-2147483647] R1(config-keychain-key)# key-string <WORD> R1(config-keychain-key)# exit R1(config-keychain)# exit R1(config)# R1(config)# int fa1/0 R1(config-if)# vrrp 1 authentication md5 key-chain <NAME> R2(config)# key chain <NAME> R2(config-keychain)# key [0-2147483647] R2(config-keychain-key)# key-string <WORD> R2(config-keychain-key)# exit R2(config-keychain)# exit R2(config)# R2(config)# int fa1/0 R2(config-if)# vrrp 1 authentication md5 key-chain <NAME>
3. VRRP λΆν λΆμ°
MHSRPμ²λΌ VRRPλ κ° κ·Έλ£Ήλ³λ‘ Master λΌμ°ν°λ₯Ό μ§μ νμ¬ λΆν λΆμ°μ ν μ μλ€.

R1κ³Ό R2λ₯Ό VRRP 1, 2 κ·Έλ£ΉμΌλ‘ λλκ³ ,
κ°κ° 10.10.100.253 / 10.10.100.254λ₯Ό ν λΉνλ€.
PCμ GWλ κ°κ° μ§μ νλ€.
μ΄λ κ² VRRP λΆν λΆμ°μ ν μ μλ€.
[VRRP λΆν λΆμ° μ€μ ]
R1(config)# track 1 int fa1/0 line-protocol R1(config-track)# exit R1(config)# R1(config)# int fa1/0 R1(config-if)# vrrp 1 ip 10.10.100.253 R1(config-if)# vrrp 1 priority 105 R1(config-if)# vrrp 1 preempt delay minimum 180 R1(config-if)# vrrp 1 timers advertise 1 R1(config-if)# vrrp 1 timers learn R1(config-if)# vrrp 1 track 1 R1(config-if)# R1(config-if)# vrrp 2 ip 10.10.100.254 R1(config-if)# vrrp 2 timers advertise 1 R1(config-if)# vrrp 2 timers learn R2(config)# track 1 int fa1/0 line-protocol R2(config-track)# exit R2(config)# R2(config)# int fa1/0 R2(config-if)# vrrp 1 ip 10.10.100.253 R2(config-if)# vrrp 1 timers advertise 1 R2(config-if)# vrrp 1 timers learn R2(config-if)# R2(config-if)# vrrp 2 ip 10.10.100.254 R2(config-if)# vrrp 2 priority 105 R2(config-if)# vrrp 2 preempt delay minimum 180 R2(config-if)# vrrp 2 timers advertise 1 R2(config-if)# vrrp 2 timers learn R2(config-if)# vrrp 2 track 1