Dell Networking OS10 GRE 구성 소개

Summary: GRE(Generic Routing Encapsulation)는 네트워크를 통해 두 라우터 간에 가상 지점 간 연결을 설정하는 데 사용되는 IP 캡슐화 프로토콜입니다. 일반적으로 서로 다른 사이트 간에 RIP 및 OSPF와 같은 라우팅 프로토콜을 터널링하는 데 사용됩니다. GRE는 Request for Comments(RFC 2784)에 설명되어 있습니다. ...

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

다루는 주요 주제 

GRE 터널 구성:
  • GRE 터널은 GRE 패킷을 직접 보내고 받도록 두 라우터 간에 구성됩니다.
  • 구성에는 터널 인터페이스를 설정하고 터널 모드, 소스 및 대상을 지정하는 작업이 포함됩니다. 
제한 사항:
  • 최대 100개의 터널 지원
  • IPv6는 언더레이 및 오버레이 경로에서 지원되지 않습니다.
  • 특정 인터페이스 및 IP 주소는 GRE 터널과 함께 사용할 때 제한이 있습니다. 
터널 연결 유지 설정:
  • ICMP(Internet Control Message Protocol) 에코 및 회신 패킷을 사용하여 터널 엔드포인트 도달 가능성을 모니터링하기 위해 keepalive 설정을 구성합니다. 
ECMP(Equal-Cost MultiPath) 오버레이 및 언더레이:
  • 사용 가능한 경로 간에 트래픽을 분산하기 위한 ECMP 로드 공유
  • 오버레이 및 언더레이 ECMP 경로에 대해 지원되는 조합입니다. 
명령 및 예:
  • GRE 터널, keepalive 설정 및 ECMP 경로를 구성하기 위한 자세한 명령 구문 및 예시 

잘못된 구성으로 인해 발생할 수 있는 문제 

터널 플래핑:
  • keepalive 설정이 잘못되면 터널이 자주 오르락내리락하여 불안정해질 수 있습니다. 
MTU 불일치:
  • MTU 설정이 다른 경로에 대한 GRE 터널로 인해 패킷 조각화 또는 손실이 발생할 수 있습니다. 
라우팅 루프:
  • 잘못 구성된 라우팅은 루프로 이어져 과도한 트래픽과 잠재적인 네트워크 중단을 일으킬 수 있습니다. 

모범 사례 

일관된 MTU 설정:
  • 조각화를 방지하기 위해 GRE 터널에서 MTU 설정이 일관되는지 확인합니다. 
적절한 Keepalive 구성:
  • 터널 상태를 모니터링하고 불필요한 플래핑을 방지하도록 keepalive 설정을 구성합니다. 
명확한 문서:
  • 터널 구성 및 관련 경로에 대한 명확한 문서를 유지하여 구성 오류를 방지합니다. 

GRE 터널의 활용 사례. 

원격 사이트 연결:
  • GRE 터널은 인터넷을 통해 원격 사이트를 연결할 수 있으므로 안전하고 효율적인 통신이 가능합니다. 
비 IP 트래픽 터널링:
  • GRE는 비 IP 트래픽을 캡슐화할 수 있으므로 다양한 네트워크 프로토콜에 다용도로 사용할 수 있습니다. 
로드 밸런싱:
  • GRE 터널과 함께 ECMP를 사용하면 트래픽 로드를 여러 경로에 분산하여 네트워크 성능을 향상시킬 수 있습니다. 

네트워크 토폴로지 예 

인터넷을 통해 연결된 두 개의 원격 사이트, 사이트 A와 사이트 B가 있는 네트워크를 상상해 보십시오. 각 사이트에는 GRE 터널이 구성된 라우터가 있습니다. 
 

토폴로지는 다음과 같습니다.

 
사이트 A(10.10.10.0/24) ---- OS10-1 ---- 인터넷 ---- OS10-2 ---- 사이트 B(10.20.10.0/24)

