Chapter 5
Setup and Configuration
In this example, Router 1 establishes a GRE tunnel to Router 2 using a local router address of 172.16.17.18, a
remote router address of 172.19.20.21, and a remote subnet of 192.168.2.0/24.
NOTE
When connecting a Cisco router (in place of Router 1 in the previous example), the local router
address corresponds to the Cisco IOS source address and the remote router address corresponds to
the destination address.
The cost of the GRE tunnel can also be set if another method of routing between Router 1 and Router 2 becomes
available. The packets will automatically flow through the lowest cost route.
Packets can also be restricted by specifying a local egress device, such as w1pp in the case of Router 1 in the
previous example.
The following sections describe how to configure and manage Generic Routing Encapsulation (GRE) tunnels:
•
Section 5.32.1, "Viewing Statistics for GRE Tunnels"
•
Section 5.32.2, "Viewing a List of GRE Tunnels"
•
Section 5.32.3, "Adding a GRE Tunnel"
•
Section 5.32.4, "Deleting a GRE Tunnel"
Section 5.32.1
Viewing Statistics for GRE Tunnels
To view the statistics collected for GRE tunnels, type:
show interfaces gre
A table or list similar to the following example appears:
ruggedcom# show interfaces gre
TUNNEL
RX
IFNAME
STATUS
PACKETS
----------------------------------------------------------------
g1
Active
52
g2
Active
0
This table or list provides the following information:
Parameter
ifname
tunnel-status
rx-packets
rx-errors
rx-drops
tx-packets
tx-errors
tx-drops
492
RX
RX
TX
ERRORS
DROPS
PACKETS
0
0
855
0
0
0
Description
Synopsis: A string 1 to 10 characters long
The GRE tunnel interface name.
Synopsis: A string
The status of the tunnel.
The number of packets received through the tunnel.
The error packets received through the tunnel.
The number of packets dropped by the tunnel.
The number of packets transmitted through the tunnel.
The number of error packets transmitted through the tunnel.
The number of packets dropped by the tunnel.
TX
TX
ERRORS
DROPS
51
0
791
0
RUGGEDCOM ROX II
CLI User Guide
Viewing Statistics for GRE Tunnels