Chapter 14 Configuring Support for Management Using the REST API

 

 

 

Enabling REST API Support Using the Cisco IOS XE CLI

 

 

 

 

 

 

 

 

 

Command or Action

Purpose

 

 

 

 

 

 

Step 8

ip unnumbered management-interface

Enables IP processing on an interface without

 

 

 

assigning it an explicit IP address.

 

 

Example:

 

 

 

 

 

 

 

 

router(config-if)# ip unnumbered gigabitethernet1

 

 

 

 

 

 

 

 

 

 

 

 

Step 9

no shutdown

Enables the virtual port group interface.

 

 

Example:

 

 

 

 

 

 

 

 

router(config-if)# no shutdown

 

 

 

 

 

 

 

 

 

 

 

 

Step 10

exit

Exits virtual port group interface mode.

 

 

Example:

 

 

 

 

 

 

 

 

router(config-if)# exit

 

 

 

 

 

 

 

 

 

 

 

 

Step 11

virtual-service csr_mgmt

Configures the csr_mgmt virtual services container

 

 

 

and enters virtual services configuration mode.

 

 

Example:

 

 

 

 

 

 

 

 

router(config)# virtual-service csr_mgmt

 

 

 

 

 

 

 

 

 

 

 

 

Step 12

vnic gateway virtualportgroup virtualportgroup_number

Creates a vNIC gateway interface for the virtual

 

 

 

services container and maps it to the virtual port

 

 

Example:

group.

 

 

 

 

 

 

 

 

 

 

router(config-virt-serv)# vnic virtualportgroup 0

 

 

 

 

 

 

 

 

 

 

 

 

Step 13

guest ip address remote-mgmt-ipv4-addr

Configures the remote-management IP address for

 

 

 

the vNIC gateway interface for the virtual services

 

 

Example:

container.

 

 

 

 

 

 

 

 

 

 

router(config-virt-serv-intf)# guest ip address

 

 

 

 

 

 

 

 

172.25.29.500

 

 

 

 

 

 

 

 

 

 

 

 

Step 14

exit

Exits virtual services interface configuration mode

 

 

 

and enters virtual services configuration mode.

 

 

Example:

 

 

 

 

 

 

 

 

router(config-virt-serv-intf)# exit

 

 

 

 

 

 

 

 

 

 

 

 

Step 15

activate

Activates the csr_mgmt virtual services container.

 

 

Example:

 

 

 

 

 

 

 

 

router(config-virt-serv)# activate

 

 

 

 

 

 

 

 

 

 

 

 

Step 16

end

Exits virtual services configuration mode and enters

 

 

 

global configuration mode.

 

 

Example:

 

 

 

 

 

 

 

 

router(config-virt-serv)# end

 

 

 

 

 

 

 

 

 

 

 

 

Step 17

ip route ipaddress subnetmask virtualportgroup

Creates an IP route that maps to the virtual port

 

 

virtualportgroupnumber

group. Use the same IP address that was configured

 

 

 

using the guest ip address command.

 

 

Example:

 

 

 

 

 

 

 

 

router(config)# ip route 172.25.29.500

 

 

 

 

 

 

 

 

255.255.255.255 VirtualPortGroup0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Cisco CSR 1000V Series Cloud Services Router Software Configuration Guide

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OL-27477-07

 

 

14-5

 

 

 

 

 

 

 

Page 195
Image 195
Cisco Systems CSR 1000V manual 14-5