You are on page 1of 8

Bytton LTE

Industrial-grade Cellular Router for 3G+/4G Networks

GRE over ETH


Application Note
2013
topex-3.0.6-p-FA-S

TOPEX Bytton AN - GRE / ETH

Table of Contents
Introduction .................................................................................................................................... 3
Assumptions ................................................................................................................................... 3
Setup ............................................................................................................................................... 4
Configuration setup ........................................................................................................................ 5
Remote Configuration ................................................................................................................. 5
Configure Cisco: ...................................................................................................................... 5
GRE .......................................................................................................................................... 5
Loopback .................................................................................................................................. 5
WAN ........................................................................................................................................ 5
VLAN ....................................................................................................................................... 5
Routes ....................................................................................................................................... 5
Topex GW Configuration ........................................................................................................... 6
LAN.......................................................................................................................................... 6
WAN ........................................................................................................................................ 6
WAN Port ..................................................................................................................................... 7
Tunnel ...................................................................................................................................... 7
Routing ..................................................................................................................................... 7
Actual table .............................................................................................................................. 7
Test results ..................................................................................................................................... 8
PING over GRE ....................................................................................................................... 8

App. Note GRE over Eth - Rev. A

http://www.topex.ro

Page: 2 / 8

TOPEX Bytton AN - GRE / ETH

Introduction
GRE is the acronym for Generic Routing Encapsulation, a tunneling protocol that can
encapsulate a wide variety of protocol packet types inside IP tunnels.
IP tunneling using GRE protocol allows easy creation and expansion of a Virtual Private Network
using the Internet (cable or 3G+ mobile data networks from different carriers). The Bytton users
are often required to configure a Topex router as one end of a GRE tunnel over Ethernet, where
the other end is a Cisco device such as a C870. This Application Note was written to allow the
customer to configure both the Bytton ICR gateway and the Cisco device to accept incoming
GRE requests from a distant Topex router type Bytton ICR (LTE)
The GRE IP Tunnels are used when you need to perform IP tunneling in order to achieve a
Virtual Private Network using several Bytton ICR devices interconnected over the public Internet
(either via Ethernet connections or 3G/4G wireless communications networks).

Assumptions
The application note is intended for usage of clients with a good understanding of the
requirements for their specific application, and generally knowledgeable about IP technology.
There is no need for highly trained personnel; a high level of technical competence is not
required at this stage.
Firmware versions:
Cisco Device:
Cisco IOS Software, C870 Software (C870-ADVIPSERVICESK9-M), Version 12.4(4)T1,
RELEASE SOFTWARE (fc4)
System image file is "flash:c870-advipservicesk9-mz.124-4.T1.bin"
Topex Bytton ICR:
Firmware version: topex-3.0.6-p-FA-S
Configuration:

The Cisco device achieves its WAN over Ethernet cable, the physical IP of its interface is
192.168.100.0/30, while the GRE tunnel achieved over it is 10.0.0.0/30.
The LAN behind the Cisco device has an address range of 192.168.1.0/24, while the
corresponding LAN behind the Topex router has an address range of 192.168.2.0/24.
Bytton ICR is set to use the Ethernet port for primary WAN connection, no failover.
No NAT is performed.
The corresponding GRE tunnel and routing rules must be implemented.

App. Note GRE over Eth - Rev. A

http://www.topex.ro

Page: 3 / 8

TOPEX Bytton AN - GRE / ETH

Setup
The diagram sketched below details the architecture of this example configuration and IP
addressing schemes used:

The LAN behind the Cisco equipment has address ranges of 192.168.1.0/24.
The WAN of the Cisco equipment has address ranges of 10.0.0.1/30, but it is carried over a
physical Ethernet connection 192.168.1.0/24 to the WAN port of Bytton.
The LAN behind the Topex Bytton ICR device has an address range of 192.168.20/24
The GRE tunnel created through the Ethernet connection is transparent form one end to
another, but the data packets sent from Cisco to Bytton or vice-versa cannot be seen by the
public Internet.

