cisco IOS XE 17.16.x — Configuring a gRPC Tunnel

DETAILED STEPS Procedure Configuring a gRPC Tunnel Run the following commands to configure and enable a target in a network device that is part of a gRPC tunnel. Configure the IP address of the tunnel server, the port the tunnel server listens on, and the source or outgoing VRF. The following configuration task shows how the target sends data to the server: SUMMARY STEPS 1. enable 2. configure terminal 3. gnxi grpctunnel destination destination-name 4. enable 5. address IP-address 6. port port-number 7. identity-trustpoint trustpoint-name 8. source-address IP-address 9. source-vrf VRF-name Model-Driven Programmability Configuring a gRPC Tunnel Command or Action Purpose Step 1 enable Example:

Device> enable Enables privileged EXEC mode. • Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 gnxi grpctunnel target {GNMI GNOI | _ GNMI GNOI INSECURE} _ _ Example: Device(config)# gnxi grpctunnel target GNMI GNOI _ Configures a gRPC tunnel target, and enters target configuration mode. Note Only GNMI GNOI targets are supported. The _ GNMI GNOI INSECURE target is for testing purposes _ _ only and always connects to the GNMIB’s insecure port. Step 4 enable Example: Device(config-target)# enable Enables the tunnel target. Step 5 end Example:

Device(config-target)# end Exits target configuration mode and returns to privileged EXEC mode. Programmability Configuration Guide, Cisco IOS XE 17.16.x 298