address
To configure the IP address of the peer node during keyring configuration, use the
address
command in
keyring configuration mode.
address
{
ipv4-address
[
subnet-mask
]}
Syntax Description
IP address of the peer
node.
ipv4-address
Subnet mask address.
subnet-mask
Command Default
None
Command Modes
Keyring configuration
Command History
Modification
Release
This command was
introduced.
Release
7.0.1
Example
The following is a sample in which an OTNSec policy is configured.
RP/0/RP0/CPU0:ios#conf
Thu Mar
7 19:33:14.594 UTC
RP/0/RP0/CPU0:ios(config)#keyring kyr1
RP/0/RP0/CPU0:ios(config-keyring-kyr1)#peer peer1
RP/0/RP0/CPU0:ios(config-keyring-kyr1-peer-peer1)#
address 10.0.0.1 255.255.255.0
RP/0/RP0/CPU0:ios(config-keyring-kyr1-peer-peer1)#pre-shared-key key1|clear
RP/0/RP0/CPU0:ios(config-keyring-kyr1-peer-peer1)#commit
Thu Mar
7 19:54:33.314 UTC
RP/0/RP0/CPU0:ios(config-keyring-kyr1-peer-peer1)#exit
RP/0/RP0/CPU0:ios(config-keyring-kyr1)#exit
RP/0/RP0/CPU0:ios(config)#exit
RP/0/RP0/CPU0:ios#show keyring kyr1
Thu Mar
7 19:58:07.135 UTC
Keyring Name
: kyr1
===============================================================================
Total Peers
: 1
-------------------------------------------------------------------------------
Peer Name
: peer1
IP Address
: 10.0.0.1
Subnet Mask
: 255.255.255.0
Local PSK
: Configured
Remote PSK
: Configured
Command Reference for Cisco NCS 1004
7
Commands
address