App. Note GRE over Eth - Rev. A

http://www.topex.ro

Page: 4 / 8

TOPEX Bytton AN - GRE / ETH

Configuration setup
You must configure both sides of the GRE connection.

Remote Configuration
Configure Cisco:
The first step is to obtain a command prompt at the C870
Then set the following
GRE
!
! set up the GRE tunnel for 10.0.0.1, enter: address, source, and destination. Maximum transmission unit
is set ! to 1400 to allow for the GRE headers and other overhead.
interface Tunnel1
ip address 10.0.0.1 255.255.255.252
ip mtu 1400
ip tcp adjust-mss 1360
tunnel source 10.10.10.10
tunnel destination 10.10.10.20
!
Loopback
! You must establish also a loopback, address 10.10.10.10
! interface Loopback1
ip address 10.10.10.10 255.255.255.255
!
WAN
! Set up the Ethernet interface to be used for WAN, IP 192.168.100.1.
! Physical interface parameters are set to full auto, both on Cisco and on Bytton:
interface FastEthernet4
ip address 192.168.100.1 255.255.255.252
duplex auto
speed auto
!
VLAN
! Set up the Virtual LAN:
interface Vlan1
ip address 192.168.1.1 255.255.255.0
!
Routes
! Finally, configure the routes, for the GRE tunnel (192.168.20) and for the WAN interface (10.10.10.10)
ip route 10.10.10.20 255.255.255.255 FastEthernet4
ip route 192.168.2.0 255.255.255.0 Tunnel1
!

App. Note GRE over Eth - Rev. A

http://www.topex.ro

Page: 5 / 8

TOPEX Bytton AN - GRE / ETH

Topex GW Configuration
LAN
IP address set to 1921.168.2.1, netmask 255.255.255.0.

No additional IP, but you must also set the loop back to 10.10.10.20/32

WAN
Primary Interface and also Secondary Interface: Ethernet port
Fail-Over: Disabled

App. Note GRE over Eth - Rev. A

http://www.topex.ro

Page: 6 / 8

TOPEX Bytton AN - GRE / ETH

WAN Port
Static IP, 192.168.100.2/30
Gateway: 192.168.100.1

Netmask: let to the default 255.255.255.252


GW 192.168.100.1
No name servers are used in this application!
Tunnel
GRET1: Remote: 10.10.10.10 ; Local: 10.10.10.20 ; Tunnel: 10.0.0.2; Netmask: 255.255.255.252

Routing
First route: 10.10.10.10 255.255.255.255 WAN
Second route: 192.168.1.0 255.255.255.0 gret1

Actual table
Following a reboot, the table of established routes shall be:
Kernel IP routing table
Destination
Gateway
Genmask
10.10.10.10
0.0.0.0
255.255.255.255
192.168.100.0
0.0.0.0
255.255.255.252
10.0.0.0
0.0.0.0
255.255.255.252
192.168.2.0
0.0.0.0
255.255.255.0
192.168.1.0
0.0.0.0
255.255.255.0
0.0.0.0
192.168.100.1
0.0.0.0

App. Note GRE over Eth - Rev. A

Flags
UH
U
U
U
U
UG

http://www.topex.ro

Metric
0
0
0
0
0
0

Ref
0
0
0
0
0
0

Use
0
0
0
0
0
0

Iface
wan
wan
gret1
br0
gret1
wan

Page: 7 / 8

TOPEX Bytton AN - GRE / ETH

Test results
PING over GRE
Issue a PING to 192.168.2.1 with source IP 192.168.1.1 and check result:
Router#ping 192.168.2.1 source 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
Packet sent with a source address of 192.168.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
Router#

App. Note GRE over Eth - Rev. A

http://www.topex.ro

Page: 8 / 8

You might also like