.. _example_protocols_bgp_neighbor_address-family_ipv6-unicast_route-map:
#########
Route-Map
#########
This scenario demonstrates how to configure route-map filtering for IPv6 BGP neighbors.
The route-map command applies route-map filters to routes sent to or received from a neighbor.
Options include import (filter incoming routes) and export (filter outgoing routes).
****************************************
Test iBGP IPv6 - Route-map import filter
****************************************
Description
===========
Test to verify that route-map import filters incoming routes.
DUT0 has a route-map that only permits 2001:db8:10::/64.
DUT1 advertises two routes but DUT0 should only receive 2001:db8:10::/64.
Scenario
========
.. include:: route-map/testibgpipv6-route-mapimportfilter
.. raw:: html
****************************************
Test iBGP IPv6 - Route-map export filter
****************************************
Description
===========
Test to verify that route-map export filters outgoing routes.
DUT1 has a route-map that only permits 2001:db8:10::/64 for export.
DUT1 has two routes but only exports 2001:db8:10::/64 to DUT0.
Scenario
========
.. include:: route-map/testibgpipv6-route-mapexportfilter
.. raw:: html
*************************************
Test iBGP IPv6 - Route-map set metric
*************************************
Description
===========
Test to verify that route-map can modify route attributes.
DUT1 exports routes with metric 100 set by route-map.
DUT0 should receive routes with the modified metric.
Scenario
========
.. include:: route-map/testibgpipv6-route-mapsetmetric
.. raw:: html