
C613-50186-01 Rev B
Command Reference for AR2050V
2737
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
IP
SEC
C
OMMANDS
TUNNEL
SOURCE
(IP
SEC
)
tunnel source (IPsec)
Overview
Use this command to specify an IPv4 or IPv6 source address or interface name for
packets being encapsulated in the IPsec tunnel. The source address should be an
existing IPv4 address or IPv6 address or interface name configured for an interface.
Note that if the tunnel source interface has multiple IP addresses, for example, one
primary and one or more secondary IP addresses, the lowest IP address on the
interface is used for transporting the tunnel encapsulated traffic.
Use the
no
variant of this command to remove a tunnel source address for a tunnel
interface.
Syntax
tunnel source {<
interface-name
>|<
ipv4-address
>|<
ipv6-address
>}
no tunnel source
{<
interface-name
>|<
ipv4-address
>|<
ipv6-address
>}
Mode
Interface Configuration
Examples
To configure a source IPv4 address for IPsec
tunnel145
, use the commands
below:
awplus#
configure terminal
awplus(config)#
interface tunnel145
awplus(config-if)#
tunnel mode ipsec ipv4
awplus(config-if)#
tunnel source 192.168.1.1
To configure a source IPv6 address for IPsec
tunnel145
, use the commands
below:
awplus#
configure terminal
awplus(config)#
interface tunnel145
awplus(config-if)#
tunnel mode ipsec ipv6
awplus(config-if)#
tunnel source 2001:db8::
To configure a source interface for IPsec
tunnel145
, use the commands below:
awplus#
configure terminal
awplus(config)#
interface tunnel145
awplus(config-if)#
tunnel mode ipsec ipv4
awplus(config-if)#
tunnel source eth1
Parameter
Description
<
interface
>
Interface name.
<
ipv4-address
>
The IPv4 address uses the format A.B.C.D.
<
ipv6-address
>
The IPv6 address uses the format X:X::X:X.