
C613-50186-01 Rev B
Command Reference for AR2050V
2763
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
GRE T
UNNELING
C
OMMANDS
TUNNEL
SOURCE
(GRE)
tunnel source (GRE)
Overview
Use this command to specify a tunnel source for the tunnel interface. Tunnel
source can be specified by using an interface name or an IPv4 address. The source
address must be an existing IPv4 address configured for an interface.
Use the
no
variant of this command to remove a tunnel source for a tunnel
interface.
Syntax
tunnel source {
<ipv4-addr>
|
<interface-name>
}
no tunnel source
Mode
Interface Configuration
Examples
To configure a GRE tunnel source IPv4 address, use the commands:
awplus#
configure terminal
awplus#
interface eth1
awplus(config-if)#
ip address 1.1.1.1/24
awplus(config-if)#
interface tunnel1
awplus(config-if)#
tunnel mode gre
awplus(config-if)#
tunnel source 1.1.1.1
To use an interface name as the tunnel source, use the commands:
awplus#
configure terminal
awplus(config)#
interface tunnel2
awplus(config-if)#
tunnel mode gre
awplus(config-if)#
tunnel source eth2
To remove a GRE tunnel source, use the commands:
awplus#
configure terminal
awplus(config)#
interface tunnel1
awplus(config-if)#
no tunnel source
Parameter
Description
<ipv4-addr>
Specify the tunnel source IPv4 address for the GRE tunnel
interface in the dotted decimal format A.B.C.D.
The endpoints of the tunnel must be configured by mirroring IP
addresses, that is, the tunnel source on one endpoint must be
specified as the tunnel destination on the other endpoint.
<interface-
name>
Available interface name. Any AlliedWare Plus interface type (eth,
vlan, ppp, tunnel, lo and so on).
Using interface name can minimize the number of user-
configured IP addresses and allow the tunnel source IP address to
be dynamically issued via, for example, DHCP.