04 - WAN - LAB 11 - GRE OVER IPSEC VPN Extended
04 - WAN - LAB 11 - GRE OVER IPSEC VPN Extended
VPC1
ip 172.16.1.2 255.255.255.0 172.16.1.1
save
VPC2
ip 172.16.2.2 255.255.255.0 172.16.2.1
save
VPC3
ip 172.16.3.2 255.255.255.0 172.16.3.1
save
--------------------
R1
en
conf t
hostname R1
!
interface Ethernet0/0
ip address 172.16.1.1 255.255.255.0
ip nat inside
no shut
!
interface Ethernet0/1
ip address 10.0.0.1 255.255.255.252
ip nat outside
no shut
!
------
R2
en
conf t
hostname R2
!
interface Ethernet0/0
ip address 172.16.2.1 255.255.255.0
ip nat inside
no shut
!
interface Ethernet0/2
ip address 172.16.23.1 255.255.255.0
ip nat inside
no shut
!
interface Ethernet0/1
ip address 11.1.1.1 255.255.255.252
ip nat outside
no shut
!
-----------------------
R3
en
conf t
hostname R3
!
interface Ethernet0/2
ip address 172.16.23.2 255.255.255.0
no shut
!
interface Ethernet0/0
ip address 172.16.3.1 255.255.255.0
no shut
!
----------------------
OSPF R2 R3
R2
conf t
router ospf 1
network 172.16.2.1 0.0.0.0 area 0
network 172.16.23.1 0.0.0.0 area 0
default-information originate
R3
conf t
router ospf 1
network 172.16.3.1 0.0.0.0 area 0
network 172.16.23.2 0.0.0.0 area 0
end
----------------------
Kiểm tra
------------------------------------------
R1
conf t
interface tunnel 0
tunnel source e0/1
tunnel destination 11.1.1.1
tunnel mode gre ip
ip address 172.16.12.1 255.255.255.0
exit
router ospf 1
network 172.16.12.1 0.0.0.0 area 0
network 172.16.1.1 0.0.0.0 area 0
----------
R2
conf t
interface tunnel 0
tunnel source e0/1
tunnel destination 10.0.0.1
tunnel mode gre ip
ip address 172.16.12.2 255.255.255.0
exit
router ospf 1
network 172.16.12.2 0.0.0.0 area 0
Kiểm tra
________________________________________
---------------------------------
Bổ sung IPSec
---------------
R1
crypto ipsec transform-set Cisco-trans ah-md5-hmac esp-aes
mode transport
exit
interface tunnel 0
tunnel protection ipsec profile CISCO
end
-----------------------
R2
conf t
interface tunnel 0
tunnel protection ipsec profile CISCO
end
------------------------------------------------
-------------------------------------------------
ISP
interface Loopback0
ip address 8.8.8.8 255.255.255.0
!
interface Ethernet0/0
ip address 10.0.0.2 255.255.255.252
!
interface Ethernet0/1
ip address 11.1.1.2 255.255.255.252
!