Tunnel Commands
XSR CLI Reference Guide 14-131
Mode
Tunnelconfiguration:XSR#(config-tms-tunnel)#
Default
IPSec
Examples
ThefollowingexamplesetstheIPSectunnelprotocolinclientmode:
XSR(config)#interface vpn 29 point-to-point
XSR(config-int<vpn>)#tunnel ACME_VPN
XSR#(config-tms-tunnel)#set protocol ipsec client-mode
TheexamplebelowconnectsaGREtunnelattachedtoaVPNinterface:
XSR(config)#interface vpn 2 point-to-point
XSR(config-int<vpn>)#ip address 192.168.1.123 255.255.255.0
XSR#(config-int<vpn>)#tunnel my-gre-tunnel
XSR#(config-tms-tunnel)#set protocol gre
XSR#(config-tms-tunnel)#set peer 10.1.2.3
XSR#(config-tms-tunnel)#set active

set user

Thiscommandspecifiesausersidentitywhenconnectingtoapeer.ItinvokesEZIPSecby
applyingthecredentials(passwordand/orcertificate)usedduringtunnelcreationobtainedfrom
theAAAsubsystem.AnEZIPSectunnelusesaggressivemodewiththeusernameastheIKE
identity.Refertotheaaa user,user-id,andshow crypto ca certificatecommandsformore
information.
Syntax
set user username
Mode
Tunnelconfiguration:XSR#(config-tms-tunnel)#
Examples
Thefollowingexamplespecifiesthepresharedkeyofapeerbyusername:
XSR(config)#interface vpn 29 point-to-point
XSR(config-int<vpn>)#tunnel ACME_VPN
XSR#(config-tms-tunnel)#set user jonathan
Thefollowingexamplespecifiesthepresharedkeyofapeerbycertificate:
XSR(config)#interface vpn 29 point-to-point
XSR(config-int<vpn>)#tunnel ACME_VPN
XSR#(config-tms-tunnel)#set user certificate
username Usernameemployedwhenconnectingtothepeer.