address-family ipv4 mdt

Use address-family ipv4 mdt to create a BGP IPv4 MDT address family and enter its view, or enter the view of the existing BGP IPv4 MDT address family.

Use undo address-family ipv4 mdt to delete the BGP IPv4 MDT address family and all configurations in BGP IPv4 MDT address family view.

Syntax

address-family ipv4 mdt

undo address-family ipv4 mdt

Default

No BGP IPv4 MDT address family exists.

Views

BGP instance view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

Execute this command before you use the peer enable command to enable BGP peers to exchange MDT information. MDT information includes the IP address of a PE device and the default-group to which the PE device belongs. On a public network running PIM-SSM, multicast VPN establishes a default-MDT rooted at the PE device (multicast source) based on the MDT information.

Configurations in BGP IPv4 MDT address family view take effect only on BGP MDT messages, BGP MDT peers, and BGP MDT peer groups.

Examples

# In BGP instance view of BGP instance default, create a BGP IPv4 MDT address family and enter its view.

<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] address-family ipv4 mdt
[Sysname-bgp-default-mdt]

# In BGP instance view of BGP instance abc, create a BGP IPv4 MDT address family and enter its view.

<Sysname> system-view
[Sysname] bgp 100 instance abc
[Sysname-bgp-abc] address-family ipv4 mdt
[Sysname-bgp-abc-mdt]

Related commands

peer enable (see Layer 3—IP Routing Command Reference)