match afi

Use this command to match a packet against its Address Family Indicator (AFI) attribute.

Syntax

match afi {ipv4 | ipv6}
no match afi {ipv4 | ipv6}

Parameters

ipv4 | ipv6 Specifies the AFI attribute to match a packet against:
  • ipv4 - The IPv4 AFI attribute
  • ipv6 - The IPv6 AFI attribute

Defaults

None.

Mode

BGP route map configuration.

Usage

The no match afi command removes the specified AFI match clause from this route map.

Example

This example shows how to match a packet IPv6 AFI attribute for route map bgprm1:

System(su)->configure
System(su-config)->route-map bgp bgprm1 permit
System(su-config-route-map-bgp)->match afi ipv6
System(su-config-route-map-bgp)->show route-map bgprm1
 route-map bgp bgprm1 permit 10
  match afi ipv6
System(su-config-route-map-bgp)->