본문 바로가기
network/ccie-mpls

MPLS VPN Technology( gre tunnel)

 

 

 

 


R1과 R3구간에 대하여 GRE터널링을 연결 하기 위해 기존에 R1,2,3 에서 OSPF area0 으로 연결 한뒤 터널링 인터페이스를 
각각 생성 해준다.

 R1(config)#interface Tunnel0
 ip address 10.0.0.1 255.255.255.0
 tunnel source 10.10.12.1
 tunnel destination 10.10.23.3
!

 R3(config)# interface Tunnel0
 ip address 10.0.0.2 255.255.255.0
 tunnel source 10.10.23.3
 tunnel destination 10.10.12.1
!
정상적으로 연결이 되었으면, tunnel 인터페이스끼리 ping test 확인 가능 하며.
R3#ping 10.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/40/44 ms

RIB에서 tunnel 0 인터페이스가 connetced 되었는 것을 확인 할 수 있다.
R3#show ip route  | sec Tunn
D       4.4.4.4 [90/297398016] via 10.0.0.1, 00:05:05, Tunnel0
     5.0.0.0/32 is subnetted, 1 subnets
C       10.0.0.0 is directly connected, Tunnel0


서로 터널 구간을 eigrp 로 광고 해준뒤 eigrp 네이버를 확인 할 수 있다.
 R1(config)# router eigrp 10
 network 10.0.0.1 0.0.0.0

 R3(config)# router eigrp 10
 network 10.0.0.2 0.0.0.0


R1#show ip eigrp neighbors
IP-EIGRP neighbors for process 10
H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq
                                            (sec)         (ms)       Cnt Num
1   10.0.0.2                Tu0               11 00:07:07  116  5000  0  10
0   10.10.14.4              Et1/1             12 00:12:06   12   200  0  7

R5 에서 R4로 ping test후 ospf 구간에서 패킷을 확인 한다.
R5#ping 4.4 .4.4
*Mar 16 11:38:47.311: %SYS-5-CONFIG_I: Configured from console by console
R5#ping 4.4.4.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!

- 해당 구간의 패킷을 확인 하면 터널 구간에서 연결된 도착점과 출발지의 아이피 해더 로 R1과 R3이 설정된 아이피로 출발지,도착지 아이피 해더가 붙게 되고 
애라로 GRE 해다 아래로 실제 R1과 R5의 아이피 해더를 확인 하여 gre 터널 구간에서 기존 해더가 빠지게 된다.

 

반응형