L3VPN Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Releases

PDF

Configure VXLAN static routing using the Service Layer API

Want to summarize with AI?

Log in

Details configuration procedures for VXLAN static routing using Service Layer API, guiding users through the steps to automate and manage static routes in VXLAN deployments via programmatic interfaces.


Set up and verify Service Layer API and gRPC for VXLAN static routing, ensuring the service-layer state is correct.

Use the Service Layer API for environments where you require faster provisioning, easier scaling, and improved management of VXLAN static routes.

Before you begin

Plan the gRPC port, address family, and service-layer security settings in advance.

Procedure

1.

Configure gRPC and enable Service Layer API.

Example:

Router# configure
Router(config)# grpc
Router(config-grpc)# port 57777
Router(config-grpc)# address-family ipv4
Router(config-grpc)# service-layer
Router(config-grpc)# no-tls
Router(config-grpc)# commit
2.

Review the Service Layer API running configuration.

Example:

grpc
 port 57777
 address-family ipv4
 service-layer
 no-tls
!
3.

Use the show service-layer state command to verify the Service Layer API state.

Example:

Router# show service-layer state

------------service layer state----------
config on:                   NO
connected to RIB for IPv4:   YES
connected to RIB for IPv6:   YES
Initialization state:        initialized
pending requests:            0
BFD Connection:              DOWN
MPLS Connection:             DOWN
Interface Connection:        UP
Objects accepted:            NO
interface registered:        NO
bfd registered for IPv4:     NO
bfd registered for IPv6:     NO

The Service Layer API is configured. The VXLAN static routing configuration is complete when the service-layer state output confirms the expected RIB and interface connections.