API Guide

interface virtual-network
Configures a virtual-network router interface.
Syntax
interface virtual-network vn-id
Parameters
virtual-
network vn-id
Enter a virtual-network ID, from 1 to 65535.
Default Not configured
Command mode CONFIGURATION
Usage
information
Configure a virtual-network router interface to enable hosts connected to a virtual network to route
traffic to hosts on another virtual network in the same VRF. The virtual-network IP address must be
unique on each VTEP, including VTEPs in VLT pairs.
Example
OS10(config)# interface virtual-network 10000
OS10(config-if-vn-10000)# ip vrf forwarding tenant1
OS10(config-if-vn-10000)# ip address 10.1.0.1/16
OS10(config-if-vn-10000)# no shutdown
Supported
releases
10.4.3.0 or later
ip virtual-router address
Configures an anycast gateway IP address for a VXLAN virtual network or a VLAN interface.
Syntax
ip virtual-router address ipv4address
Parameters address ipv4addressEnter the IP address of the anycast L3 gateway.
Default Not configured
Command mode
INTERFACE-VIRTUAL-NETWORK
INTERFACE-VLAN
Usage
information
Configure the same anycast gateway IP address on all VTEPs in a VXLAN virtual network or a VLAN. Use
the anycast gateway IP address as the default gateway IP address if the host VMs move from one VTEP
to another in a VXLAN or VLAN. The anycast gateway IP address must be in the same subnet as the IP
address of the virtual-network router.
Starting from release 10.5.2, you can use this command to configure an anycast IPv4 address for a VLAN
interface. This command allows you to configure anycast IP gateway for up to 512 VLANs. The anycast IP
address may optionally be configured with a 32-bit subnet mask. Make sure the anycast IP address is
different from the primary IP address. To assign an anycast IPv6 address to a VLAN interface, use the
ipv6 virtual-router address command. Prior to assigning the anycast IP address to a VLAN interface,
configure a virtual MAC address to the switch using the ip virtual-router mac-address command. All
virtual addresses on all VLAN interfaces resolve to the configured virtual MAC address.
The no version of the command removes the specified anycast IP address from a VXLAN virtual network
or a VLAN interface.
Example - VXLAN
virtual network
OS10(config)# interface virtual-network 10000
OS10(config-if-vn-10000)# ip virtual-router address 10.1.0.100
Example - VLAN
interface
OS10(config)# interface vlan 100
OS10(conf-if-vl-100)# ip virtual-router address 10.10.10.3
Supported
releases
10.4.3.0 or later
10.5.2.0 or laterSupport for Interface VLAN added.
VXLAN 895