위상수학 

GRE 소개
제한 구성

OS10(config)# interface tunnel 10
OS10(conf-if-tunnel-10)# <165>1 2022-11-11T17:55:16.614662+00:00 OS10 dn_alm 731 - - 
 Node.1-Unit.1:PRI [event], Dell (OS10) %IFM_ASTATE_UP: Interface admin state up 
:tunnel10
OS10(conf-if-tunnel-10)# ip vrf forwarding red
% Error: Interface tunnel10, Tunnel mode is mandatory config and must exist for other 
tunnel configs.
OS10(conf-if-tunnel-10)# mode gre-ipv4
OS10(conf-if-tunnel-10)# ip vrf forwarding red
OS10(conf-if-tunnel-10)# ip address 120.1.1.1/24
OS10(conf-if-tunnel-10)# <165>1 2022-11-11T17:55:31.454972+00:00 OS10 dn_alm 731 - - 
 Node.1-Unit.1:PRI [event], Dell (OS10) %IP_ADDRESS_ADD: IP Address add is successful. 
 IP 120.1.1.1/24 in VRF:red added successfully
OS10(conf-if-tunnel-10)# tunnel destination 16.16.16.16
OS10(conf-if-tunnel-10)# tunnel source loopback10
OS10(conf-if-tunnel-10)# <165>1 2022-11-11T17:56:17.197783+00:00 OS10 dn_alm 731 - - 
 Node.1-Unit.1:PRI [event], Dell (OS10) %IFM_OSTATE_UP: Interface operational state is 
up :tunnel10

구성 유지

OS10(conf-if-tunnel-10)# show configuration
!
interface tunnel10
mode gre-ipv4
no shutdown
ip vrf forwarding red
ip address 120.1.1.1/24
tunnel destination 10.10.10.10
tunnel source loopback10
keepalive down-timer 10
keepalive enable
keepalive probe-interval 6
keepalive up-timer 12

구성 유지-1 
GRE 터널 ECMP 오버레이 및 언더레이 

