set l3-interface tunnel address

Run the command set l3-interface tunnel address to configure a GRE tunnel name and tunnel interface IP address.

Use the command delete-interface tunnel address to delete this tunnel from the switch configuration.

NOTEs:

Note that before committing this configuration, make sure you have configured the tunnel mode as gre-ip by using the command set l3-interface tunnel tunnel-mode.


Command Syntax

set l3-interface tunnel <tunnel-name> address <ip-address> prefix-length <prefix-length>

delete l3-interface tunnel <tunnel-name> address <ip-address> prefix-length <prefix-length>


Parameter

Parameter

Description

tunnel <tunnel-name>

Specifies the tunnel name, in alpha-numeric format with no spaces.

address <ip-address>Specifies the tunnel interface IPv4 or IPv6 address.
prefix-length <prefix-length>Specifies the IP prefix length.

Example

  •  Create a GRE tunnel tn14 and assign 192.168.8.1 as the tunnel interface address with prefix length 24.
admin@switch1# set l3-interface tunnel tnl4 address 192.168.8.1 prefix-length 24
admin@switch1# set l3-interface tunnel tnl4 tunnel-mode gre-ip
admin@switch1# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.