# 가상 라우터 장애 복구 프로토콜
# 게이트웨이 이중화
# 부하 분산
ㅁ VRRP?
여러 대의 라우터를 그룹으로 묶어 하나의 가상 IP 주소를 부여하고, 마스터로 지정된 라우터의 장애시 VRRP 그룹내의 백업 라우터가 마스터로 자동 전환되는 프로토콜을 말한다.
이중화된 라우터들에게 동일한 가상 MAC 주소를 부여한다. 이 때에 2개의 라우터는 VRRP를 통해 주기적으로 신호를 보내며 상태를 확인하고 GRAP(Gratuitous ARP)를 통해 네트워크 상의 MAC 주소 테이블과 ARP 테이블을 갱신시킨다.
가상의 라우터 IP를 게이트웨이 주소로 주로 사용하며 *1) HSRP 와는 다르게 실제 인터페이스의 IP 주소를 사용할 수도 있다.
가상 라우터는 MAC 주소로 '00-00-5E-00-01-XX'를 사용하여야 한다. 주소의 마지막 바이트 (XX)는 VRID(Virtual Router IDentifier)이며 네트워크의 각 가상 라우터마다 다르다.
이 주소는 한번에 하나의 물리적 라우터에서만 사용되며 가상 라우터의 IP 주소에 대한 ARP 요청이 전송될 때 이 MAC 주소로 응답한다.
가상 라우터 내의 물리적 라우터는 멀티 캐스트 IP 주소가 '224.0.0.18' 이고 프로토콜 번호가 112인 패킷을 사용하여 자체적으로 통신해야 한다.
라우터는 1~254 사이의 우선순위를 가지며 우선순위가 가장 높은 라우터가 Primary / Active가 된다.
기본 우선순위는 100으로 MAC 주소 소유자의 경우 우선수위는 항상 255.
ㅁ 라우터 가상 이미지(Vyos)를 사용하여 VRRP 환경 구성
# cat /config/config.boot
# Release version : VyOS 1.1.8
# Master
set interfaces ethernet eth(M) address 192.168.10.1/24
set interfaces ethernet eth(M) vrrp vrrp-group 10
set interfaces ethernet eth(M) vrrp vrrp-group 10 virtual-address 192.168.10.100/24
set interfaces ethernet eth(M) vrrp vrrp-group 10 preempt true
set interfaces ethernet eth(M) vrrp vrrp-group 10 priority 150
# BackUP
set interfaces ethernet eth(M) address 192.168.10.254/24
set interfaces ethernet eth(M) vrrp vrrp-group 10
set interfaces ethernet eth(M) vrrp vrrp-group 10 virtual-address 192.168.10.100/24
set interfaces ethernet eth(M) vrrp vrrp-group 10 priority 150
commit
save
# Routing Table Create
# Self....
1) HSRP(Hot Standby Router Protocol)
우선 순위가 가장 높은 기본 라우터는 사전 정의 된 게이트웨이 IP 주소를 가진 가상/라우터 역할을 수행하며, 가상 MAC 주소를 사용하여 LAN에 연결된 컴퓨터의 ARP 또는 ND 요청에 응답한다.
기본 라우터에 장애가 발생하면 다음으로 높은 우선 순위를 가진 라우터가 게이트웨이 IP 주소를 인수하고 동일한 MAC 주소로 ARP 요청에 응답하여 투명한 기본 게이트웨이 장애 조치를 달성한다.
References
1. Wikipedia - "Virtual Router Redundancy Protocol"
en.wikipedia.org/wiki/Virtual_Router_Redundancy_Protocol
Virtual Router Redundancy Protocol - Wikipedia
inter-router protocol that automaticaly assigns routers to hosts The Virtual Router Redundancy Protocol (VRRP) is a computer networking protocol that provides for automatic assignment of available Internet Protocol (IP) routers to participating hosts. This
en.wikipedia.org
2. NetMainAs - "VRRP(Virtual Router Redundancy Protocol) 상세 동작 원리"
VRRP (Virtual Router Redundancy Protocol) 상세 동작 원리
VRRP (Virtual Router Redundancy Protocol) 상세 동작 원리를 설명한 문서입니다.
www.netmanias.com
3. johyungen - "6) 게이트웨이 이중화 - VRRP (부하 분산)"
6) 게이트웨이 이중화 - VRRP (부하 분산)
*VRRP (Virtual Router Redundancy Protocol) IBM에서 개발한 게이트웨이 이중화로서 VRRP 그룹에서 게이트웨이를 수행하는 Master라우터를 선출하고 Master라우터가 장애시 바로 사용 가능한 Backup라우터를 선출.
johyungen.tistory.com
4. Wikipedia - "Hot Standby Router Protocol"
en.wikipedia.org/wiki/Hot_Standby_Router_Protocol
Hot Standby Router Protocol - Wikipedia
Network system for establishing a fault-tolerant default gateway In computer networking, the Hot Standby Router Protocol (HSRP) is a Cisco proprietary redundancy protocol for establishing a fault-tolerant default gateway. Version 1 of the protocol was desc
en.wikipedia.org
5. SysNet4Admin - "[VyOS] VRRP 구성하기"
sysnet4admin.blogspot.com/2018/05/vyos-vrrp.html#.YDYAyegzaiM
[VyOS] VRRP 구성하기
시스템/네트워크 엔지니어를 위한 파이썬 및 최신 기술에 대한 블로그입니다.
sysnet4admin.blogspot.com
6. vyos docs "High availablility"
docs.vyos.io/en/latest/configuration/highavailability/
High availability — VyOS 1.4.x (sagitta) documentation
High availability VRRP (Virtual Router Redundancy Protocol) provides active/backup redundancy for routers. Every VRRP router has a physical IP/IPv6 address, and a virtual address. On startup, routers elect the master, and the router with the highest priori
docs.vyos.io
'Network' 카테고리의 다른 글
Vyos - Internet Routing (0) | 2021.02.24 |
---|---|
ARP(Address Resolution Protocol) (0) | 2021.02.23 |
ACL(Access Control List) (0) | 2021.02.23 |
OSI 7 Layer (0) | 2020.06.04 |