118| Network Configuration Parameters AOS-W 6.5.3.x| User Guide
4. Enter the corresponding GRE tunnel values for this switch to configure Switch-1 based on the network
shown in Figure 17.
5. (Optional) Select Enable Heartbeats to enable tunnel keepalive heartbeats. For more information on this
feature, see Configuring Tunnel Keepalives on page 123
6. Click Apply.
7. Next, log into Switch-2 and navigate to Configuration > Network > IP > GRE Tunnels.
8. Highlight the line for the tunnel ID of interest and click Edit.
9. Use the Edit GRE Tunnel screen to configure Switch-2 based on the network shown in Figure 17.
10.(Optional) Select Enable Heartbeats to enable tunnel keepalive heartbeats.
11.Click Apply.
In the CLI
The following command example configures a Layer-2 GRE tunnel:
Referring to Figure 17, the following are the required configurations to create the Layer-2 GRE tunnel between
switches named Switch-1 and Switch-2:
Switch-1 Configuration
(Switch-1) (config) # interface tunnel 102
description “IPv4 Layer-2 GRE 102"
tunnel mode gre 1
tunnel source vlan 10
tunnel destination 20.20.20.249
tunnel keepalive
trusted
tunnel vlan 101
Switch-2 Configuration
(Switch-2) (config) # interface tunnel 202
description “IPv4 Layer-2 GRE 202"
tunnel mode gre 1
tunnel source vlan 20
tunnel destination 10.10.10.249
tunnel keepalive
trusted
tunnel vlan 101
Configuring a Layer-3 GRE Tunnel for IPv4 or IPv6
In the WebUI
The following steps describe the procedure configure an IPv4 Layer-3 GREtunnel for Switch-1 and Switch-2 via
the WebUI.
1. Log into Switch-1.
2. Navigate to Configuration > Network > IP > GRE Tunnels. The GRETunnels page is displayed.