![Digi IX20 User Manual Download Page 332](http://html.mh-extra.com/html/digi/ix20/ix20_user-manual_2496666332.webp)
Virtual Private Networks (VPN)
Generic Routing Encapsulation (GRE)
IX20 User Guide
332
Command line
1. Log into the IX20 command line as a user with full Admin access rights.
Depending on your device configuration, you may be presented with an
Access selection
menu
. Type
admin
to access the Admin CLI.
2. At the command line, type
config
to enter configuration mode:
> config
(config)>
3. Add the GRE endpoint tunnel. For example, to add a tunnel named
gre_example
:
(config)> add vpn iptunnel gre_example
(config vpn iptunnel gre_example)>
GRE tunnels are enabled by default. To disable:
(config vpn iptunnel gre_example)> enable false
(config vpn iptunnel gre_example)>
4. Set the local endpoint to the GRE endpoint interface created in
, for example:
(config vpn iptunnel gre_example)> local /network/interface/gre_endpoint
(config vpn iptunnel gre_example)>
5. Set the IP address of the GRE endpoint on the remote peer:
(config vpn iptunnel gre_example)> remote
ip_address
(config vpn iptunnel gre_example)>
6. (Optional) Set a key that will be inserted in GRE packets created by this tunnel.
The key must match the key set by the remote endpoint.
(config vpn iptunnel gre_example)> key
value
(config vpn iptunnel gre_example)>
where value is an interger between 0 and 4294967295, or an IP address.
7. (Optional) Enable the device to reply to Cisco GRE keepalive packets:
(config vpn iptunnel gre_example)> keepalive true
(config vpn iptunnel gre_example)>
8. Save the configuration and apply the change: