Changes

Line 1: Line 1:  
==Introduction==
 
==Introduction==
 +
    
Generic Routing Encapsulation (GRE) is a tunneling protocol that can encapsulate a wide variety of network layer protocols inside virtual point-to-point links over an Internet Protocol network.
 
Generic Routing Encapsulation (GRE) is a tunneling protocol that can encapsulate a wide variety of network layer protocols inside virtual point-to-point links over an Internet Protocol network.
Line 6: Line 7:     
==Prerequisites==
 
==Prerequisites==
 +
    
You will need:
 
You will need:
    
* One RUTxxx router
 
* One RUTxxx router
* One Cisco router (this configuration example was created using Cisco 7200 Series Router)
+
* One Cisco router (this configuration example was created using Cisco ISR4321 Router)
 
* A PC to configure the routers
 
* A PC to configure the routers
 
* PuTTy or similiar terminal program
 
* PuTTy or similiar terminal program
Line 17: Line 19:  
==Configuration scheme==
 
==Configuration scheme==
   −
[[File:Networking_rutxxx_configuration_example_cli_cisco_gre_topology.png|border|class=tlt-border]]
+
 
 +
[[File:Networking_rutxxx_configuration_example_cli_cisco_gre_topology.png|700px|border|class=tlt-border]]
    
==Cisco configuration==
 
==Cisco configuration==
   −
First, open PuTTY, and connect to router, enter routers '''LAN IP''' (in this example - 192.168.5.1), choose connection type, we are using '''Telnet''' and press '''Open'''. then depending on your router you might need to enter '''username''' and '''password''' in terminal.
+
First, open PuTTY, and connect to router, enter routers '''LAN IP''' (in this example - 192.168.5.1), choose connection type, we are using '''Telnet''', and press '''Open'''. Then depending on your router you might need to enter '''username''' and '''password''' in terminal.
    
[[File:Networking_rutxxx_configuration_example_cli_cisco_gre_putty.png|border|class=tlt-border]]
 
[[File:Networking_rutxxx_configuration_example_cli_cisco_gre_putty.png|border|class=tlt-border]]
    
After you are connected, create and configure GRE tunnel interface:
 
After you are connected, create and configure GRE tunnel interface:
Enter configuration mode:
     −
   Configure terminal
+
To enter configuration mode, execute command:
 +
   GRE_Cisco#configure terminal
   −
Execute commands:
+
Then execute following commands:
 
   GRE_Cisco(config)# interface Tunnel0
 
   GRE_Cisco(config)# interface Tunnel0
 
   GRE_Cisco(config-if)# ip address 172.16.0.2 255.255.255.0 # GRE Tunnel IP address and mask
 
   GRE_Cisco(config-if)# ip address 172.16.0.2 255.255.255.0 # GRE Tunnel IP address and mask
Line 45: Line 48:     
==RUT configuration==
 
==RUT configuration==
 +
    
Connect to router's '''WebUI''', go to '''Services > VPN > GRE Tunnel'''. Enter a name for your GRE instance, click '''ADD''' and when instance appears in '''GRE Configuration''' field, click '''Edit'''.  
 
Connect to router's '''WebUI''', go to '''Services > VPN > GRE Tunnel'''. Enter a name for your GRE instance, click '''ADD''' and when instance appears in '''GRE Configuration''' field, click '''Edit'''.  
   −
[[File:Networking_rutxxx_configuration_example_cli_cisco_gre_create.png|border|class=tlt-border|1100x1100px]]
+
[[File:Networking_rutxxx_configuration_example_cli_cisco_gre_create.png|border|class=tlt-border]]
    
Then apply the configuration presented below:
 
Then apply the configuration presented below:
   −
[[File:Networking_rutxxx_configuration_example_cli_cisco_gre_settings.png|border|class=tlt-border|1100x1100px]]
+
[[File:Networking_rutxxx_configuration_example_cli_cisco_gre_settings.png|border|class=tlt-border]]
    
# '''Enable''' instance.
 
# '''Enable''' instance.
 
# Sellect '''Tunnel source''' (here we are using Mobile (PPP) connection).
 
# Sellect '''Tunnel source''' (here we are using Mobile (PPP) connection).
# Enter '''Remote endpoint IP address''' (Public IP od Cisco router).
+
# Enter '''Remote endpoint IP address''' (Public IP of Cisco router).
 
# Change '''MTU''' value to 1400 (it was set in Cisco router using this command: ''GRE_Cisco(config-if)# ip mtu 1400'').
 
# Change '''MTU''' value to 1400 (it was set in Cisco router using this command: ''GRE_Cisco(config-if)# ip mtu 1400'').
 
# Set '''Local GRE interface IPv4 address''' to 172.16.0.1
 
# Set '''Local GRE interface IPv4 address''' to 172.16.0.1
 
# Enter '''Local GRE interface netmask''' - 255.255.255.0
 
# Enter '''Local GRE interface netmask''' - 255.255.255.0
# When creating new GRE interface you will first have to '''Add'' in '''Routing Settings''' before entering following information.
+
# When creating new GRE interface you will first have to press '''Add''' in '''Routing Settings''' before entering following information.
 
# Enter '''Remote subnet IP address''' - 192.168.5.0
 
# Enter '''Remote subnet IP address''' - 192.168.5.0
 
# Enter '''Remote subnet netmask''' - 255.255.255.0
 
# Enter '''Remote subnet netmask''' - 255.255.255.0
Line 66: Line 70:     
==Testing configuration==
 
==Testing configuration==
 +
    
If all steps were followed correctly, tunnel interface should be active. But as with any other configuration, it is always wise to test the setup in order to make sure that it works properly. In order to test the GRE Tunnel connection, login to RUT WebUI and go to '''Services → CLI'''. Login with user name: '''root''' and the router's admin password. From there you should then be able to '''ping''' the opposite instance's virtual IP address. To use a ping command, type '''ping <Cisco_ip_address>''' and press the "Enter" key on your keyboard. You can also check it form Cisco routers side, connect to router with PuTTy or equivalent program and use same ping command '''ping <RUT_ip_address>'''.
 
If all steps were followed correctly, tunnel interface should be active. But as with any other configuration, it is always wise to test the setup in order to make sure that it works properly. In order to test the GRE Tunnel connection, login to RUT WebUI and go to '''Services → CLI'''. Login with user name: '''root''' and the router's admin password. From there you should then be able to '''ping''' the opposite instance's virtual IP address. To use a ping command, type '''ping <Cisco_ip_address>''' and press the "Enter" key on your keyboard. You can also check it form Cisco routers side, connect to router with PuTTy or equivalent program and use same ping command '''ping <RUT_ip_address>'''.
 +
 +
[[File:Networking_rutxxx_configuration_example_cli_cisco_gre_ping.png|border|class=tlt-border]]
 
    
 
    
 
If ping requests are working, yours setup ready to use! If not please review the steps in this example once more.
 
If ping requests are working, yours setup ready to use! If not please review the steps in this example once more.

Navigation menu