
316
Use the
undo peer default-route-advertise vpn-instance
command to remove the configuration.
By default, no default route is advertised to a peer or peer group.
Related commands:
peer upe
.
Syntax
peer
{
group-name
|
ip-address
}
default-route-advertise
vpn-instance
vpn-instance-name
undo peer
{
group-name
|
ip-address
}
default-route-advertise
vpn-instance
vpn-instance-name
View
BGP-VPNv4 subaddress family view
Default level
2: System level
Parameters
group-name
: Specifies the name of the peer group, which is a case-sensitive string of 1 to 47 characters.
ip-address
: Specifies the IP address of the peer.
vpn-instance-name
: Specifies the name of the VPN instance, which is a string of 1 to 31 characters.
Examples
# In BGP-VPNv4 subaddress family view, specify to advertise default routes of VPN instance vpn1 to peer
1.1.1.1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer 1.1.1.1 enable
[Sysname-bgp-af-vpnv4] peer 1.1.1.1 upe
[Sysname-bgp-af-vpnv4] peer 1.1.1.1 default-route-advertise vpn-instance vpn1
peer enable
Description
Use the
peer enable
command to enable a peer or peer group for an address family and enable the
exchange of BGP routing information of the address family.
Use the
undo peer enable
command to disable the capability.
By default, only IPv4 routing information is exchanged between BGP peers/peer groups.
Syntax
peer
{
group-name
|
ip-address
}
enable
undo peer
{
group-name
|
ip-address
}
enable
View
BGP-VPNv4 subaddress family view, BGP-L2VPN address family view, VPLS address family view
Default level
2: System level