언더레이 ECMP 라우팅 오버레이 ECMP 라우트 지원됨
정적 정적
정적 최단 경로 우선(OSPF) 예 
정적 BGP(Border
최단 경로 우선(OSPF) 정적
최단 경로 우선(OSPF) 최단 경로 우선(OSPF) No
최단 경로 우선(OSPF) BGP(Border
BGP(Border 정적
BGP(Border 최단 경로 우선(OSPF)
BGP(Border BGP(Border No

 

GRE 터널 ECMP 오버레이 및 언더레이 구성   
OS10(config)# hardware overlay-ecmp-profile mode balanced-overlay-ecmp
OS10(config)# <165>1 2022-10-11T10:25:26.474891+00:00 AG1-9978 dn_alm 717 - - Node.1-
Unit.1:PRI [event], Dell (OS10) %VXLAN_OVERLAY_ECMP_PROFILE_MODIFIED: VxLAN Overlay 
ECMP: Configuration is modified, Save and Reload the device for the profile to be 
effect
다중 ECMP  
OS10# show running-configuration interface tunnel 21
!
interface tunnel21
 mode gre-ipv4
 no shutdown
 ip address 10.10.10.2/24
 tunnel destination 5.5.5.5
 tunnel source loopback3
OS10# show running-configuration interface tunnel 22
!
interface tunnel22
 mode gre-ipv4
 no shutdown
 ip address 10.10.10.3/24
 tunnel destination 6.6.6.6
 tunnel source loopback4
OS10# show running-configuration interface tunnel 23
!
interface tunnel23
 mode gre-ipv4
 no shutdown
 ip address 10.10.10.4/24
 tunnel destination 7.7.7.7
 tunnel source loopback5
OS10# show running-configuration interface tunnel 24
!
interface tunnel24
 mode gre-ipv4
 no shutdown
 ip address 10.10.10.5/24
 tunnel destination 8.8.8.8
 tunnel source loopback6
OS10# show running-configuration route
!
ip route 77.1.1.0/24 100.1.1.2
ip route 77.1.1.0/24 10.10.10.2
ip route 77.1.1.0/24 10.10.10.3
ip route 77.1.1.0/24 10.10.10.4
ip route 77.1.1.0/24 10.10.10.5
OS10# show ip route 10.1.1.0/24
Routing entry for 77.1.1.0/24 
Known via static 
Distance 1, Metric 0
Last update 08:57:53
Routing descriptors Blocks:
 via 100.1.1.2 tunnel10
 via 10.10.10.2 tunnel21
 via 10.10.10.3 tunnel22
 via 10.10.10.4 tunnel23
 via 10.10.10.5 tunnel24
언더레이 ECMP 구성 방법  
OS10# show ip route 67.67.67.0/24
Routing entry for 67.67.67.0/24 
Known via ospf, type 
Distance 110,
Metric 21
Last update 09:35:46
Routing descriptors Blocks:
 via 10.1.1.2 ethernet1/1/25:1
 via 12.1.1.2 ethernet1/1/25:2
 via 23.2.2.2 vlan2
 via 23.2.3.2 vlan3
 via 23.2.4.2 vlan4
 via 23.2.5.2 vlan5
 via 23.2.6.2 vlan6
 via 23.2.7.2 vlan7
 via 23.2.8.2 vlan8
 via 23.2.9.2 vlan9
OS10# show ip route 68.68.68.0/24
Routing entry for 68.68.68.0/24 
Known via ospf, type
Distance 110,
Metric 21
Last update 09:36:35
Routing descriptors Blocks:
 via 10.1.1.2 ethernet1/1/25:1
 via 12.1.1.2 ethernet1/1/25:2
 via 23.2.2.2 vlan2
 via 23.2.3.2 vlan3
 via 23.2.4.2 vlan4
 via 23.2.5.2 vlan5
 via 23.2.6.2 vlan6
OS10# show running-configuration interface vlan 2
!
interface vlan2
 no shutdown
 ip address 23.2.2.1/24
 ip ospf 1 area 0.0.0.0
OS10# show running-configuration interface vlan 3
!
interface vlan3
 no shutdown
 ip address 23.2.3.1/24
 ip ospf 1 area 0.0.0.0
OS10# show running-configuration interface vlan 4
!
interface vlan4
 no shutdown
 ip address 23.2.4.1/24
 ip ospf 1 area 0.0.0.0
OS10# show running-configuration interface tunnel 21
!
interface tunnel21
 mode gre-ipv4
 no shutdown
 ip address 131.131.131.1/24
 tunnel destination 67.67.67.67
 tunnel source loopback3
OS10# show running-configuration interface tunnel 22
!
interface tunnel22
 mode gre-ipv4
 no shutdown
 ip address 132.132.132.1/24
 tunnel destination 68.68.68.68
 tunnel source loopback4
GRE 터널 명령 
  • 예제 

OS10# clear counters interface tunnel 10
version 
인터페이스 터널 
  • 예제

OS10(config)# interface tunnel 10
version.png

IP 주소

  • 예제

OS10(conf-if-tunnel-40)# ip address 10.1.1.1/24
version 
IP 경로 
Commande 모드 
  • 예제

OS10(conf)# ip route 1.1.1.0/24 interface tunnel 10
OS10(conf)# ip route 2.2.2.0/24 3.3.3.3 interface tunnel 10
version 
IP VRF 포워딩 
  • 예제

OS10(conf-if-tunnel-4)# ip vrf forwarding Vrf_red
version 
keepalive 다운 타이머 
  • 예제

OS10(conf-if-tunnel-1)# keepalive down-timer 10
version 
Keepalive 활성화 
  • 예제

OS10(conf-if-tunnel-1)# keepalive enable
version 
Keepalive 프로브 간격  
  • 예제

OS10(conf-if-tunnel-1)# keepalive probe-interval 10
version 
keep up-timer 명령 
image.png
  • 예제

OS10(conf-if-tunnel-1)# keepalive up-timer 10
version 
모드 터널 
  • 예제

OS10(conf-if-tunnel-1)# mode gre-ipv4
version 

터널 대상

  • 예제

OS10(conf-if-tunnel-40)# tunnel destination 10.10.10.10
version 
터널 source.png
  • 예제

OS10(conf-if-tunnel-4)# tunnel source vlan 10
version 
터널 TTL 
  • 예제

OS10(conf-if-tunnel-1)# tunnel ttl 220
version 
인터페이스 터널 표시 
  • 예제

OS10# show interface tunnel 10
Tunnel 10 is up, line protocol is up
Hardware is Tunnel
Tunnel mode GREv4
Tunnel source IP 2.2.2.2, Tunnel source Intf loopback1
Tunnel destination 7.7.7.7
Tunnel TTL 255
Tunnel keepalive enabled
Keepalive probe interval 10, Up timer 5, Down timer 5
Interface index is 45
Internet address is 10.1.1.1/24
Mode of IPv4 Address Assignment: MANUAL
Interface IPv6 oper status: Enabled
ARP type: ARPA, ARP Timeout: 60
Last clearing of "show interface" counters: 00:11:22
Queuing strategy: fifo
Input statistics:
 0 packets, octets
Output statistics:
 0 packets, octets
Time since last interface status change: 00:27:11
version 
실행 구성 인터페이스 표시 
  • 예제

OS10# show running-configuration interface tunnel 
!
interface tunnel10
 no shutdown
 mode gre-ipv4
 ip address 100.1.1.1/24
 tunnel destination 3.3.3.3
 tunnel source 1.1.1.1
!
interface tunnel20
 no shutdown
 mode gre-ipv4
 ip address 101.1.1.1/24
 tunnel destination 5.5.5.5
 tunnel source 6.6.6.6
OS10# show running-configuration interface tunnel 10
!
interface tunnel10
 no shutdown
 mode gre-ipv4
 ip address 100.1.1.1/24
 tunnel destination 3.3.3.3
 tunnel source 1.1.1.1
version 
터널 표시 

예제

OS10# show tunnel
Name 		Mode 	Source-IP 	Destination-IP 	SrcIntf 		TTL 	VRF 	Status 	Protocol
=================================================================================================
Tunnel 1	GREv4 	1.1.1.1 	6.6.6.6 		Loopback 2 		255 	default up 		up
Tunnel 2 	GREv4 	2.2.2.2 	7.7.7.7 		Loopback 123 	255 	default up 		up
Tunnel 3 	GREv4 	3.3.3.3 	8.8.8.8 		Loopback 100 	255 	default up 		up
OS10# show tunnel 10
Name 		Mode 	Source-IP 	Destination-IP 	SrcIntf 		TTL 	VRF 	Status 	Protocol
=================================================================================================
Tunnel 10 	GREv4 	1.1.1.1 	7.6.6.6 		Loopback 2 		255 	default up 		up
version 
IP 인터페이스 표시 
  • 예제

OS10# show ip int gig 1/3
GigabitEthernet 1/3 is up, line protocol is down
Internet address is 10.11.0.1/24
Broadcast address is 10.11.0.255
Address determined by user input
IP MTU is 1500 bytes
Helper address is 192.168.0.1
192.168.0.2
Directed broadcast forwarding is disabled
version 
ip 경로 표시 
ip 경로 표시 
  • 예제

OS10# show ip route
Codes: C - connected
S - static
B - BGP, IN - internal BGP, EX - external BGP, EV - EVPN BGP
O - OSPF, IA - OSPF inter area, N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, E1 - OSPF external type 1,
E2 - OSPF external type 2, * - candidate default,
+ - summary route, > - non-active route
Gateway of last resort is not set
Destination Gateway Dist/Metric Last Change
--------------------------------------------------------------------
C 1.1.1.0/24 via 1.1.1.1 ethernet1/1/1:1 0/0 01:32:53
C 10.1.1.0/24 via 100.1.1.1 loopback1 0/0 00:00:06
C 2.2.2.0/24 via 2.1.1.1.1 Tunnel 1 0/0 00:00:15
OS10# show ip route static
Codes: C - connected
S - static
B - BGP, IN - internal BGP, EX - external BGP, EV - EVPN BGP
O - OSPF, IA - OSPF inter area, N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, E1 - OSPF external type 1,
E2 - OSPF external type 2, * - candidate default,
+ - summary route, > - non-active route
Gateway of last resort is not set
Destination Gateway Dist/Metric Last Change
----------------------------------------------------------------------
C 1.1.1.0/24 via 1.1.1.1 ethernet1/1/1:1 0/0 01:32:53
C 10.1.1.0/24 via 100.1.1.1 loopback1 0/0 00:00:06
S 80.1.10.0/24 via 100.1.1.1 tunnel10 1/0 00:02:33
version 
ip ospf 인터페이스 표시 
OS10# show ip ospf interface tunnel 10
tunnel10 is up, line protocol is up
  Internet Address 100.1.1.1/24, Area 0.0.0.0
  Process ID 1, Router ID 1.1.1.1, Network Type broadcast, Cost: 1
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 1.1.1.1 (local), Interface address 100.1.1.1
  Backup Designated router (ID) , Interface address 0.0.0.0
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
  Neighbor Count is 0, Adjacent neighbor count is 0
OS10# show ip ospf 1 interface tunnel 10
tunnel10 is up, line protocol is up
  Internet Address 100.1.1.1/24, Area 0.0.0.0
  Process ID 1, Router ID 1.1.1.1, Network Type broadcast, Cost: 1
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 1.1.1.1 (local), Interface address 100.1.1.1
  Backup Designated router (ID) , Interface address 0.0.0.0
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
  Neighbor Count is 0, Adjacent neighbor count is 0
version 

ip ospf 통계 표시 
  • 예제

OS10# show ip ospf 1 statistics interface tunnel 10
Interface tunnel10
 Receive Statistics
 rx-invalid 	0 	rx-invalid-bytes 	0
 rx-hello 		0 	rx-hello-bytes 		0
 rx-db-des 		0 	rx-db-des-bytes 	0
 rx-ls-req 		0 	rx-ls-req-bytes 	0
 rx-ls-upd 		0 	rx-ls-upd-bytes 	0
 rx-ls-ack 		0 	rx-ls-ack-bytes 	0
 Transmit Statistics
 tx-failed 		0 	tx-failed-bytes 	0
 tx-hello 		52 	tx-hello-bytes 		3328
 tx-db-des 		0 	tx-db-des-bytes 	0
 tx-ls-req 		0 	tx-ls-req-bytes 	0
 tx-ls-upd 		0 	tx-ls-upd-bytes 	0
 tx-ls-ack 		0 	tx-ls-ack-bytes 	0
 Error packets (Receive statistics)
 bad-src 		0 	dupe-id 			0 	hello-err	 0
 mtu-mismatch 	0 	nbr-ignored 		0 	wrong-proto  0
 resource-err 	0 	bad-lsa-len 		0 	lsa-bad-type 0
 lsa-bad-len 	0 	lsa-bad-cksum 		0 	auth-fail    0
 netmask-mismatch 0 hello-tmr-mismatch 	0 	dead-ivlmismatch 0
 options-mismatch 0 nbr-admin-down 		0 	own-hellodrop    0
 self-orig 		0 	wrong-length 		0 	checksumerror 	 0
 version-mismatch 0 area-mismatch 		0
version 
 
 

Additional Information

Affected Products

SmartFabric OS10 Software
Article Properties
Article Number: 000228691
Article Type: How To
Last Modified: 03 Oct 2025
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.