# Using BGP Routes for Other Protocols

You can use the ip route-type or ipv6 route-type command to specify whether BGP IPv4 or IPv6 unicast routes are available only for unicast routing protocols or for both unicast and multicast routing protocols to perform RPF checks. Routes available for unicast routing protocols appear in the unicast view of the routing table, whereas routes available for multicast routing protocols appear in the multicast view of the routing table.

Typically you use MP-BGP to learn the RPF routes for multicast protocols, especially if the topology for multicast networks differs from that for unicast networks. However, you might use this command if you do not want to run multicast MP-BGP, or if you are running BGP between CE routers in a given BGP/MPLS VPN (the current specification does not provide a way to transmit multicast MP-BGP routes across a BGP/MPLS VPN core).

ip route-type

ipv6 route-type

- Use to specify whether BGP routes are available for other unicast protocols or both unicast and multicast protocols.
- You cannot specify that BGP routes are available only for multicast protocols.
- Use the show ip route or show ipv6 route command to view the routes available for unicast protocols.
- Use the show ip rpf-route or show ipv6 rpf-route command to view the routes available for multicast protocols. It does not display routes available only to unicast protocols.
- By default, BGP IPv4 and IPv6 unicast routes are available only for other unicast routing protocols.
- Example 1
  host1(config)#router bgp 100 host1(config-router)#ipv6 route-type both
- Example 2
  host1(config)#router bgp 100 host1(config-router)#address-family ipv4 unicast vrf v1 host1(config-router-af)#ip route-type both
- Use the no version to restore the default value, unicast.
- See ip route-type.
- See ipv6 route-type.