m-vrf-commands
m-vrf-commands
address-family ipv4
To set an address family ipv4 in vrf configuration mode use the address-family ipv4 command. To remove
the IPv4 address-family, use the no form of this command.
address-family ipv4 { bgp [next-hop ] | export [map ] | import [map ] | maximum [routes ] | mdt
[ auto-discovery | data | default | log-reuse | mtu | overlay | preference ] | route-replicate [ from
| recursion-policy ] | route-target [ export | import ] }
no address-family ipv4 { bgp [next-hop ] | export [map ] | import [map ] | maximum [routes ] |
mdt [ auto-discovery | data | default | log-reuse | mtu | overlay | preference ] | route-replicate [
from | recursion-policy ] | route-target [ export | import ] }
Syntax Description bgp A standardized exterior gateway protocol designed to exchange routing and reachability
information.
export Allows vrf table to be exported to the global table or another vrf.
VRF Commands
1
VRF Commands
address-family ipv4
mdt Specifies an IPv4 multicast distribution tree (MDT) address family session.
data Specifies a range of addresses to be used in the data multicast distribution tree (MDT)
pool.
default Configures a default multicast distribution tree (MDT) group for a vrf.
log-reuse Enables the recording of data multicast distribution tree (MDT) reuse.
mtu Defines the largest size of packets that an interface can transmit.
route-replicate Replicates routes into the base topology within the specified address family.
from Defines a vrf where network resides.
recursion-policy
route-target Specifies the target where routes are ether sent or received.
export Allows a vrf table to be exported to the global table or another vrf.
Usage Guidelines The address-family ipv4 command under the vrf definition allows you to configure routing sessions and
other related configuration commands.
Example
The following example shows the how to configure address-family ipv4 prefixes from vrf 77.
VRF Commands
2
VRF Commands
address-family ipv6
address-family ipv6
To set an address family ipv6 in vrf configuration mode use the address-family ipv6 command. To remove
the IPv6 address-family, use the no form of this command.
address-family ipv6 { bgp [next-hop ] | import [map ] | mdt [ auto-discovery | data | default |
log-reuse | mtu | overlay | preference ] }
no address-family ipv6 { bgp [next-hop ] | import [map ] | mdt [ auto-discovery | data | default
| log-reuse | mtu | overlay | preference ] }
Syntax Description bgp A standardized exterior gateway protocol designed to exchange routing and reachability
information.
mdt Specifies an IPv6 multicast distribution tree (MDT) address family session.
data Specifies a range of addresses to be used in the data multicast distribution tree (MDT) pool.
default Configures a default multicast distribution tree (MDT) group for a vrf.
log-reuse Enables the recording of data multicast distribution tree (MDT) reuse.
mtu Defines the largest size of packets that an interface can transmit.
Usage Guidelines The address-family ipv6 command under the vrf definition allows you to configure routing sessions and
other related configuration commands.
VRF Commands
3
VRF Commands
description (VRF definition)
Example
The following example shows the how to configure address-family ipv6 prefixes from vrf 77.
Device(config)# vrf definition 77
Device(config-vrf)# address-family ipv6
Device(config-ipv6)# exit-address-family
description string
no description
Cisco IOS XE Catalyst SD-WAN Release 17.2.1v Qualified for use in Cisco vManage CLI templates.
Usage Guidelines For the usage guideline, see description (VRF definition)
Examples
Device(config)# vrf definition 1
Device(config-vrf)# description vrf instance 1
ip vrf
To define a VPN routing and forwarding (VRF) instance and to enter VRF configuration mode, use the ip
vrf command in global configuration mode. To remove a VRF instance, use the no form of this command.
Supported Parameters
VRF Commands
4
VRF Commands
rd (VPLS)
Usage Guidelines For more information about this command, see the Cisco IOS XE ip vrf command.
Examples The following example shows how to import a route map to a VRF instance named VPN1:
rd (VPLS)
To specify a route distinguisher (RD) to distribute endpoint information in a Virtual Private LAN Service
(VPLS) configuration, use the rd command in L2 VFI configuration or VFI autodiscovery configuration
mode. To remove the manually configured RD and return to the automatically generated RD, use the no form
of this command.
rd {autonomous-system-number:nn | ip-address:nn}
no rd {autonomous-system-number:nn | ip-address:nn}
Syntax Description autonomous-system-number:nn Specifies a 16-bit autonomous system number (ASN) and 32-bit arbitrary
number. The ASN does not have to match the local autonomous system
number.
ip-address:nn Specifies a 32-bit IP address and a 16-bit arbitrary number. Only IPv4
addresses are supported.
Command Default VPLS autodiscovery automatically generates a RD using the Border Gateway Protocol (BGP) autonomous
system number and the configured virtual forwarding instance (VFI) VPN ID.
Cisco IOS XE Catalyst SD-WAN Release 17.2.1v Qualified for use in Cisco vManage CLI templates.
Examples
Device(config)# vrf definition 1
Device(config-vrf)# rd 1:2
redistribute vrf
To redistribute routes that are replicated between global VRF and service VPN and between inter-service
VPNs, use the redistribute vrf command in router configuration mode. To stop such redistribution, use the
no form of this command.
VRF Commands
5
VRF Commands
redistribute vrf
Syntax Description vrf-name The name of the VRF from which routes are replicated.
protocol Type of protocol of the source route. Some of the keywords require an argument.
The valid keywords and arguments are:
• bgp autonomous-system-number : Border Gateway Protocol (BGP).
• connected : Connected routes.
• eigrp autonomous-system-number : Enhanced Interior Gateway Routing
Protocol (EIGRP).
• ospf process-id : Open Shortest Path First (OSPF).
• static : Static routes.
• nhrp : Next Hop Resolution Protocol (NHRP) routes.
route-map-name (Optional) Name of a route map that filters out routes that shouldn’t be redistributed
back to the original protocol.
bandwidth-metric (Optional) Maximum bandwidth of the route in kilobits per second (kb/s). The
range is 1 to 4294967295.
mtu-bytes (Optional) Smallest allowed value for the maximum transmission unit (MTU) in
bytes. The range is 1 to 65535.
subnets (Optional) Specifies redistribution of routes into OSPF. When routes are
redistributed into OSPF, only routes that are not subnetted are redistributed if the
subnets keyword is not specified. This is not applicable for connected protocol
type. This can be configured for bgp, nhrp, ospf, ospfv3, and static protocol types.
By default, no subnets are defined.
VRF Commands
6
VRF Commands
redistribute vrf
Cisco IOS XE Catalyst SD-WAN Release Support is added for BGP as the destination protocol when
17.6.1a redistributing between the global VRF and service VPNs.
Cisco IOS XE Catalyst SD-WAN Release Support is added for redistrbuting between service VRFs on
17.9.1a the same edge device site.
Examples The following example shows how to redistribute global VRF routes into VRF EIGRP that were
replicated from global BGP to service VPN:
The following example shows how to redistribute global VRF routes into VRF BGP that were
replicated from global BGP to Service VPN:
The following example shows how to redistribute global VRF routes into VRF OSPF that were
replicated from global BGP into VRF:
VRF Commands
7
VRF Commands
route-replicate (VRF address family)
The following example shows how to redistribute routes via OSPF that were replicated from VRF
1:
Syntax Description from Specifies the topology where route replication is enabled.
vrf source-vrf-name Specifies the name of the VRF from which routes are replicated.
protocol Type of protocol of the source route. Some keywords require an argument. Valid
keywords and arguments are:
• bgp autonomous-system-number: Border Gateway Protocol (BGP).
• connected: Connected routes.
• eigrp autonomous-system-number: Enhanced Interior Gateway Routing Protocol
(EIGRP).
• ospf process-id: Open Shortest Path First (OSPF).
• static: Static routes.
route-map map-tag (Optional) Specifies the name of a route map that filters routes that shouldn’t be
replicated.
VRF Commands
8
VRF Commands
route-target
Release Modification
Cisco IOS XE Catalyst SD-WAN Release Support for route replication between service VPNs at the
17.9.1a same edge device site.
Usage Guidelines Route replication creates a link to a route in a routing information base (RIB) that is in a different VRF.
Examples The following example redistributes global VRF BGP routes into VRF EIGRP that were replicated
from VRF global into 1:
The following example redistributes global VRF EIGRP routes into BGP that were replicated from
VRF global:
The following example shows how to redistribute routes via OSPF that were replicated from VRF
1 into VRF 2:
route-target
To create a route-target extended community for a Virtual Private Network (VPN) routing and forwarding
(VRF) instance, use the route-target command in VRF configuration or in VRF address family configuration
mode. To disable the configuration of a route-target community option, use the no form of this command.
VRF Commands
9
VRF Commands
service tcp-keepalives-in
Syntax Description import (Optional) Imports routing information from the target VPN extended
community.
export Optional) Exports routing information to the target VPN extended community.
route-target-ext-community The route-target extended community attributes to be added to the VRF’s list
of import, export, or both (import and export) route-target extended
communities.
Command Default A VRF has no route-target extended community attributes associated with it.
Release Modification
Cisco IOS XE Catalyst SD-WAN Release 17.2.1v Qualified for use in Cisco vManage CLI templates.
Examples
Device(config)# vrf definition 1
Device(config-vrf)# default route-target export 101:3
service tcp-keepalives-in
To generate keepalive packets on idle incoming network connections (initiated by the remote host), use the
service tcp-keepalives-in command in global configuration mode . To disable the keepalives, use the noform
of this command.
service tcp-keepalives-in
no service tcp-keepalives-in
Cisco IOS XE Catalyst SD-WAN Release 17.3.1a Command qualified for use in Cisco vManage CLI
templates.
VRF Commands
10
VRF Commands
service tcp-keepalives-out
Examples In the following example, keepalives on incoming TCP connections are generated:
service tcp-keepalives-out
To generate keepalive packets on idle outgoing network connections (initiated by a user), use the service
tcp-keepalives-out command in global configuration mode . To disable the keepalives, use the noform of
this command.
service tcp-keepalives-out
no service tcp-keepalives-out
Cisco IOS XE Catalyst SD-WAN Release 17.3.1a Command qualified for use in Cisco vManage CLI
templates.
Examples In the following example, keepalives on outgoing TCP connections are generated:
service tcp-small-servers
To enable small TCP servers such as the Echo, use the service tcp-small-servers command in global
configuration mode. To disable the TCP server, use the no form of this command.
service tcp-small-servers
no service tcp-small-servers
Cisco IOS XE Catalyst SD-WAN Release 17.3.1a Command qualified for use in Cisco vManage CLI
templates.
VRF Commands
11
VRF Commands
service udp-small-servers
Usage Guidelines For usage guidelines, see the Cisco IOS XE service tcp small servers command.
Examples The following example shows how to enable small TCP servers:
service udp-small-servers
To enable small User Datagram Protocol (UDP) servers such as the Echo, use the service udp-small-servers
command in global configuration mode. To disable the UDP server, use the no form of this command.
service udp-small-servers
no service udp-small-servers
Cisco IOS XE Catalyst SD-WAN Release 17.3.1a Command qualified for use in Cisco vManage CLI
templates.
Usage Guidelines For usage guidelines, see the Cisco IOS XE service udp small servers command.
vrf definition
To configure a virtual routing and forwarding (VRF) routing-table instance and enter VRF configuration
mode, use the vrf definition command in global configuration mode. To remove a VRF routing table, use
the no form of this command.
Command Default No VRFs are defined. No import or export lists are associated with a VRF. No route maps are associated with
a VRF.
VRF Commands
12
VRF Commands
vrf definition
Cisco IOS XE Catalyst SD-WAN Release 17.2.1v Qualified for use in Cisco vManage CLI templates.
Examples
Device(config)# vrf definition 1
VRF Commands
13
VRF Commands
vrf definition
VRF Commands
14