session-id
To configure the session ID for OTNSec on ODU4 controller, use the
session-id
command in OTNSec
configuration mode.
session-id session-id
Syntax Description
Session ID. The range is from 1 to 65535.
session-id
Command Default
None
Command Modes
OTNSec configuration
Command History
Modification
Release
This command is
introduced.
Release
7.0.1
Example
The following is a sample in which OTNSec is configured on ODU4 controllers.
RP/0/RP0/CPU0:ios#configure
Mon Mar 12 12:10:21.374 UTC
RP/0/RP0/CPU0:ios(config)#controller ODU4 0/1/0/0/1
RP/0/RP0/CPU0:ios(config-odu4)#otnsec
RP/0/RP0/CPU0:ios(config-otnsec)#source ipv4 10.0.0.1
RP/0/RP0/CPU0:ios(config-otnsec)#destination ipv4 10.0.0.2
RP/0/RP0/CPU0:ios(config-otnsec)#
session-id 9000
RP/0/RP0/CPU0:ios(config-otnsec)#policy otnsec-policy1
RP/0/RP0/CPU0:ios(config-otnsec)#ikev2 profile profile1
RP/0/RP0/CPU0:ios(config-ikev2-profile-profile1)#commit
Mon Mar 12 12:14:17.609 UTC
RP/0/RP0/CPU0:ios(config-ikev2-profile-profile1)#exit
RP/0/RP0/CPU0:ios(config)#exit
The following is a running configuration on an ODU4 controller.
RP/0/RP0/CPU0:ios#show run controller ODU4 0/1/0/0/1
Tue Mar 12 12:20:49.153 UTC
controller ODU40/1/0/0/1
gcc2
otnsec
policy otnsec-policy1
source ipv4 10.0.0.1
destination ipv4 10.0.0.2
session-id 9000
!
!
Command Reference for Cisco NCS 1004
67
Commands
session-id