Layer 2 Generic Routing Encapsulation (L2GRE) Tunnel
L2GRE tunnels are used to route traffic from any remote device to a GigaVUE-H Series or GigaVUE-TA Series device over the internet. For details about the L2GRE tunnels, refer to the "About Layer 2 Generic Routing Encapsulation (L2GRE) Tunnels" section in the GigaVUE Fabric Management Guide.
Configure L2GRE Tunnel for Encapsulation
Create a L2GRE tunnel for encapsulation using the tunnel command, which has the following syntax:
tunnel alias <alias> encap l2gre
comment <description>
attach <ip-interface-name>
ipdst <destination IP address>
exit
The following table describes the arguments for the L2GRE tunnel for encapsulation using the tunnel command:
Argument |
Description |
tunnel alias <alias> encap l2gre |
Specifies an alias for the L2GRE tunnel. The alias must be unique and can contain up to 128 characters. Aliases are case-sensitive. For example: (config) # tunnel alias <alias> encap l2gre |
comment <description> |
Specifies a description for the L2GRE tunnel. For example: (config tunnel alias <alias> encap l2gre) # comment <description> |
attach <ip-interface-name> |
Specifies the IP interface to which you have attached the circuit port you have configured on the device. For example: (config tunnel alias <alias> encap l2gre) # attach <ip-interface-name> |
ipdst <destination IP address> |
Specifies the IP address of the destination device of the tunnel. For example: (config tunnel alias <alias> encap l2gre) # ipdst <destination IP address> |
exit |
Exits the L2GRE tunnel configuration. For example: (config tunnel alias <alias> encap l2gre) # exit |
Note: Use this encap tunnel in the map configuration to encapsulate the traffic with L2GRE ID and send the traffic to the required destination device, where the traffic will be decapsulated.
Configure L2GRE Tunnel for Decapsulation
Create a L2GRE tunnel for decapsulation using the tunnel command, which has the following syntax:
tunnel alias <alias> decap l2gre
comment <description>
attach <ip-interface-name>
exit
The following table describes the arguments for the L2GRE tunnel for decapsulation using the tunnel command:
Argument |
Description |
tunnel alias <alias> decap l2gre |
Specifies an alias for the L2GRE tunnel. The alias must be unique and can contain up to 128 characters. Aliases are case-sensitive. For example: (config) # tunnel alias <alias> decap l2gre |
comment <description> |
Specifies a description for the L2GRE tunnel. For example: (config tunnel alias <alias> decap l2gre) # comment <description> |
attach <ip-interface-name> |
Specifies the IP interface to which you have attached the circuit port you have configured on the device. For example: (config tunnel alias <alias> decap l2gre) # attach <ip-interface-name> |
exit |
Exits the L2GRE tunnel configuration. For example: (config tunnel alias <alias> decap l2gre) # exit |
Note: Use this decap tunnel in the map configuration to decapsulate the traffic with L2GRE tunnel and send the traffic to the required tool ports of the map.
Configure L2GRE Group
Create a L2GRE group using the tunnel command, which has the following syntax:
tunnel l2gre [box-id <id|all>] l2gre-group alias <l2gre-group-name>
add <l2gre-id-list>
comment <description>
delete <l2gre-id-list>
exit
The following table describes the arguments for configuring the L2GRE group using the tunnel command:
Argument |
Description |
tunnel l2gre [box-id <id|all>] l2gre-group alias<l2gre-group-name> |
Specifies the box identifier in which the L2GRE IDs will be added. Also, specifies an alias for the L2GRE group. The alias must be unique and can contain up to 128 characters. Aliases are case-sensitive. For example: (config) # [no] tunnel l2gre [box-id <id|all>] l2gre-group alias <l2gre-group-name> |
add <l2gre-id-list> |
Adds the L2GRE IDs for the device. The range is 1 to 4294967295. For example: (config tunnel l2gre [box-id <id|all>] l2gre-group alias <l2gre-group-name>) #add <l2gre-id-list> |
comment <description> |
Specifies the description for the L2GRE group. For example: (config tunnel l2gre [box-id <id|all>] l2gre-group alias <l2gre-group-name>) #comment <description> |
delete <l2gre-id-list> |
Deletes the specific L2GRE group. For example: (config tunnel l2gre [box-id <id|all>] l2gre-group alias <l2gre-group-name>) #delete <l2gre-id-list> |
exit |
Exits the L2GRE group configuration. For example: (config tunnel l2gre [box-id <id|all>] l2gre-group alias <l2gre-group-name>) #exit |
Configure L2GRE ID
The L2GRE ID that you have added in the L2GRE group created for a specific device must be configured either at the chassis-level or at the network port-level. The ID that you configure for the network port overrides the ID configured for the chassis. The L2GRE IDs help to identify the respective tunnels.
Configure L2GRE ID for a chassis using the tunnel command, which has the following syntax:
tunnel l2gre box-id <id> global-encap-id <l2gre ID>
exit
The following table describes the arguments for configuring the L2GRE ID at the chassis-level using the tunnel command:
Argument |
Description |
tunnel l2gre box-id <id> global-encap-id <l2gre ID> |
Specifies the box identifier for which the L2GRE ID will be added. Also, specifies the L2GRE ID that will be configured for the chassis. For example: (config) # tunnel l2gre box-id <id> global-encap-id <l2gre ID> |
exit |
Exits the L2GRE ID configuration. For example: (config) # tunnel l2gre box-id <id> global-encap-id <l2gre ID> #exit |
Note: To configure L2GRE ID for a network port, refer toport.