-
GRE TunnelingNetwork Theory 2022. 11. 15. 20:09
GRE (Generic Routing Encapsulation) 란?
- 시스코에서 제작한 터널링 프로토콜이다.
- 데이터 암호화를 제공하지 않는다는 특징이 있다.
GRE 프로토콜 구조
- 원래 패킷에 GRE 헤더를 캡슐화하여 붙인다.
- GRE 헤더가 총 24byte인데 기존 MTU 1500byte 패킷을 1476byte로 수정하여 사이즈를 맞춰주게 된다.
http://www.ktword.co.kr/test/view/view.php?m_temp1=1606 GRE 터널링 구분
Point to Point GRE
Multipoint GRE
Point to Point GRE 세팅 방법
1. Router(config)# interface tunnel 0 //tunnel interface를 열어준다. 2. Router(config-if)# ip add [IP 주소] [서브넷 마스크] //tunnel ip 주소를 할당한다. 3. Router(config-if)# tunnel source [물리적 인터페이스] //ip의 출발지를 지정한다. 4. Router(config-if)# tunnel destination [도착지 주소] //ip의 목적지를 지정한다.
1. tunnel interface를 열어준다.
2. tunnel ip주소를 할당한다.
3. ip의 출발지를 지정한다.4. ip의 목적지를 지정한다.
'Network Theory' 카테고리의 다른 글
GRE over IPsec (0) 2022.11.16 DMVPN (Dynamic Multipoint VPN) - mGRE, NHRP (0) 2022.11.15