238
Step Command Remarks
1.
Enter system view.
system-view
N/A
2.
Enter VPN instance view.
ip vpn-instance
vpn-instance-name
N/A
3.
Enter IPv4 VPN view.
address-family ipv4
N/A
4.
Enable the VPN instance
to replicate routes from
the public network or
other VPN instances.
route-replicate from
{
public
|
vpn-instance
vpn-instance-name
}
protocol bgp
as-number
[
route-policy
route-policy-name
]
route-replicate from
{
public
|
vpn-instance
vpn-instance-name
}
protocol
{
direct
|
static
| {
isis
|
ospf
|
rip
}
process-id
} [
advertise
]
[
route-policy
route-policy-name
]
By default, a VPN instance
cannot replicate routes from the
public network or other VPN
instances.
Enabling SNMP notifications for MPLS L3VPN
To report critical MPLS L3VPN events to an NMS, enable SNMP notifications for MPLS L3VPN. For
MPLS L3VPN event notifications to be sent correctly, you must also configure SNMP on the device.
For more information about SNMP configuration, see the network management and monitoring
configuration guide for the device.
To enable SNMP notifications for MPLS L3VPN:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable SNMP notifications
for MPLS L3VPN.
snmp-agent trap enable l3vpn
By default, SNMP notifications for
MPLS L3VPN are enabled.
Displaying and maintaining MPLS L3VPN
You can soft-reset or reset BGP sessions to apply new BGP configurations. A soft reset operation
updates BGP routing information without tearing down BGP connections. A reset operation updates
BGP routing information by tearing down, and then re-establishing BGP connections. Soft reset
requires that BGP peers have route refresh capability.
Execute the following commands in user view to soft reset or reset BGP connections:
Task Command
Manually soft reset BGP sessions for
VPNv4 address family.
refresh bgp
[
instance
instance-name
] {
ipv4-address
[
mask-length
] |
all
|
external
|
group
group-name
|
internal
}
{
export
|
import
}
vpnv4
[
vpn-instance
vpn-instance-name
]
Reset BGP sessions for VPNv4
address family.
reset bgp
[
instance
instance-name
] {
as-number
|
ipv4-address
[
mask-length
] |
all
|
external
|
internal
|
group
group-name
}
vpnv4
[
vpn-instance
vpn-instance-name
]
For more information about the
refresh bgp vpnv4
and
reset bgp vpnv4
commands, see
Layer
3—IP Routing Command Reference
.
Execute the following commands in any view to display MPLS L3VPN: