![]() |
Cisco IOS Security Command Reference: Commands M to R
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
reauthentication time through rsa-pubkey
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contents
reauthentication time through rsa-pubkey reauthentication timeTo enter the time limit after which the authenticator should reauthenticate, use the reauthentication timecommand in local RADIUS server group configuration mode. To remove the requirement that users reauthenticate after the specified duration, use the no form of this command. Command History
ExamplesThe following example shows that the time limit after which the authenticator should reauthenticate is 30 seconds:
Router(config-radsrv-group)# reauthentication time 30
Related Commands
redirect (identity policy)To redirect clients to a particular URL, use the redirectcommand in identity policy configuration mode. To remove the URL, use the no form of this command. Usage GuidelinesWhen you use this command, an identity policy has to be associated with an Extensible Authentication Protocol over UDP (EAPoUDP) identity profile. redundancy (firewall)redundancy (GDOI)To enable Group Domain of Interpretation (GDOI) redundancy configuration mode and to allow for key server redundancy, use the redundancy command in GDOI local server configuration mode. To disable GDOI redundancy, use the no form of this command. Usage GuidelinesThis command must be configured before configuring related redundancy commands, such as for key server peers, local priority, and timer values. Use the local priority command to set the local key server priority. Use the peer address ipv4command to configure the peer address that belongs to the redundancy key server group. ExamplesThe following example shows that key server redundancy has been configured: address ipv4 10.1.1.1 redundancy local priority 10 peer address ipv4 10.41.2.5 peer address ipv4 10.33.5.6 Related Commands
redundancy asymmetric-routing enableTo establish an asymmetric flow diversion tunnel for each redundancy group, use the redundancy asymmetric-routing enable command in interface configuration mode. To remove the established flow diversion tunnel, use the no form of this command. Command DefaultAn asymmetric routing traffic diversion tunnel is not configured for redundancy groups. Usage GuidelinesYou must configure this command on a traffic interface that sends or receives asymmetric routing traffic. A tunnel is established between the traffic interface and the asymmetric routing interface for each redundancy group. redundancy groupTo configure fault tolerance for the mobile router, use the redundancy group command in mobile router configuration mode. To disable this functionality, use the no form of this command. Usage GuidelinesThe redundancy group command provides f ault tolerance by selecting one mobile router in the redundancy group name argument to provide connectivity for the mobile networks. This mobile router is in the active state. The other mobile routers are passive and wait until the active mobile router fails before a new active mobile router is selected. Only the active mobile router registers and sets up proper routing for the mobile networks. The redundancy state is either active or passive. redundancy group (interface)To enable redundancy group traffic interface configuration, use the redundancy group command in interface configuration mode. To remove the redundancy group traffic interface configuration, use the no form of this command. Syntax Description
ExamplesThe following example shows how to enable redundancy group traffic interface configuration: Device(config)# interface gigabitethernet 0/0/1 Device(config-if)# redundancy group 2 interface 10.2.3.4 exclusive Related Commands
redundancy inter-deviceTo enter inter-device configuration mode, use the redundancy inter-device command in global configuration mode. To exit inter-device configuration mode, use the exit command. To remove all inter-device configuration, use the no form of this command. Usage GuidelinesUse the redundancy inter-device command to enter inter-device configuration mode, which allows you to enable and protect Stateful Switchover (SSO) traffic. ExamplesThe following example shows how to issue the redundancy inter-device command when enabling SSO:
redundancy inter-device
scheme standby HA-in
!
!
ipc zone default
association 1
no shutdown
protocol sctp
local-port 5000
local-ip 10.0.0.1
remote-port 5000
remote-ip 10.0.0.2
!
The following example shows how to issue the redundancy inter-device command when configuring SSO traffic protection: crypto ipsec transform-set trans2 ah-md5-hmac esp-aes ! crypto ipsec profile sso-secure set transform-set trans2 ! redundancy inter-device scheme standby HA-in security ipsec sso-secure Related Commands
redundancy riiTo configure the redundancy interface identifier (RII) for redundancy group protected traffic interfaces, use the redundancy rii command in interface configuration mode. To remove the redundant interface from the redundancy group, use the no form of this command. Usage GuidelinesEvery interface associated with one or more redundancy groups must have a unique RII assigned to it. The RII allows interfaces to have a one-to-one mapping between peers. ExamplesThe following example shows how to configure the RII for Gigabit Ethernet interface 0/0/0: Router# configure terminal Router(config)# interface GigabitEthernet 0/0/0 Router(config-if)# redundancy rii 100 Related Commands
redundancy statefulTo configure stateful failover for tunnels using IP Security (IPSec), use the redundancy statefulcommand in crypto map configuration mode. To disable stateful failover for tunnel protection, use the no form of this command. Usage GuidelinesThe redundancy statefulcommand uses an existing IPSec profile (which is specified via the crypto ipsec profilecommand) to configure IPSec stateful failover for tunnel protection. (You do not configure the tunnel interface as you would with a crypto map configuration.) IPSec stateful failover enables you to define a backup IPSec peer (secondary) to take over the tasks of the active (primary) router if the active router is deemed unavailable. The tunnel source address must be a VIP address, and it must not be an interface name. ExamplesThe following example shows how to configure stateful failover for tunnel protection: crypto ipsec profile peer-profile redundancy HA-out stateful interface Tunnel1 ip unnumbered Loopback0 tunnel source 209.165.201.3 tunnel destination 10.0.0.5 tunnel protection ipsec profile peer-profile ! interface Ethernet0/0 ip address 209.165.201.1 255.255.255.224 standby 1 ip 209.165.201.3 standby 1 name HA-out regenerateTo enable key rollover with manual certificate enrollment, use the regenerate command in ca-trustpoint configuration mode. To disable key rollover, use the no form of this command. Command History
Usage GuidelinesUse the regenerate command to provide seamless key rollover for manual certificate enrollment. A new key pair is created with a temporary name, and the old certificate and key pair are retained until a new certificate is received from the certification authority (CA). When the new certificate is received, the old certificate and key pair are discarded and the new key pair is renamed with the name of the original key pair. If the key pair being rolled over is exportable, the new key pair will also be exportable. The following comment will appear in the trustpoint configuration to indicate whether the key pair is exportable: ! RSA keypair associated with trustpoint is exportable Do not regenerate the keys manually; key rollover will occur when the crypto ca enroll command is issued. ExamplesThe following example shows how to configure key rollover to regenerate new keys with a manual certificate enrollment from the CA named "trustme2". crypto ca trustpoint trustme2 enrollment url http:// trustme2 .company.com/ subject-name OU=Spiral Dept., O=tiedye.com ip-address ethernet0 serial-number none regenerate password revokeme rsakeypair trustme2 2048 exit crypto ca authenticate trustme2 crypto ca enroll trustme2 regexp (profile map configuration)To create an entry in a cache profile group that allows authentication and authorization matches based on a regular expression, use the regexp command in profile map configuration mode. To disable a regular expression entry, use the no form of this command. Syntax Description
Usage GuidelinesUse this command to create an entry in a cache profile group that matches based on a regular expression, such as .*@example.com or .*@xyz.com. Because the number of entries in a regular expression cache profile group could be in the thousands, and validating each request against a regular expression can be time consuming, we do not recommend using regular expression entries in cache profile groups. ExamplesThe following example creates an entry in the cache profile group networkusers that authorizes network access to any example company user. No authentication is performed for these users because the no-auth keyword is used. Router# configure terminal Router(config)# aaa cache profile networkusers Router(config-profile-map)# regexp .*@example.com any no-auth registration interfaceTo specify the interface to be used for a Group Domain of Interpretation (GDOI) registration, use the registration interface command in GDOI local server configuration mode. To disable an interface, use the no form of this command. Usage GuidelinesThe table below lists the types of interface that may be used for the type argument.
registration retry countTo configure the number of times that a Transitory Messaging Services (TMS) registration message is sent to a controller, use the registration retry count command in parameter-map configuration mode. To configure the consumer to use the default registration retry count value, use the no form of this command.
Command DefaultThe following default value is used if this command is not configured or if the no form is entered: 3 Usage GuidelinesThe registration retry count command is entered on a consumer to configure the number of times that an implicit registration request message is transmitted. The consumer must register with the controller before the controller can send Control Information Messages (CIMs). Implicit registration requests are automatically sent to the controller when a TMS type service policy is activated on the consumer. By default, a consumer sends a registration request message to the controller once every 3 minutes for up to three times or until successfully registered. If the consumer is a member of multiple groups, it sends a separate registration request messages to the controller of each group. ExamplesThe following example configures a consumer to send up to five registration messages to a controller: Router(config)# parameter-map type tms PARAMAP_1 Router(config-profile)# controller ipv4 10.1.1.1 Router(config-profile)# logging tms events Router(config-profile)# registration retry interval 60 Router(config-profile)# registration retry count 5 Router(config-profile)# exit registration retry intervalTo configure the length of time between consumer registration attempts, use the registration retry interval command in parameter-map configuration mode. To configure the consumer to use the default registration timer interval, use the no form of this command.
Command DefaultThe following default value is used if this command is not configured or if the no form is entered: 180 Usage GuidelinesThe registration retry interval command is entered on a consumer to configure the time interval between the transmission of implicit registration request messages. The consumer must register with the controller before the controller can send Control Information Messages (CIMs). Implicit registration requests are automatically sent to the controller when a Transitory Messaging Services (TMS) type service policy is activated on the consumer. By default, a consumer sends a registration request message to the controller once every 3 minutes for up to three times or until successfully registered. If the consumer is a member of multiple groups, it sends a separate registration request messages to the controller of each group. ExamplesThe following example configures a consumer to send registration messages at 60-second intervals: Router(config)# parameter-map type tms PARAMAP_1 Router(config-profile)# controller ipv4 10.1.1.1 Router(config-profile)# logging tms events Router(config-profile)# registration retry interval 60 Router(config-profile)# registration retry count 5 Router(config-profile)# exit registration retry-interval (TIDP)To configure the length of time and number of attempts for TIDP group registration, use the registration retry-interval command in TIDP group configuration mode. To configure TIDP to use default registration timer values, use the no form of this command.
Command DefaultThe following default values are used if this command is not configured or if the no form is entered: min 60 max 3600 Usage GuidelinesThe controller registers consumers. By default, the controller sends a registration request message once every 60 seconds for up to 1 hour until the consumer is successfully registered. The value entered for the max keyword must be equal to or greater than the value entered for the min keyword. Entering a value of zero after both the min and max keywords configures the controller not to retry registration if the initial registration message receives no response. ExamplesThe following example configures TIDP to attempt to register group members at 30-second intervals for up to 10 minutes or until consumers are registered: Router(config)# tidp group 10 Router(config-tidp-grp)# key-set KEY_1 Router(config-tidp-grp)# registration retry-interval min 30 max 600 Router(config-tidp-grp)# peer 10.1.1.1 Router(config-tidp-grp)# peer 10.1.1.2 Router(config-tidp-grp)# peer 10.1.1.3 Router(config-tidp-grp)# active rekey address ipv4To specify the source or destination information of the rekey message, use the rekey address ipv4 command in GDOI local server configuration mode. To remove a source or destination address, use the no form of this command.
rekey
address
ipv4
{access-list-number | access-list-name}
no
rekey
address
ipv4
{access-list-number | access-list-name}
Usage GuidelinesIf rekeys are not required, this command is optional. If rekeys are required, this command is required. The source is usually the key server interface from which the message leaves, and the destination is the multicast address on which the group members receive the rekeys (for example, access-list 101 permit 121 permit udp host 10.0.5.2 eq 848 host 192.168.1.2. eq 848). ExamplesThe following example shows that the rekey address is access list "101": rekey address ipv4 101 The following example shows that a rekey message is to be sent to access control list (ACL) address 239.10.10.10: crypto gdoi group gdoigroup1 identity number 1111 server local rekey address ipv4 120 rekey lifetime seconds 400 no rekey retransmit rekey authentication mypubkey rsa ipseca-3845b.examplecompany.com access-list 120 permit udp host 10.5.90.1 eq 848 host 239.10.10.10 eq 848 rekey algorithmTo define the type of encryption algorithm used for a Group Domain of Interpretation (GDOI) group, use the rekey algorithm command in GDOI local server configuration mode. To disable an algorithm that was defined, use the no form of this command. Command DefaultIf this command is not configured, the default value of 3des-cbc takes effect. However, the default is used only if the commands required for a rekey to occur are specified (see the Note below in "Usage Guidelines"). Usage GuidelinesThe table below lists the types of encryption algorithms that may be used.
At a minimum, the following commands are required for a rekey to occur: rekey address ipv4 {access-list-number| access-list-name} rekey authentication {mypubkey | pubkey} {rsa key-name} If the rekey algorithm command is not configured, the default of 3des-cbc is used if the above minimum rekey configuration is met. ExamplesThe following example shows that the 3des-cbc encryption standard is used: rekey algorithm 3des-cbc Related Commands
rekey authenticationTo specify the keys to be used for a rekey to Group Domain of Interpretation (GDOI) group members, use the rekey authenticationcommand in GDOI local server configuration mode. To disable the keys, use the no form of this command.
rekey
authentication
{mypubkey | pubkey}
rsa key-name
no
rekey
authentication
{mypubkey | pubkey}
rsa key-name
Usage GuidelinesIf rekeys are not required, this command is optional. If rekeys are required, this command is required. For this command to work, Rivest, Shamir, and Adelman (RSA) keys must be generated first on the router using the following command: crypto key generate rsa {general keys} [label key-label] For example: crypto key generate rsa general keys label group_1234_key_name rekey lifetimeTo limit the number of seconds for which any one encryption key should be used, use the rekey lifetime command in GDOI local server configuration mode. To disable the number of seconds that were set, use the no form of this command. Usage GuidelinesThis rekey command is not used often. When this rekey limit is sent, a new key encryption key is sent to the group member so that the next rekey after this one will be encrypted with the new key encryption key. rekey retransmitTo specify the number of times the rekey message is retransmitted, use the rekey retransmit command in GDOI local server configuration mode. To disable the number of times that were specified, use the no form of this command.
rekey
retransmit
number-of-seconds
[number number-of-retransmissions]
no
rekey
retransmit
number-of-seconds
[number number-of-retransmissions]
Command DefaultIf this command is not configured, the number of seconds defaults to 10 and the number of transmissions defaults to 2. Usage GuidelinesUse this command if you are concerned about network loss. Using this command ensures that the rekey message is resent the number of times specified in the retransmit command. rekey transport unicastTo configure unicast delivery of rekey messages to group members, use the rekey transport unicastcommand in global configuration mode. To remove unicast delivery of rekey messages and enable the default to multicast rekeying, use the no form of this command. Command DefaultIf rekey transport unicast is not specified or no rekey transport unicast is specified, multicast rekeying is the default. Usage GuidelinesThis command is configured on the key server under the server local command, along with other rekey configurations. ExamplesThe following example shows that unicast delivery of rekey messages to group members has been configured: crypto gdoi group diffint identity number 3333 server local rekey lifetime seconds 300 rekey retransmit 10 number 2 rekey authentication mypubkey rsa mykeys rekey transport unicast sa ipsec 1 profile gdoi-p match address ipv4 120 replay counter window-size 64 address ipv4 10.0.5.2 remarkTo write a helpful comment (remark) for an entry in a named IP access list, use the remark command in access list configuration mode. To remove the remark, use the no form of this command. Command History
Usage GuidelinesThe remark can be up to 100 characters long; anything longer is truncated. If you want to write a comment about an entry in a numbered IP access list, use the access-list remark command. ExamplesIn the following example, the host1 subnet is not allowed to use outbound Telnet: ip access-list extended telnetting remark Do not allow host1 subnet to telnet out deny tcp host 172.69.2.88 any eq telnet Related Commands
remark (IPv6)To write a helpful comment (remark) for an entry in an IPv6 access list, use the remarkcommand in IPv6 access list configuration mode. To remove the remark, use the no form of this command. Command History
Usage GuidelinesThe remark (IPv6) command is similar to the remark (IP) command, except that it is IPv6-specific. The remark can be up to 100 characters long; anything longer is truncated. ExamplesThe following example configures a remark for the IPv6 access list named TELNETTING. The remark is specific to not letting the Marketing subnet use outbound Telnet. ipv6 access-list TELNETTING remark Do not allow Marketing subnet to telnet out deny tcp 2001:0DB8:0300:0201::/64 any eq telnet replay counter window-sizeTo turn on counter-based anti-replay protection for traffic defined inside an access list using Group Domain of Interpretation (GDOI) if there are only two group members in a group, use the replay counter window-sizecommand in GDOI SA IPsec configuration mode. To disable counter-based anti-replay protection, use the no form of this command. Usage GuidelinesThis command is configured on the key server. Cisco IPsec authentication provides anti-replay protection against an attacker duplicating encrypted packets by assigning a unique sequence number to each encrypted packet. (Security association [SA] anti-replay is a security service in which the receiver can reject old or duplicate packets to protect itself against replay attacks.) The decryptor checks off the sequence numbers that it has seen before. The encryptor assigns sequence numbers in an increasing order. The decryptor remembers the value X of the highest sequence number that it has already seen. N is the window size in bytes, and the decryptor also remembers whether it has seen packets having sequence numbers from X-N+1 through X. Any packet with the sequence number X-N is discarded. Currently, N is set at 64, so only 64 packets can be tracked by the decryptor. At times, however, the 64-packet window size is not sufficient. For example, Cisco quality of service (QoS) gives priority to high-priority packets, which could cause some low-priority packets to be discarded even though they could be one of the last 64 packets received by the decryptor. The IPsec Anti-Replay Window: Expanding and Disabling feature allows you to expand the window size, allowing the decryptor to keep track of more than 64 packets. Increasing the anti-replay window size has no impact on throughput and security. The impact on memory is insignificant because only an extra 128 bytes per incoming IPsec SA is needed to store the sequence number on the decryptor. It is recommended that you use the full 1024 window size to eliminate any future anti-replay problems. ExamplesThe following example shows that the anti-replay window size for unicast traffic has been set to 512: crypto gdoi group gdoigroup1 identity number 1111 server local rekey address ipv4 120 rekey lifetime seconds 400 no rekey retransmit rekey authentication mypubkey rsa ipseca-3845b.examplecompany.com sa ipsec 10 profile group1111 match address ipv4 101 replay counter window-size 512 replay time window-sizeTo set the window size for anti-replay protection using Group Domain of Interpretation (GDOI) if there are more than two group members in a group, use the replay time window-sizecommand in GDOI SA IPsec configuration mode. To disable time-based anti-replay, use the no form of this command. Usage GuidelinesThis command is configured on the key server.
ExamplesThe following example shows that the number of seconds of the interval duration of the SAR clock has been set to 1: sa ipsec 10 profile group1111 match address ipv4 101 replay time window-size 1 request-methodTo permit or deny HTTP traffic according to either the request methods or the extension methods, use the request-methodcommand in appfw-policy-http configuration mode. To disable this inspection parameter, use the no form of this command.
request-method
{rfc rfc-method | extension extension-method}
action
{reset | allow}
[alarm]
no
request-method
{rfc rfc-method | extension extension-method}
action
{reset | allow}
[alarm]
Syntax Description
Command DefaultIf a given method is not specified, all methods and extension methods are supported with the reset alarm action. Usage GuidelinesOnly methods configured by the request-method command are allowed thorough the firewall; all other HTTP traffic is subjected to the specified action (reset or allow). ExamplesThe following example shows how to define the HTTP application firewall policy "mypolicy." This policy includes all supported HTTP policy rules. After the policy is defined, it is applied to the inspection rule "firewall," which will inspect all HTTP traffic entering the FastEthernet0/0 interface. ! Define the HTTP policy. appfw policy-name mypolicy application http strict-http action allow alarm content-length maximum 1 action allow alarm content-type-verification match-req-rsp action allow alarm max-header-length request 1 response 1 action allow alarm max-uri-length 1 action allow alarm port-misuse default action allow alarm request-method rfc default action allow alarm request-method extension default action allow alarm transfer-encoding type default action allow alarm ! ! ! Apply the policy to an inspection rule. ip inspect name firewall appfw mypolicy ip inspect name firewall http ! ! ! Apply the inspection rule to all HTTP traffic entering the FastEthernet0/0 interface. interface FastEthernet0/0 ip inspect firewall in ! ! request-timeoutTo set the number of seconds before an authentication request times out, use the request-timeoutcommand in webvpn sso server configuration mode. Usage GuidelinesThis command is useful for networks that are congested and tend to have losses. Corporate networks are generally not affected by congestion or losses. reset (policy-map)reset (zone-based policy)To reset a TCP connection if the data length of the Simple Mail Transfer Protocol (SMTP) body exceeds the value that you configured in the class-map type inspect smtpcommand, use the reset command in policy-map configuration mode. Usage GuidelinesYou can use this command only after entering the policy-map type inspect, class type inspect, and parameter-map type inspect commands. You can enter reset only for TCP traffic. ExamplesThe following example creates a Layer 7 SMTP policy map named mysmtp-policy and applies the reset action to each of the match criteria: policy-map type inspect smtp mysmtp-policy class-map type inspect smtp huge-mails reset Related Commands
responder-onlyTo configure a device as responder-only, use the responder-onlycommand in IPsec profile configuration mode. To remove the responder-only setting, use the no form of this command. Usage GuidelinesThis command is relevant only for a virtual interface scenario and is configurable only under an IPsec profile. Neither static nor crypto maps are supported. retired (IPS)specify whether or not a retired signature or signature category definition should be saved in the router memory, use the retiredcommand in signature-definition-status (config-sigdef-status) or IPS-category-action (config-ips-category-action) configuration mode. To return to the default action, use the no form of this command. Command Modes
Usage GuidelinesRouter memory and resource constraints prevent a router from loading all Cisco IOS IPS signatures. Thus, it is recommended that you load only a selected set of signatures that are defined by the categories. Because the categories are applied in a "top-down" order, you should first retire all signatures, followed by "unretiring" specific categories. Retiring signatures enables the router to load information for all signatures, but the router will not build the parallel scanning data structure. Retired signatures are not scanned by Cisco IOS IPS, so they will not fire alarms. If a signature is irrelevant to your network or if you want to save router memory, you should retire signatures, as appropriate. ExamplesThe following example shows how to retire all signatures and configure the Basic "ios_ips" category: Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# ip ips signature category Router(config-ips-category)# category all Router(config-ips-category-action)# retired true Router(config-ips-category-action)# exit Router(config-ips-category)# category ios_ips basic Router(config-ips-category-action)# retired false Router(config-ips-category-action)# exit Router(config-ips-category)# exit Do you want to accept these changes? [confirm]y Related Commands
reverse-routeTo create source proxy information for a crypto map entry, use the reverse-route command in crypto map configuration mode. To remove the source proxy information from a crypto map entry, use the no form of this command. Effective with Cisco IOS Release 12.4(15)T
reverse-route
[static | remote-peer ip-address [gateway] [static] ]
no
reverse-route
[static | remote-peer ip-address [gateway] [static] ]
Before Cisco IOS Release 12.4(15)T
reverse-route
[static | tag tag-id [static] | remote-peer [static] | remote-peer ip-address [static] ]
no
reverse-route
[static | tag tag-id [static] | remote-peer [static] | remote-peer ip-address [static] ]
Syntax DescriptionCommand History
Usage GuidelinesThis command can be applied on a per-crypto map basis. Reverse route injection (RRI) provides a scalable mechanism to dynamically learn and advertise the IP address and subnets that belong to a remote site that connects through an IPsec VPN tunnel. When enabled in an IPSec crypto map, RRI will learn all the subnets from any network that is defined in the crypto ACL as the destination network. The learned routes are installed into the local routing table as static routes that point to the encrypted interface. When the IPsec tunnel is torn down, the associated static routes will be removed. These static routes may then be redistributed into other dynamic routing protocols so that they can be advertised to other parts of the network (usually done by redistributing RRI routes into dynamic routing protocols on the core side). The remote-peer keyword is required when RRI is performed in a VRF-Aware IPsec scenario. Before Cisco IOS Release 12.3(14)TThe following example shows how to configure RRI when crypto ACLs exist. The example shows that all remote VPN gateways connect to the router via 192.168.0.3. RRI is added on the static crypto map, which creates routes on the basis of the source network and source netmask that are defined in the crypto ACL. crypto map mymap 1 ipsec-isakmp set peer 10.1.1.1 reverse-route set transform-set esp-3des-sha match address 102 Interface FastEthernet 0/0 ip address 192.168.0.2 255.255.255.0 standby name group1 standby ip 192.168.0.3 crypto map mymap redundancy group1 access-list 102 permit ip 192.168.1.0 0.0.0.255 10.0.0.0 0.0.255.255
The reverse-route command in this situation creates routes that are analogous to the following static route CLI (ip route): ip route 10.1.1.1 255.255.255.255 192.168.1.1 ip route 10.1.1.1 255.255.255.255 vlan0.1 In the following example, two routes are created, one for the remote endpoint and one for route recursion to the remote endpoint via the interface on which the crypto map is configured. reverse-route remote-peer Configuring RRI with the Enhancements Added in Cisco IOS Release 12.3(14)TThe following configuration example shows how to configure RRI for a situation in which there are existing ACLs: crypto map mymap 1 ipsec-isakmp set peer 172.17.11.1 reverse-route static set transform-set esp-3des-sha match address 101 access-list 101 permit ip 192.168.1.0 0.0.0.255 172.17.11.0 0.0.0.255 The following example shows how RRI-created routes can be tagged with a tag number and then used by a routing process to redistribute those tagged routes via a route map:
crypto dynamic-map ospf-clients 1
reverse-route tag 5
router ospf 109
redistribute rip route-map rip-to-ospf
route-map rip-to-ospf permit
match tag 5
set metric 5
set metric-type type1
Device# show ip ospf topology
P 10.81.7.48/29, 1 successors, FD is 2588160, tag is 5
via 192.168.82.25 (2588160/2585600), FastEthernet0/1
The following example shows that one route has been created to the remote proxy via a user-defined next hop. This next hop should not require a recursive route lookup unless it will recurse to a default route. reverse-route remote-peer 10.4.4.4 The previous example yields the following before Cisco IOS Release 12.3(14)T: 10.0.0.0/24 via 10.1.1.1 (in the VRF table if VRFs are configured) 10.1.1.1/32 via 10.4.4.4 (in the global route table) And this result occurs with RRI enhancements: 10.0.0.0/24 via 10.4.4.4 (in the VRF table if VRFs are configured, otherwise in the global table) Effective with Cisco IOS Release 12.4(15)TIn the following example, routes are created from the destination information in the access control list (ACL). One route will list 10.2.2.2 as the next-hop route to the ACL information, and one will indicate that to get to 10.2.2.2, the route will have to go via 10.1.1.1. All routes will have a metric of 10. Routes are created only at the time the map and specific ACL rule are created. crypto map map1 1 ipsec-isakmp set peer 10.2.2.2 reverse-route remote-peer 10.1.1.1 gateway set reverse-route distance 10 match address 101 Configuring RRI with Route Tags 12.4(15)T or later: Example The following example shows how RRI-created routes can be tagged with a tag number and then used by a routing process to redistribute those tagged routes via a route map:
crypto dynamic-map ospf-clients 1
set reverse-route tag 5
router ospf 109
redistribute rip route-map rip-to-ospf
route-map rip-to-ospf permit
match tag 5
set metric 5
set metric-type type1
Device# show ip ospf topology
P 10.81.7.48/29, 1 successors, FD is 2588160, tag is 5
via 192.168.82.25 (2588160/2585600), FastEthernet0/1
Related Commands
revocation-checkTo check the revocation status of a certificate, use the revocation-checkcommand in ca-trustpoint configuration mode. To disable this functionality, use the no form of this command. Syntax Description
Command DefaultAfter a trustpoint is enabled, the default is set to revocation-check crl, which means that CRL checking is mandatory. Command History
Usage GuidelinesUse the revocation-check command to specify at least one method that is to be used to ensure that the certificate of a peer has not been revoked. If your router does not have the applicable CRL and is unable to obtain one or if the OCSP server returns an error, your router will reject the peer's certificate--unless you include the none keyword in your configuration. If the none keyword is configured, a revocation check will not be performed and the certificate will always be accepted. If the revocation-check none command is configured, you cannot manually download the CRL via the crypto pki crl requestcommand because the manually downloaded CRL may not be deleted after it expires. The expired CRL can cause all certificate verifications to be denied.
ExamplesThe following example shows how to configure the router to use the OCSP server that is specified in the AIA extension of the certificate: Router(config)# crypto pki trustpoint mytp Router(ca-trustpoint)# revocation-check ocsp The following example shows how to configure the router to download the CRL from the CDP; if the CRL is unavailable, the OCSP server that is specified in the Authority Info Access (AIA) extension of the certificate will be used. If both options fail, certificate verification will also fail. Router(config)# crypto pki trustpoint mytp Router(ca-trustpoint)# revocation-check crl ocsp The following example shows how to configure your router to use the OCSP server at the HTTP URL "http://myocspserver:81." If the server is down, revocation check will be ignored. Router(config)# crypto pki trustpoint mytp Router(ca-trustpoint)# ocsp url http://myocspserver:81 Router(ca-trustpoint)# revocation-check ocsp none revocation-check (ca-trustpool)To disable a revocation checking method when the public key infrastructure (PKI) trustpool policy is being used, use the revocation-check command in ca-trustpool configuration mode. To return to the default, use the no form of this command. Syntax Description
Usage GuidelinesBefore you can configure this command, you must enable the crypto pki trustpool policy command, which enters ca-trustpool configuration mode. If a revocation policy needs to be altered for specific certificate authority (CA) certificates in the PKI trustpool, use certificate maps instead. ExamplesThe revocation-check command in following example disables both CRL and OCSP revocation checks: Router(config)# crypto pki trustpool policy Router(ca-trustpool)# revocation-check ocsp crl none Related Commands
rootTo obtain the certification authority (CA) certificate via TFTP, use the root command in ca-trustpoint configuration mode. To deconfigure the CA, use the no form of this command. Command History
Usage GuidelinesThis command allows you to access the CA via the TFTP protocol, which is used to get the CA. You want to configure a CA certificate so that your router can verify certificates issued to peers. Thus, your router does not have to enroll with the CA that issued the certificates the peers. Before you can configure this command, you must enable the crypto ca trustpointcommand , which puts you in ca-trustpoint configuration mode.
route acceptTo filter the routes received from the peer and save the routes on the router based on the specified values, use the route accept command in IKEv2 authorization policy configuration mode. To reject the routes , use the no form of this command. Command Modes
Usage GuidelinesBefore using the route accept command, you must first configure the crypto ikev2 authorization policy command. route setTo specify the route set parameters to the peer via configuration mode, use the route set command in IKEv2 authorization policy configuration mode. To disable, use the no form of this command.
route set{interface | access-list{access-list-name | access-list-number | expanded-access-list-number | ipv6 access-list-name}}
no route set {interface | access-list{access-list-name | access-list-number | expanded-access-list-number | ipv6 access-list-name}}
Syntax Description
Usage GuidelinesBefore using the route set command, you must first configure the crypto ikev2 authorization policy command. This command allows running routing protocols such as BGP over VPN. router-preference maximumTo verify the advertised default router preference parameter value, use the router-preference maximum command in router advertisement (RA) guard policy configuration mode : Usage GuidelinesThe router-preference maximum command enables verification that the advertised default router preference parameter value is lower than or equal to a specified limit. You can use this command to give a lower priority to default routers advertised on trunk ports, and to give precedence to default router advertised on access ports. The router-preference maximum command limit are high, medium, or low. If, for example, this value is set to medium and the advertised default router preference is set to high in the received packet, then packet is dropped. If the command option is set to medium or low in the received packet, then packet is not dropped. ExamplesThe following example defines an RA guard policy name as raguard1, places the router in RA guard policy configuration mode, and configures router-preference maximum verification to be high: Router(config)# ipv6 nd raguard policy raguard1 Router(config-nd-inspection)# router-preference maximum high rsakeypairTo specify which Rivest, Shamir, and Adelman (RSA) key pair to associate with the certificate, use the rsakeypair command in ca-trustpoint configuration mode. Syntax Description
Usage GuidelinesWhen you regenerate a key pair, you are responsible for reenrolling the identities associated with the key pair. Use the rsakeypair command to refer back to the named key pair. rsa-pubkeyTo define the Rivest, Shamir, and Adelman (RSA) manual key to be used for encryption or signature during Internet Key Exchange (IKE) authentication, use the rsa-pubkeycommand in keyring configuration mode. To remove the manual key that was defined, use the no form of this command.
rsa-pubkey
{address address | name fqdn}
[encryption | signature]
no
rsa-pubkey
{address address | name fqdn}
[encryption | signature]
Usage GuidelinesUse this command to enter public key chain configuration mode. Use this command when you need to manually specify RSA public keys of other IP Security (IPSec) peers. You need to specify the keys of other peers when you configure RSA encrypted nonces as the authentication method in an IKE policy at your peer router. ExamplesThe following example shows that the RSA public key of an IPSec peer has been specified: Router(config)# crypto keyring vpnkeyring Router(conf-keyring)# rsa-pubkey name host.vpn.com Router(config-pubkey-key)# address 10.5.5.1 Router(config-pubkey)# key-string Router(config-pubkey)# 00302017 4A7D385B 1234EF29 335FC973 Router(config-pubkey)# 2DD50A37 C4F4B0FD 9DADE748 429618D5 Router(config-pubkey)# 18242BA3 2EDFBDD3 4296142A DDF7D3D8 Router(config-pubkey)# 08407685 2F2190A0 0B43F1BD 9A8A26DB Router(config-pubkey)# 07953829 791FCDE9 A98420F0 6A82045B Router(config-pubkey)# 90288A26 DBC64468 7789F76E EE21 Router(config-pubkey)# quit Router(config-pubkey-key)# exit Router(conf-keyring)# exit © 2012 Cisco Systems, Inc. All rights reserved.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|