Cisco. GRE-туннель — различия между версиями

Материал из megapuper
Перейти к: навигация, поиск
Строка 1: Строка 1:
Имеем два филиал, в качестве гейтов Cisco 2911. Обе настроены. Интернет через них ходит. Задача поднять туннель для связи двух филиалов.
+
Имеем два филиала, в качестве гейтов Cisco 2911. Обе настроены. Интернет через них ходит. Задача поднять туннель для связи двух филиалов.
 +
 
 +
 
  
  
Филиал_1
 
wan ip 190.10.10.10
 
local ip 192.168.1.0/24
 
  
Филиал_2
 
wan ip 200.20.20.20
 
local ip 192.168.2.0/24
 
  
 
На Филиал_1 делаем:  
 
На Филиал_1 делаем:  
 
  interface Tunnel1
 
  interface Tunnel1
 
   description OFFICE1-TO-OFFICE2
 
   description OFFICE1-TO-OFFICE2
   ip address 10.10.10.1 255.255.255.252
+
   ip address 10.2.2.1 255.255.255.252
   tunnel source 190.10.10.10
+
   tunnel source GigabitEthernet0/0
   tunnel destination 200.20.20.20
+
   tunnel destination 200.0.0.1
 +
  tunnel mode gre ip
 
    
 
    
  ip route 192.168.2.0 255.255.255.0 Tunnel1
+
  ip route 0.0.0.0 0.0.0.0 100.0.0.2
 +
ip route 10.1.1.0 255.255.255.255 10.2.2.2
  
 
На Филиал_2 делаем:  
 
На Филиал_2 делаем:  
 
  interface Tunnel1
 
  interface Tunnel1
 
   description OFFICE2-TO-OFFICE1
 
   description OFFICE2-TO-OFFICE1
   ip address 10.10.10.2 255.255.255.252
+
   ip address 10.2.2.2 255.255.255.252
   tunnel source 200.20.20.20
+
   tunnel source GigabitEthernet0/0
   tunnel destination 190.10.10.10
+
  tunnel destination 100.0.0.1
 
+
   tunnel mode gre ip
  ip route 192.168.1.0 255.255.255.0 Tunnel1
+
 +
ip route 0.0.0.0 0.0.0.0 200.0.0.
 +
  ip route 10.0.0.0 255.255.255.255 10.2.2.1

Версия 16:50, 1 августа 2014

Имеем два филиала, в качестве гейтов Cisco 2911. Обе настроены. Интернет через них ходит. Задача поднять туннель для связи двух филиалов.




На Филиал_1 делаем:

interface Tunnel1
 description OFFICE1-TO-OFFICE2
 ip address 10.2.2.1 255.255.255.252
 tunnel source GigabitEthernet0/0
 tunnel destination 200.0.0.1
 tunnel mode gre ip
  
ip route 0.0.0.0 0.0.0.0 100.0.0.2
ip route 10.1.1.0 255.255.255.255 10.2.2.2

На Филиал_2 делаем:

interface Tunnel1
 description OFFICE2-TO-OFFICE1
 ip address 10.2.2.2 255.255.255.252
 tunnel source GigabitEthernet0/0
 tunnel destination 100.0.0.1
 tunnel mode gre ip

ip route 0.0.0.0 0.0.0.0 200.0.0.2  
ip route 10.0.0.0 255.255.255.255 10.2.2.1