- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
04-MPLS L3VPN Commands | 280.97 KB |
Contents
description (VPN instance view)
display bgp routing-table ipv4 unicast inlabel
display bgp routing-table ipv4 unicast outlabel
display bgp routing-table vpnv4
display bgp routing-table vpnv4 advertise-info
display bgp routing-table vpnv4 as-path-acl
display bgp routing-table vpnv4 community-list
display bgp routing-table vpnv4 inlabel
display bgp routing-table vpnv4 outlabel
display bgp routing-table vpnv4 peer
display bgp routing-table vpnv4 statistics
ipv4-family (VPN instance view)
reserve-vlan (VPN instance view)
route-distinguisher (VPN instance view)
tnl-policy (VPN instance view/IPv4 VPN view/IPv6 VPN view)
vpn-instance-capability simple
vpn-target (VPN instance view/IPv4 VPN view/IPv6 VPN view)
display bgp routing-table vpnv6
display bgp routing-table vpnv6 advertise-info
display bgp routing-table vpnv6 as-path-acl
display bgp routing-table vpnv6 community-list
display bgp routing-table vpnv6 inlabel
display bgp routing-table vpnv6 outlabel
display bgp routing-table vpnv6 peer
display bgp routing-table vpnv6 statistics
ipv6-family (VPN instance view)
description (VPN instance view)
Use description to configure a description for a VPN instance.
Use undo description to delete the description.
Syntax
description text
undo description
Default
No description is configured for a VPN instance.
Views
VPN instance view
Default command level
2: System level
Parameters
text: Description for the VPN instance, a case-sensitive string of 1 to 79 characters.
Examples
# Configure a description of "This is vpn1" for VPN instance vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] description This is vpn1
display bgp group vpnv4
Use display bgp group vpnv4 to display information about a specific BGP VPNv4 peer group or all BGP VPNv4 peer groups.
Syntax
display bgp group vpnv4 [ vpn-instance vpn-instance-name ] [ group-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
vpn-instance vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, this command displays BGP VPNv4 peer group information for the public network.
group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. If no peer group is specified, this command displays all peer groups.
Examples
# Display all BGP VPNv4 peer groups for the public network.
<Sysname> display bgp group vpnv4
BGP peer group: group1
Remote AS number: not specified
Type: external
Members:
10.1.1.1
# Display information about the BGP VPNv4 peer group named group1.
<Sysname> display bgp group vpnv4 group1
BGP peer group: group1
Remote AS: 600
Type: external
Maximum number of prefixes allowed: 4294967295
Threshold: 75%
Configured hold time: 180 seconds
Keepalive time: 60 seconds
Minimum time between advertisements: 30 seconds
Peer preferred value: 0
Routing policy configured:
No routing policy is configured
Members:
Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State
2.2.2.2 600 0 0 0 0 00:00:05 Idle
Table 1 Command output
Field |
Description |
BGP peer-group |
Name of the BGP peer group. |
Remote AS |
AS number of the peer group. |
Type |
Type of the BGP peer group: · External—EBGP peer group · Internal—IBGP peer group |
Maximum number of prefixes allowed |
Maximum number of routes that can be learned from the peer group. |
Threshold |
Warning threshold. When the percentage of received route prefixes to the maximum number of routes reaches this threshold, the device generates a prompt. |
Configured hold time |
Configured hold time, in seconds. |
Keepalive time |
Keepalive interval, in seconds. |
Minimum time between advertisements |
Minimum time between advertisements |
Peer Preferred Value |
Preferred value for routes received from the peer. |
Routing policy configured |
Routing policy configured for the peer group. |
Members |
Peers in the peer group. |
Peer |
IPv6 address of the peer. |
AS |
AS number of the peer group. |
MsgRcvd |
Number of messages received. |
MsgSent |
Number of messages sent. |
OutQ |
Number of messages waiting to be sent to the peer. |
PrefRcv |
Number of prefixes received. |
Up/Down |
Duration of the BGP session in the current state. |
State |
State of the peer. |
display bgp peer vpnv4
Use display bgp peer vpnv4 to display information about BGP VPNv4 peers.
Syntax
display bgp peer vpnv4 [ vpn-instance vpn-instance-name ] [ group-name log-info | ip-address { log-info | verbose } | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
vpn-instance vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, this command displays BGP VPNv4 peer information for the public network.
group-name: Displays peers in the specified peer group. The group name is a case-sensitive string of 1 to 47 characters.
ip-address: Specifies a BGP VPNv4 peer.
log-info: Displays log information.
verbose: Displays detailed information.
Usage guidelines
With no parameters specified, this command displays brief information about all BGP VPNv4 peers.
Examples
# Display brief information about BGP VPNv4 peers for the public network.
<Sysname> display bgp peer vpnv4
BGP local router ID: 1.1.1.9
Local AS number: 100
Total number of peers: 2 Peers in established state: 1
Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State
3.3.3.9 100 50 51 0 2 00:37:19 Established
Table 2 Command output
Field |
Description |
BGP Local router ID |
Router ID of the local BGP router. |
Local AS number |
Local AS number |
Total number of peers |
Total number of peers |
Peers in established state |
Number of peers in the state of established. |
Peer |
IP address of the peer. |
AS |
AS number of the peer. |
MsgRcvd |
Number of messages received. |
MsgSent |
Number of messages sent. |
OutQ |
Number of messages waiting to be sent to the peer. |
PrefRcv |
Number of received prefixes. |
Up/Down |
Duration of the BGP session in the current state. |
State |
State of the peer. |
# Display detailed information about BGP VPNv4 peer 10.1.1.1.
<Sysname> display bgp peer vpnv4 10.1.1.1 verbose
Peer: 10.1.1.1 Local: 192.168.1.136
Type: EBGP link
BGP version 4, remote router ID 192.168.1.135
BGP current state: Established, Up for 00h01m25s
BGP current event: KATimerExpired
BGP last state: OpenConfirm
Port: Local - 179 Remote - 1049
Configured: Active Hold Time: 180 sec Keepalive Time: 60 sec
Received : Active Hold Time: 180 sec
Negotiated: Active Hold Time: 180 sec Keepalive Time: 60 sec
Peer optional capabilities:
Peer support BGP multi-protocol extended
Peer support BGP route refresh capability
Peer support BGP route AS4 capability
Address family IPv4 Unicast: received
Address family VPNv4: advertised and received
Received: Total 4 messages, Update messages 1
Sent: Total 17 messages, Update messages 1
Maximum allowed prefix number: 4294967295
Threshold: 75%
Minimum time between advertisements is 30 seconds
Optional capabilities:
Multi-protocol extended capability has been enabled
Route refresh capability has been enabled
Connect-interface has been configured
Peer Preferred Value: 0
BFD: Enabled
Routing policy configured:
No routing policy is configured
Table 3 Command output
Field |
Description |
Peer |
IP address of the peer. |
Local |
IP address of the local router. |
Type |
BGP link type, IBGP link or EBGP link. |
BGP version |
BGP version of the peer. |
remote router ID |
Router ID of the peer. |
BGP current state |
Current state of the BGP session. |
Up for |
Duration since the peer is established. |
BGP current event |
Current event of the BGP session. |
BGP last state |
State that the BGP session was in before transitioning to the current state. |
Port |
Local and remote ports of the BGP session. |
Configured |
Settings of the local timers, including the active hold interval and keepalive interval. |
Received |
Received active hold interval. |
Negotiated |
Negotiated active hold interval and keepalive interval. |
Peer optional capabilities |
Optional capabilities of the peer. |
Peer support bgp multi-protocol extended |
The peer supports multiprotocol extension. |
Peer support bgp route refresh capability |
The peer supports route refresh capability. |
Peer support bgp route AS4 capability |
The peer supports 4-byte AS number capability. |
Address family IPv4 Unicast |
IPv4 unicast family capability. |
Received |
Total number of received messages and the number of received update messages. |
Sent |
Total number of sent messages and the number of sent update messages. |
Maximum allowed prefix number |
Maximum number of routes that can be learned from the peer. |
Threshold |
Warning threshold. When the percentage of the number of the received route prefixes to the maximum number of routes supported reaches this threshold, the device generates a prompt. |
Optional capabilities |
Local optional capabilities. |
Peer Preferred Value |
Preferred value for the routes from the peer. |
BFD |
Indicates whether BFD is enabled for the peer. |
# Display log information for the BGP VPNv4 peer 10.1.1.1.
<Sysname> display bgp peer vpnv4 10.1.1.1 log-info
Peer: 10.1.1.1
Date Time State Notification
Error/SubError
21-Nov-2011 12:36:58 Up
21-Nov-2011 12:22:29 Down Send notification with error 6/6
Cease/Other Configuration Change
21-Nov-2011 12:07:09 Up
display bgp routing-table ipv4 unicast inlabel
Use display bgp routing-table ipv4 unicast inlabel to display incoming labels for BGP IPv4 unicast routes.
Syntax
display bgp routing-table ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] inlabel
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
vpn-instance vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, this command displays incoming labels for BGP IPv4 unicast routes on the public network.
Usage guidelines
The unicast keyword does not affect the command output.
Examples
# Display incoming labels for all BGP IPv4 unicast routes on the public network.
<Sysname> display bgp routing-table ipv4 inlabel
Total number of routes: 1
BGP local router ID is 3.3.3.9
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Network NextHop OutLabel InLabel
> 2.2.2.9/32 1.1.1.2 1151 1279
Table 4 Command output
Field |
Description |
BGP Local router ID |
Router ID of the local BGP router. |
Status |
Route status codes. See Table 6. |
Origin |
Route origin codes. See Table 6. |
In/Out Label |
Incoming/outgoing label. |
display bgp routing-table ipv4 unicast outlabel
Use display bgp routing-table ipv4 unicast outlabel to display outgoing labels for BGP IPv4 unicast routes.
Syntax
display bgp routing-table ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] outlabel
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
vpn-instance vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, this command displays outgoing labels for BGP IPv4 unicast routes on the public network.
Usage guidelines
The unicast keyword does not affect the command output.
Examples
# Display outgoing labels for all BGP IPv4 unicast routes on the public network.
<Sysname> display bgp routing-table ipv4 outlabel
Total number of routes: 1
BGP local router ID is 3.3.3.9
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Network NextHop OutLabel
> 2.2.2.9/32 1.1.1.2 1151
Table 5 Command output
Field |
Description |
BGP Local router ID |
Router ID of the local BGP router. |
Status |
Route status codes. See Table 6. |
Origin |
Route origin codes. See Table 6. |
OutLabel |
Outgoing label. |
display bgp routing-table vpnv4
Use display bgp routing-table vpnv4 to display BGP VPNv4 routing information.
Syntax
display bgp routing-table vpnv4 [ route-distinguisher route-distinguisher ] [ network-address [ { mask | mask-length } [ longest-match ] ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
route-distinguisher route-distinguisher: Specifies an RD, a string of 3 to 21 characters in one of these formats:
· 16-bit AS number:32-bit user-defined number. For example, 101:3.
· 32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
· 32-bit AS number:16-bit user-defined number, where the minimum value of the AS number is 65536. For example, 65536:1.
network-address: Destination network address.
mask: Network mask, in dotted decimal notation.
mask-length: Length of the network mask, in the range of 0 to 32.
longest-match: Displays the longest matching BGP VPNv4 route.
Usage guidelines
If none of network-address, mask, and mask-length are specified, the command displays brief information about all BGP VPNv4 routes.
If network-address mask or network-address mask-length is specified, the command displays detailed information about the BGP VPNv4 route that exactly matches the specified address and mask.
If only network-address is specified, the command displays detailed information about the BGP VPNv4 route that exactly matches the specified address and the natural mask.
Examples
# Display brief information about all BGP VPNv4 routes.
<Sysname> display bgp routing-table vpnv4
BGP local router ID is 1.1.1.9
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Total number of routes from all PEs: 2
Route distinguisher: 100:1(vpn1)
Total number of routes: 6
Network NextHop MED LocPrf PrefVal Path/Ogn
> 10.1.1.0/24 10.1.1.2 0 32768 ?
* e 10.1.1.1 0 0 65410?
> 10.1.1.2/32 127.0.0.1 0 32768 ?
>i 10.3.1.0/24 3.3.3.9 0 100 0 ?
>e 192.168.1.0 10.1.1.1 0 0 65410?
* i 3.3.3.9 0 100 0 65420?
Route distinguisher: 200:1
Total number of routes: 2
Network NextHop MED LocPrf PrefVal Path/Ogn
>i 10.3.1.0/24 3.3.3.9 0 100 0 ?
>i 192.168.1.0 3.3.3.9 0 100 0 65420?
# Display brief information about BGP VPNv4 routes with RD 100:1..
<Sysname> display bgp routing-table vpnv4 route-distinguisher 100:1
BGP local router ID is 1.1.1.9
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Route distinguisher: 100:1(vpn1)
Total number of routes: 6
Network NextHop MED LocPrf PrefVal Path/Ogn
> 10.1.1.0/24 10.1.1.2 0 32768 ?
* e 10.1.1.1 0 0 65410?
> 10.1.1.2/32 127.0.0.1 0 32768 ?
>i 10.3.1.0/24 3.3.3.9 0 100 0 ?
>e 192.168.1.0 10.1.1.1 0 0 65410?
* i 3.3.3.9 0 100 0 65420?
Field |
Description |
BGP Local router ID |
Router ID of the local BGP router. |
Status codes |
Route status codes: · * - valid—Valid route. · > - best—Common best route. · d – damped—Route damped for route flap. · h - history—History route. · i - internal—Internal route. · e - external—External route. · s - suppressed—Suppressed route. · S - Stale—Stale route. |
Origin |
Route origin: · i—IGP, originated in the AS. The origin of summary routes and routes advertised by the network command is IGP. · e—EGP, learned through EGP. · ?—Incomplete. The origin of routes redistributed from IGP protocols is Incomplete. |
Total number of routes from all PEs |
Total number of VPNv4 routes from all PEs. |
Network |
Network address. |
NextHop |
Address of the next hop. |
MED |
MED value. |
LocPrf |
Local preference value. |
PrefVal |
Preferred value. |
Path/Ogn |
AS_PATH and Origin attributes. |
# Display detailed information about the BGP VPNv4 route destined for 10.3.1.0/24.
<Sysname> display bgp routing-table vpnv4 10.3.1.0 24
BGP local router ID: 1.1.1.9
Local AS number: 100
Route distinguisher: 100:1(vpn1)
Total number of routes: 1
Paths: 1 available, 1 best
BGP routing table information of 10.3.1.0/24:
From : 3.3.3.9 (3.3.3.9)
Relay nexthop : 172.1.1.2
Original nexthop: 3.3.3.9
OutLabel : 1279
Ext-Community : <RT: 111:1>
AS-path : (null)
Origin : incomplete
Attribute value : MED 0, localpref 100, pref-val 0
State : valid, internal, best,
Route distinguisher: 200:1
Total number of routes: 1
Paths: 1 available, 1 best
BGP routing table information of 10.3.1.0/24:
From : 3.3.3.9 (3.3.3.9)
Relay nexthop : 172.1.1.2
Original nexthop: 3.3.3.9
OutLabel : 1279
Ext-Community : <RT: 111:1>
AS-path : (null)
Origin : incomplete
Attribute value : MED 0, localpref 100, pref-val 0
State : valid, internal, best,
# Display detailed information about the BGP VPNv4 route destined for 10.3.1.0/24 and with RD 100:1.
<Sysname> display bgp routing-table vpnv4 route-distinguisher 100:1 10.3.1.0 24
BGP local router ID: 1.1.1.9
Local AS number: 100
Route distinguisher: 100:1(vpn1)
Total number of routes: 1
Paths: 1 available, 1 best
BGP routing table information of 10.3.1.0/24:
From : 3.3.3.9 (3.3.3.9)
Relay nexthop : 172.1.1.2
Original nexthop: 3.3.3.9
OutLabel : 1279
Ext-Community : <RT: 111:1>
AS-path : (null)
Origin : incomplete
Attribute value : MED 0, localpref 100, pref-val 0
State : valid, internal, best,
Table 7 Command output
Field |
Description |
Relay Nexthop |
Recursive next hop. If no recursive next hop is found, "not resolved" is displayed. |
Original nexthop |
Original next hop. If the route is learned from a BGP update, it is the next hop in the update message. |
Ext-Community |
Extended community attribute. |
Attribute value |
BGP route attribute information: · MED—MED attribute. · Localpref—Local preference. · pref-val—Preferred value. · pre—Protocol preference. |
State |
Route status: · valid—Valid route. · internal—Internal route. · external—External route. · local—Locally generated route. · synchronize—Synchronized route. · best—Best route. |
display bgp routing-table vpnv4 advertise-info
Use display bgp routing-table vpnv4 advertise-info to display advertisement information for BGP VPNv4 routes.
Syntax
display bgp routing-table vpnv4 [ route-distinguisher route-distinguisher ] network-address [ mask | mask-length ] advertise-info
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
route-distinguisher route-distinguisher: Specifies an RD, a string of 3 to 21 characters in one of these formats:
· 16-bit AS number:32-bit user-defined number. For example, 101:3.
· 32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
· 32-bit AS number:16-bit user-defined number, where the minimum value of the AS number is 65536. For example, 65536:1.
network-address: Destination network address.
mask: Network mask, in dotted decimal notation.
mask-length: Length of the network mask, in the range of 0 to 32.
Usage guidelines
· If the mask and mask-length arguments are not specified, the system ANDs the specified network address with the mask of each route. If the result matches the network address of the route, the command displays advertisement information for the route.
· If the mask or mask-length argument is specified, the command displays advertisement information for the BGP VPNv4 route that exactly matches the specified address and mask.
Examples
# Display advertisement information for the BGP VPNv4 route destined to network 10.2.1.0/24.
<Sysname> display bgp routing-table vpnv4 10.1.1.0 24 advertise-info
BGP local router ID: 1.1.1.9
Local AS number: 100
Route distinguisher: 100:1
Total number of routes: 1
Paths: 1 best
BGP routing table information of 10.1.1.0/24:
Advertised to VPN peers (1 in total):
3.3.3.9
Inlabel : 1279
display bgp routing-table vpnv4 as-path-acl
Use display bgp routing-table vpnv4 as-path-acl to display BGP IPv4 unicast routes permitted by an AS path ACL.
Syntax
display bgp routing-table vpnv4 [ route-distinguisher route-distinguisher ] as-path-acl as-path-acl-number
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
route-distinguisher route-distinguisher: Specifies an RD, a string of 3 to 21 characters in one of these formats:
· 16-bit AS number:32-bit user-defined number. For example, 101:3.
· 32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
· 32-bit AS number:16-bit user-defined number, where the minimum value of the AS number is 65536. For example, 65536:1.
as-path-acl-number: Specifies an AS path ACL by its number in the range of 1 to 256.
Examples
# Display BGP VPNv4 routes permitted by AS path ACL 1.
<Sysname> display bgp routing-table vpnv4 as-path-acl 1
BGP local router ID is 1.1.1.9
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Total number of routes from all PEs: 2
Route distinguisher: 100:1(vpn1)
Total number of routes: 6
Network NextHop MED LocPrf PrefVal Path/Ogn
> 10.1.1.0/24 10.1.1.2 0 32768 ?
* e 10.1.1.1 0 0 65410?
> 10.1.1.2/32 127.0.0.1 0 32768 ?
>i 10.3.1.0/24 3.3.3.9 0 100 0 ?
>e 192.168.1.0 10.1.1.1 0 0 65410?
* i 3.3.3.9 0 100 0 65420?
Route distinguisher: 200:1
Total number of routes: 2
Network NextHop MED LocPrf PrefVal Path/Ogn
>i 10.3.1.0/24 3.3.3.9 0 100 0 ?
>i 192.168.1.0 3.3.3.9 0 100 0 65420?
For command output, see Table 6.
Related commands
ip as-path (Layer 3—IP Routing Configuration Guide)
display bgp routing-table vpnv4 community-list
Use display bgp routing-table vpnv4 community-list to display BGP VPNv4 routing information matching a specified BGP community list.
Syntax
display bgp routing-table vpnv4 [ route-distinguisher route-distinguisher ] community-list { { basic-community-list-number | comm-list-name } [ whole-match ] | adv-community-list-number }
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
route-distinguisher route-distinguisher: Specifies an RD, a string of 3 to 21 characters in one of these formats:
· 16-bit AS number:32-bit user-defined number. For example, 101:3.
· 32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
· 32-bit AS number:16-bit user-defined number, where the minimum value of the AS number is 65536. For example, 65536:1.
basic-community-list-number: Specifies a basic community list by its number in the range of 1 to 99.
comm-list-name: Specifies a community list by its name, a case-sensitive string of 1 to 63 characters.
whole-match: Displays routes exactly matching the specified community list. Without this keyword, the command displays routes whose COMMUNITY attributes comprise the specified community list.
adv-community-list-number: Specifies an advanced community list by its number in the range of 100 to 199.
Examples
# Display BGP VPNv4 routing information matching BGP community list 100.
<Sysname> display bgp routing-table vpnv4 community-list 100
BGP local router ID is 1.1.1.9
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Total number of routes from all PEs: 2
Route distinguisher: 100:1(vpn1)
Total number of routes: 6
Network NextHop MED LocPrf PrefVal Path/Ogn
> 10.1.1.0/24 10.1.1.2 0 32768 ?
* e 10.1.1.1 0 0 65410?
> 10.1.1.2/32 127.0.0.1 0 32768 ?
>i 10.3.1.0/24 3.3.3.9 0 100 0 ?
>e 192.168.1.0 10.1.1.1 0 0 65410?
* i 3.3.3.9 0 100 0 65420?
Route distinguisher: 200:1
Total number of routes: 2
Network NextHop MED LocPrf PrefVal Path/Ogn
>i 10.3.1.0/24 3.3.3.9 0 100 0 ?
>i 192.168.1.0 3.3.3.9 0 100 0 65420?
For command output, see Table 6.
display bgp routing-table vpnv4 inlabel
Use display bgp routing-table vpnv4 inlabel to display incoming labels for BGP VPNv4 routes.
Syntax
display bgp routing-table vpnv4 inlabel
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Examples
# Display incoming labels for all BGP VPNv4 routes.
<Sysname> display bgp routing-table vpnv4 inlabel
Total number of routes: 2
BGP local router ID is 1.1.1.9
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Route distinguisher: 100:1
Total number of routes: 2
Network NextHop OutLabel InLabel
> 10.1.1.0/24 10.1.1.2 NULL 1279
>e 192.168.1.0 10.1.1.1 NULL 1278
Table 8 Command output
Field |
Description |
BGP Local router ID |
Router ID of the local BGP router. |
Status codes |
Route status codes. See Table 6. |
Origin |
Route origin. See Table 6. |
display bgp routing-table vpnv4 outlabel
Use display bgp routing-table vpnv4 outlabel to display ougoing labels for BGP VPNv4 routes.
Syntax
display bgp routing-table vpnv4 outlabel
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Examples
# Display outgoing labels for all BGP VPNv4 routes.
<Sysname> display bgp routing-table vpnv4 outlabel
BGP local router ID is 1.1.1.9
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Total number of routes from all PEs: 2
Route distinguisher: 100:1(vpn1)
Total number of routes: 2
Network NextHop OutLabel
>i 10.3.1.0/24 3.3.3.9 1279
* i 192.168.1.0 3.3.3.9 1278
Route distinguisher: 200:1
Total number of routes: 2
Network NextHop OutLabel
>i 10.3.1.0/24 3.3.3.9 1279
>i 192.168.1.0 3.3.3.9 1278
Table 9 Command output
Field |
Description |
BGP Local router ID |
Router ID of the local BGP router. |
Status |
Route status codes. See Table 6. |
Origin |
Route origin codes. See Table 6. |
OutLabel |
Outgoing label. |
display bgp routing-table vpnv4 peer
Use display bgp routing-table vpnv4 peer to display BGP VPNv4 routing information advertised to or received from a specified BGP peer.
Syntax
display bgp routing-table vpnv4 [ vpn-instance vpn-instance-name ] peer ip-address { advertised-routes | received-routes } [ network-address [ mask | mask-length ] | statistics ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command displays BGP VPNv4 routing information advertised to or received from the specified BGP peer on the public network.
ip-address: Specifies a peer by its IP address.
advertised-routes: Displays routing information advertised to the specified peer.
received-routes: Displays routing information received from the specified peer.
network-address: Specifies the IP address of the destination network.
mask: Specifies the mask of the destination network, in dotted decimal notation.
mask-length: Specifies a mask length in the range of 0 to 32.
statistics: Displays route statistics.
Usage guidelines
If none of network-address, mask, and mask-length are specified, the command displays all BGP VPNv4 routing information advertised to or received from the specified BGP peer.
If the network-address argument is specified without mask or mask-length, the system ANDs the network address with the mask of a route. If the result matches the network address of the route, the command displays information about the route.
If network-address mask or network-address mask-length is specified, the command displays information about the route that exactly matches the specified address and mask (or mask length).
Examples
# Display all BGP VPNv4 routing information advertised to BGP peer 3.3.3.9 on the public network.
<Sysname> display bgp routing-table vpnv4 peer 3.3.3.9 advertised-routes
Total number of routes: 2
BGP local router ID is 1.1.1.9
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Route distinguisher: 100:1
Total number of routes: 2
Network NextHop MED LocPrf Path/Ogn
> 10.1.1.0/24 10.1.1.2 0 ?
>e 192.168.1.0 10.1.1.1 0 65410?
# Display all BGP VPNv4 routing information received from BGP peer 3.3.3.9 on the public network.
<Sysname> display bgp routing-table vpnv4 peer 3.3.3.9 received-routes
Total number of routes: 2
BGP local router ID is 1.1.1.9
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Route distinguisher: 200:1
Total number of routes: 2
Network NextHop MED LocPrf PrefVal Path/Ogn
>i 10.3.1.0/24 3.3.3.9 0 100 0 ?
>i 192.168.1.0 3.3.3.9 0 100 0 65420?
For command output, see Table 6.
# Display statistics for BGP VPNv4 routes advertised to BGP peer 3.3.3.9 on the public network.
<Sysname> display bgp routing-table vpnv4 peer 3.3.3.9 advertised-routes statistics
Advertised routes total: 2
# Display statistics for BGP VPNv4 routes received from BGP peer 3.3.3.9 on the public network.
<Sysname> display bgp routing-table vpnv4 peer 3.3.3.9 received-routes statistic
Received routes total: 2
Table 10 Command output
Field |
Description |
Advertised routes total |
Total number of routes advertised to the specified peer. |
Received routes total |
Total number of routes received from the specified peer. |
display bgp routing-table vpnv4 statistics
Use display bgp routing-table vpnv4 statistics to display BGP VPNv4 route statistics.
Syntax
display bgp routing-table vpnv4 statistics
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Examples
# Display BGP VPNv4 route statistics for the public network.
<Sysname> display bgp routing-table vpnv4 statistics
Total number of routes from all PEs: 2
Route distinguisher: 100:1(vpn1)
Total number of routes: 6
Route distinguisher: 200:1
Total number of routes: 2
display ip vpn-instance
Use display ip vpn-instance to display information about VPN instances.
Syntax
display ip vpn-instance [ instance-name vpn-instance-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
instance-name vpn-instance-name: Displays information about the specified VPN instance. The vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command displays brief information about all VPN instances.
Examples
# Display brief information about all VPN instances.
<Sysname> display ip vpn-instance
Total VPN-Instances configured : 1
VPN-Instance Name RD Create time
abc 1:1 2011/05/18 10:48:17
Table 11 Command output
Field |
Description |
VPN-Instance Name |
Name of the VPN instance. |
RD |
RD of the VPN instance. |
Create Time |
Time when the VPN instance was created. |
# Display detailed information about VPN instance vpn1.
<Sysname> display ip vpn-instance instance-name vpn1
VPN-Instance Name and ID : vpn1, 2
Route Distinguisher : 100:1
Description : vpn1
Interfaces : GigabitEthernet3/0/2
Ipv4-family:
Export VPN Targets :
2:2
Import VPN Targets :
3:3
Export Route Policy : outpolicy
Import Route Policy : inpolicy
Tunnel Policy : tunnel1
Maximum Routes Limit : 5000
Ipv6-family:
Export VPN Targets :
2:2
Import VPN Targets :
3:3
Export Route Policy : outpolicy
Import Route Policy : inpolicy
Tunnel Policy : tunnel1
Maximum Routes Limit : 5000
domain-id
Use domain-id to configure an OSPF domain ID.
Use undo domain-id to restore the default.
Syntax
domain-id domain-id [ secondary ]
undo domain-id [ domain-id ]
Default
The OSPF domain ID is 0.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
domain-id: OSPF domain ID, in one of these formats:
· Integer, in the range of 0 to 4294967295. For example, 1.
· Dotted decimal notation. For example, 0.0.0.1.
· Dotted decimal notation:16-bit user-defined number in the range of 0 to 65535. For example, 0.0.0.1:512.
secondary: Specifies a secondary domain ID. Without this keyword, the command specifies a primary domain ID.
Usage guidelines
When you redistribute OSPF routes into BGP, BGP adds the configured OSPF domain ID to the redistributed BGP VPN routes as a BGP extended community attribute and advertises the routes to the BGP peer. When you redistribute the BGP VPN routes into OSPF on the BGP peer, OSPF uses the domain ID to determine whether the routes belong to the same OSPF routing domain. If yes and the routes are intra-area routes, OSPF advertises these routes in Summary LSAs (Type 3). If yes but the routes are not intra-area routes, OSPF advertises these routes in AS External LSAs (Type 5) or NSSA External LSAs (Type 7). If not, OSPF advertises these routes in Type 5 or Type 7 LSAs.
With no parameter specified, the undo domain-id command deletes all domain IDs.
Examples
# Configure an OSPF domain ID.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] domain-id 234
export route-policy
Use export route-policy to apply an export routing policy for a VPN instance.
Use undo export route-policy to remove the application.
Syntax
export route-policy route-policy
undo export route-policy
Default
No export routing policy is applied for a VPN instance.
Views
VPN instance view, IPv4 VPN view, IPv6 VPN view
Predefined user roles
network-admin
mdc-admin
Parameters
route-policy: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
Usage guidelines
You can specify an export routing policy to filter advertised routes or modify their route attributes for the VPN instance.
An export routing policy specified in VPN instance view applies to both IPv4 VPN and IPv6 VPN.
An export routing policy specified in IPv4 VPN view or IPv6 VPN view applies to only IPv4 VPN or IPv6 VPN.
IPv4/IPv6 VPN prefers the export routing policy specified in IPv4/IPv6 VPN view over the one specified in VPN instance view.
Examples
# Apply export routing policy poly-1 for VPN instance vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] export route-policy poly-1
# Apply export routing policy poly-2 for IPv4 VPN vpn2.
<Sysname> system-view
[Sysname] ip vpn-instance vpn2
[Sysname-vpn-instance-vpn2] ipv4-family
[Sysname-vpn-ipv4-vpn2] export route-policy poly-2
# Apply export routing policy poly-3 for IPv6 VPN vpn3.
<Sysname> system-view
[Sysname] ip vpn-instance vpn3
[Sysname-vpn-instance-vpn3] ipv6-family
[Sysname-vpn-ipv6-vpn3] export route-policy poly-3
Related commands
· import route-policy
· route-policy (Layer 3—IP Routing Configuration Guide)
ext-community-type
Use ext-community-type to configure the type code of an OSPF extended community attribute.
Use undo ext-community-type to restore the default.
Syntax
ext-community-type { domain-id type-code1 | router-id type-code2 | route-type type-code3 }
undo ext-community-type { domain-id | router-id | route-type }
Default
The type codes for domain ID, router ID, and route type are 0x0005, 0x0107, and 0x0306, respectively.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
domain-id type-code1: Specifies the type code for domain ID. Valid values are 0x0005, 0x0105, 0x0205, and 0x8005.
router-id type-code2: Specifies the type code for router ID. Valid values are 0x0107 and 0x8001.
router-type type-code3: Specifies the type code for route type. Valid values are 0x0306 and 0x8000.
Examples
# Configure the type codes of domain ID, router ID, and route type as 0x8005, 0x8001, and 0x8000 for OSPF process 100.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] ext-community-type domain-id 8005
[Sysname-ospf-100] ext-community-type router-id 8001
[Sysname-ospf-100] ext-community-type route-type 8000
import route-policy
Use import route-policy to apply an import routing policy for a VPN instance.
Use undo import route-policy to remove the application.
Syntax
import route-policy route-policy
undo import route-policy
Default
All routes matching the import target attribute are accepted.
Views
VPN instance view, IPv4 VPN view, IPv6 VPN view
Predefined user roles
network-admin
mdc-admin
Parameters
route-policy: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
Usage guidelines
You can specify an import routing policy to filter received routes or modify their route attributes for the VPN instance.
An import routing policy specified in VPN instance view applies to both IPv4 VPN and IPv6 VPN.
An import routing policy specified in IPv4 VPN view or IPv6 VPN view applies to only the IPv4 VPN or IPv6 VPN.
IPv4/IPv6 VPN prefers the import routing policy specified in IPv4/IPv6 VPN view over the one specified in VPN instance view.
Examples
# Apply import routing policy poly-1 for VPN instance vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] import route-policy poly-1
# Apply import routing policy poly-2 for IPv4 VPN vpn2.
<Sysname> system-view
[Sysname] ip vpn-instance vpn2
[Sysname-vpn-instance-vpn2] ipv4-family
[Sysname-vpn-ipv4-vpn2] import route-policy poly-2
# Apply import routing policy poly-3 for IPv6 VPN vpn3.
<Sysname> system-view
[Sysname] ip vpn-instance vpn3
[Sysname-vpn-instance-vpn3] ipv6-family
[Sysname-vpn-ipv6-vpn3] import route-policy poly-3
Related commands
· export route-policy
· route-policy (Layer 3—IP Routing Configuration Guide)
ip binding vpn-instance
Use ip binding vpn-instance to associate an interface with a VPN instance.
Use undo ip binding vpn-instance to remove the association.
Syntax
ip binding vpn-instance vpn-instance-name
undo ip binding vpn-instance vpn-instance-name
Default
An interface is associated with no VPN instance and belongs to the public network.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Parameters
vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31 characters.
Usage guidelines
Use the command to associate the VPN instance with the interface connected to the CE.
This command or its undo form clears the IP address and routing protocol configuration on the interface. After executing this command or its undo form, use the display this command to view current configuration and re-configure the IP address and routing protocol on the interface.
The specified VPN instance must have been created by the ip vpn-instance command in system view.
To associate a new VPN instance with an interface, you must remove the previous association with the undo ip binding vpn-instance command and then use the ip binding vpn-instance command to associate the new VPN instance with the interface.
If you configure an IPv6 address for an interface associated with a VPN instance, the number of VPN instances that you can configure on the device decreases.
Examples
# Associate interface VLAN-interface 1 with VPN instance vpn1.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] ip binding vpn-instance vpn1
Related commands
ip vpn-instance (system view)
ip vpn-instance (system view)
Use ip vpn-instance to create a VPN instance and enter VPN instance view.
Use undo ip vpn-instance to delete a VPN instance.
Syntax
ip vpn-instance vpn-instance-name
undo ip vpn-instance vpn-instance-name
Default
No VPN instance is created.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
vpn-instance-name: Specifies the name of the VPN instance, a case-sensitive string of 1 to 31 characters.
Examples
# Create a VPN instance named vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1]
Related commands
route-distinguisher
ipv4-family (VPN instance view)
Use ipv4-family in VPN instance view to enter IPv4 VPN view.
Use undo ipv4-family to remove all configurations from IPv4 VPN view.
Syntax
ipv4-family
undo ipv4-family
Views
VPN instance view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
In IPv4 VPN view, you can configure IPv4 VPN parameters such as inbound and outbound routing policies.
Examples
# Enter IPv4 VPN view.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] ipv4-family
[Sysname-vpn-ipv4-vpn1]
Related commands
ipv6-family (VPN instance view)
ipv4-family vpnv4
Use ipv4-family vpnv4 to enter BGP VPNv4 address family view or BGP-VPN VPNv4 address family view.
Use undo ipv4-family vpnv4 to remove all settings from BGP VPNv4 address family view or BGP-VPN VPNv4 address family view.
Syntax
ipv4-family vpnv4
undo ipv4-family vpnv4
Views
BGP view, BGP-VPN view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
A VPNv4 address comprises an RD and an IPv4 prefix. VPNv4 routes comprise VPNv4 addresses.
For a PE to exchange BGP VPNv4 routes with a BGP peer, you must enable that peer by executing the peer enable command in BGP VPNv4 address family view or BGP-VPN VPNv4 address family view.
In BGP VPNv4 address family view, you can configure BGP VPNv4 route attributes, such as the preferred value, and whether to allow the local AS number to appear in the AS_PATH attribute of received route updates.
The settings in BGP VPNv4 address family view control VPNv4 route exchange between PEs.
The settings in BGP-VPN VPNv4 address family view control VPNv4 route exchange between provide PE and provider CE in nested MPLS L3VPN.
Examples
# Enter BGP-VPNv4 address family view.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-vpnv4]
# Enter BGP-VPN VPNv4 address family view.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] ipv4-family vpnv4
[Sysname-bgp-vpnv4-vpn1]
nesting-vpn
Use nesting-vpn to enable the nested VPN function.
Use undo nesting-vpn to disable the nested VPN function.
Syntax
nesting-vpn
undo nesting-vpn
Default
The nested VPN function is disabled.
Views
BGP-VPNv4 address family view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
To exchange VPNv4 routes with a peer in nested VPN, you must enable nested VPN and then execute the peer enable command to enable that peer in BGP VPNv4 view.
Examples
# Enable nested VPN.
<Sysname> system-view
[Sysname] bgp 10
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-vpnv4] nesting-vpn
peer next-hop-invariable
Use peer next-hop-invariable to configure the device to not change the next hop of routes advertised to an EBGP peer or peer group.
Use undo peer next-hop-invariable to restore the default.
Syntax
peer { group-name | ip-address } next-hop-invariable
undo peer { group-name | ip-address } next-hop-invariable
Default
The device uses its address as the next hop of routes advertised to an EBGP peer or peer group.
Views
BGP VPNv4 address family view
Predefined user roles
network-admin
mdc-admin
Parameters
group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters.
ip-address: Specifies a peer by its IP address.
Usage guidelines
On an RR in an inter-AS option C scenario, you must configure next-hop-invariable to not change the next hop of VPNv4 routes advertised to EBGP peers and RR clients.
This command is exclusive with the peer next-hop-local command.
Examples
# In BGP VPNv4 address family view, configure the device to not change the next hop of routes advertised to EBGP peer 1.1.1.1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-vpnv4] peer 1.1.1.1 next-hop-invariable
Related commands
peer next-hop-local (Layer 3—IP Routing Command Reference)
peer upe
Use peer upe to configure a BGP peer or peer group as a HoVPN UPE in BGP VPNv4 address family view.
Use undo peer upe to remove the configuration.
Syntax
peer { group-name | ip-address } upe
undo peer { group-name | ip-address } upe
Default
No BGP peer or peer group is configured as a UPE.
Views
BGP VPNv4 address family view
Predefined user roles
network-admin
mdc-admin
Parameters
group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The specified peer group must have been created.
ip-address: Specifies a peer by its IP address. The specified peer must have been created.
Usage guidelines
A UPE is a special VPNv4 peer. It can accept one default route for each related VPN instance and routes permitted by the routing policy on the SPE. An SPE is a common VPN peer.
Examples
# Configure peer 1.1.1.1 as a UPE.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-vpnv4] peer 1.1.1.1 upe
peer upe route-policy
Use peer upe route-policy to advertise routes permitted by a routing policy to a UPE.
Use undo peer upe route-policy to restore the default.
Syntax
peer { group-name | ip-address } upe route-policy route-policy-name export
undo peer { group-name | ip-address } upe route-policy route-policy-name export
Default
No routes are advertised to any peer.
Views
BGP VPNv4 address family view
Predefined user roles
network-admin
mdc-admin
Parameters
group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The specific peer group must have created.
ip-address: Specifies a peer by its IP address. The specific peer must have created.
route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
export: Applies the filtering policy to routes to be advertised.
Usage guidelines
This command must be used together with the peer upe command
Examples
# In BGP VPNv4 address family view, configure peer 1.1.1.1 as a UPE and advertise routes permitted by routing policy hope to peer 1.1.1.1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 1.1.1.1 as-number 200
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-vpnv4] peer 1.1.1.1 enable
[Sysname-bgp-vpnv4] peer 1.1.1.1 upe
[Sysname-bgp-vpnv4] peer 1.1.1.1 upe route-policy hope export
Related commands
· peer upe
· route-policy (Layer 3—IP Routing Configuration Guide)
policy vpn-target
Use policy vpn-target to enable route target filtering of received VPNv4 routes. Only VPNv4 routes whose route target attribute matches local import route target attribute are added to the routing table.
Use undo policy vpn-target to disable route target filtering, permitting all incoming VPNv4 routes.
Syntax
policy vpn-target
undo policy vpn-target
Default
The route target filtering function is enabled for received VPNv4 routes.
Views
BGP VPNv4 address family view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
In an inter-AS option B scenario, an ASBR-PE must save all incoming VPNv4 routes and advertises those routes to the peer ASBR-PE. For this purpose, you must execute the undo policy vpn-target command on the ASBR-PE to disable route target filtering.
Examples
# In BGP VPNv4 address family view, disable route target filtering of received VPNv4 routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-vpnv4] undo policy vpn-target
refresh bgp vpnv4
Use refresh bgp vpnv4 to soft reset BGP VPNv4 connections.
refresh bgp { ip-address | all | external | group group-name | internal } { export | import } vpnv4 [ vpn-instance vpn-instance-name ]
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
ip-address: Soft resets the BGP VPNv4 connection with the BGP peer identified by this IP address.
all: Soft resets all BGP VPNv4 connections.
external: Soft resets EBGP VPNv4 connections.
group group-name: Soft resets BGP VPNv4 connections with the BGP peer group identified by this name, a case-sensitive string of 1 to 47 characters.
internal: Soft resets IBGP VPNv4 connections.
export: Soft resets outbound EBGP VPNv4 connections.
import: Soft resets inbound EBGP VPNv6 connections.
vpn-instance vpn-instance-name: Soft resets BGP VPNv4 connections for the VPN instance specified by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, this command soft resets BGP VPNv4 connections for the public network.
Usage guidelines
Soft reset can update BGP VPNv4 routing information without breaking down BGP neighbor relationships.
You can apply a new route selection policy by executing this command. If you execute this command with the export keyword, BGP filters advertised routing information based on the new policy and sends the matching routes to the BGP peer. If you execute this command with the import keyword, BGP advertises a route-refresh message to the peer so the peer re-advertises its routing information. After receiving the routing information from the peer, BGP filters the routing information by using the new policy.
This command requires that both the local router and the peer support route refresh.
If the peer keep-all-routes command is configured, the refresh bgp vpnv4 import command does not take effect.
Examples
# Soft reset all inbound BGP VPNv4 connections for the public network.
<Sysname> refresh bgp all import vpnv4
· peer capability-advertise route-refresh (Layer 3—IP Routing Command Reference)
· peer keep-all-routes (Layer 3—IP Routing Command Reference)
reserve-vlan (VPN instance view)
Use reserve-vlan to specify a reserved VLAN for a VPN instance.
Use undo reserve-vlan to restore the default.
Syntax
reserve-vlan vlan-id
undo reserve-vlan
Default
No reserved VLAN is specified for a VPN instance.
Views
VPN instance view
Predefined user roles
network-admin
mdc-admin
Parameters
vlan-id: Specifies a reserved VLAN by its VLAN ID in the range of 1 to 4094.
Usage guidelines
The reserved VLAN of a VPN instance provides resources for the VPN instance to complete packet forwarding.
A common VLAN, including a default VLAN, a VLAN created by vlan, and a dynamically learned VLAN, cannot be specified as a reserved VLAN. After you specify a VLAN as the reserved VLAN of a VPN instance, the VLAN cannot be created by the vlan command, or dynamically learned.
Reserved VLANs specified for VPN instances must be different.
The reserved VLAN configuration takes effect only when the system is operating in standard mode. For more information about system operating modes, see Fundamentals Configuration Guide.
When the system is operating in standard mode, you must configure a reserved VLAN for a created VPN instance in the following cases:
· The VPN instance is connected to no CEs.
· There is no need to configure the multicast VPN function for the VPN instance.
· There is no need to bind the VPN instance to an IP tunnel.
When the system is operating in standard mode, if a VPN instance is not configured with a reserved VLAN, you cannot configure URPF on the private network VLAN interface bound to the VPN instance.
Examples
# Specify VLAN 100 as the reserved VLAN of VPN instance vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] reserve-vlan 100
Related commands
vlan (Layer 2—LAN Switching Command Reference)
reset bgp vpnv4
Use reset bgp vpnv4 to reset BGP VPNv4 connections.
Syntax
reset bgp { as-number | ip-address | all | external | group group-name | internal } vpnv4 [ vpn-instance vpn-instance-name ]
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
as-number: Resets BGP VPNv4 connections in the AS specified by its number in the range of 1 to 4294967295.
ip-address: Resets the BGP VPNv4 connection with the BGP peer identified by this IP address.
all: Resets all BGP VPNv4 connections.
external: Resets EBGP VPNv4 connections.
group group-name: Resets BGP VPNv4 connections with the BGP peer group identified by this name, a case-sensitive string of 1 to 47 characters.
internal: Resets IBGP VPNv4 connections.
vpn-instance vpn-instance-name: Resets BGP VPNv4 connections for the VPN instance identified by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command resets BGP VPNv4 connections for the public network.
Usage guidelines
This command tears down specified BGP neighbor relationships to update BGP VPNv4 routes with the new policy.
Examples
# Reset all BGP VPNv4 connections for the public network.
<Sysname> reset bgp all vpnv4
route-distinguisher (VPN instance view)
Use route-distinguisher to configure an RD for a VPN instance.
Use undo route-distinguisher to remove the RD of a VPN instance.
Syntax
route-distinguisher route-distinguisher
undo route-distinguisher
Default
No RD is specified for a VPN instance.
Views
VPN instance view
Predefined user roles
network-admin
mdc-admin
Parameters
route-distinguisher: RD for the VPN instance, a string of 3 to 21 characters in one of these formats:
· 16-bit AS number:32-bit user-defined number. For example, 101:3.
· 32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
· 32-bit AS number:16-bit user-defined number, where the minimum value of the AS number is 65536. For example, 65536:1.
Usage guidelines
RDs enable VPNs to use the same address space. An RD and an IPv4 prefix comprise a unique VPN IPv4 prefix.
To change the RD of a VPN instance, you must delete the RD with the undo route-distinguisher command, and then use the route-distinguisher command to configure a new RD.
Examples
# Configure RD 22:1 for VPN instance vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] route-distinguisher 22:1
route-tag
Use route-tag to configure an external route tag for redistributed VPN routes.
Use undo route-tag to restore the default.
Syntax
route-tag tag-value
undo route-tag
Default
If the AS number is not greater than 65535, the first two octets of the default external route tag are 0xD000 and the last two octets is the local AS number. For example, if the local BGP AS number is 100, the default value of the external route tag is 3489661028. If the AS number is greater than 65535, the default external route tag is 0.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
tag-value: External route tag for redistributed VPN routes, in the range of 0 to 4294967295.
Usage guidelines
If the PE-CE routing protocol is OSPF, the PE redistributes BGP VPNv4 routes received from the peer PE into the OSPF routing table, and advertises these routes to the locally connected CE through OSPF. If the routes are advertised to the CE in Type 5 or 7 LSAs, Type 5/7 LSAs must contain the external route tag. An external route tag can be configured by different commands and has different priorities. The following lists the commands used to configure the external route tag (in the descending order of tag priority):
· import-route
· route-tag
· default tag
If the external route tag carried in a Type 5 or 7 LSA received by a PE is the same as the locally configured external route tag, the PE ignores the LSA in route calculation to avoid routing loops.
H3C recommends configuring the same external route tag for PEs in the same area.
An external route tag is not transferred in any BGP extended community attribute. It is only locally significant and takes effect only on the PEs that receive BGP routes and generate OSPF Type 5 or 7 LSAs.
You can configure the same external route tag for different OSPF processes.
Examples
# In OSPF process 100, set the external route tag for redistributed VPN routes to 100.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] route-tag 100
Related commands
import-route
routing-table limit
Use routing-table limit to limit the maximum number of routes in a VPN instance.
Use undo routing-table limit to restore the default.
Syntax
routing-table limit number { warn-threshold | simply-alert }
undo routing-table limit
Default
The maximum number of routes depends on the system operating mode.
Views
VPN instance view, IPv4 VPN view, IPv6 VPN view
Predefined user roles
network-admin
mdc-admin
Parameters
number: Specifies the maximum number of routes. The value range depends on the system operating mode. For more information about system operating modes, see Fundamentals Configuration Guide.
warn-threshold: Specifies a warning threshold, in the range of 1 to 100 in percentage. When the percentage of the number of existing routes to the maximum number of routes exceeds the specified threshold, the system gives an alarm message but still allows new routes. If routes in the VPN instance reach the maximum, no more routes are added.
simply-alert: Specifies that when routes exceeds the maximum number, the system still accepts routes but generates a system log message.
Usage guidelines
A limit configured in VPN instance view applies to both the IPv4 VPN and the IPv6 VPN.
A limit configured in IPv4 VPN view or IPv6 VPN view applies to only the IPv4 VPN or the IPv6 VPN.
IPv4/IPv6 VPN prefers the limit configured in IPv4/IPv6 VPN view over the limit configured in VPN instance view.
Examples
# Specify that VPN instance vpn1 supports up to 1000 routes, and when routes exceed the upper limit, can receive new routes but generates a system log message.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] route-distinguisher 100:1
[Sysname-vpn-instance-vpn1] routing-table limit 1000 simply-alert
# Specify that the IPv4 VPN vpn2 supports up to 1000 routes, and when routes exceed the upper limit, can receive new routes but generates a system log message.
<Sysname> system-view
[Sysname] ip vpn-instance vpn2
[Sysname-vpn-instance-vpn2] route-distinguisher 100:2
[Sysname-vpn-instance-vpn2] ipv4-family
[Sysname-vpn-ipv4-vpn2] routing-table limit 1000 simply-alert
# Specify that the IPv6 VPN vpn3 supports up to 1000 routes, and when routes exceed the upper limit, can receive new routes but generates a system log message.
<Sysname> system-view
[Sysname] ip vpn-instance vpn3
[Sysname-vpn-instance-vpn3] route-distinguisher 100:3
[Sysname-vpn-instance-vpn3] ipv6-family
[Sysname-vpn-ipv4-vpn3] routing-table limit 1000 simply-alert
rr-filter
Use rr-filter to create an RR reflection policy so that only IBGP routes whose extended community attribute matches the specified extended community list are reflected.
Use undo rr-filter to restore the default.
Syntax
rr-filter extended-community-number
undo rr-filter
Default
An RR does not filter reflected routes.
Views
BGP VPNv4 address family view
Predefined user roles
network-admin
mdc-admin
Parameters
extended-community-number: Specifies an extended community list by its number, in the range of 1 to 199.
Usage guidelines
By configuring different RR reflection policies on RRs in a cluster, you can implement load balancing among the RRs.
Examples
# In BGP VPNv4 address family view, configure the RR to only reflect VPNv4 routes with an extended community number of 10.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-vpnv4] rr-filter 10
tnl-policy (VPN instance view/IPv4 VPN view/IPv6 VPN view)
Use tnl-policy to associate a VPN instance with a tunnel policy.
Use undo tnl-policy to remove the association.
Syntax
tnl-policy tunnel-policy-name
undo tnl-policy
Default
No tunnel policy is associated with a VPN instance.
Views
VPN instance view, IPv4 VPN view
Predefined user roles
network-admin
mdc-admin
Parameters
tunnel-policy-name: Specifies a tunnel policy by its name, a case-insensitive string of 1 to 19 characters.
Usage guidelines
The VPN instance uses the specified tunnel policy to select tunnels for traffic.
If a VPN instance is not associated with any tunnel policy or the associated tunnel policy is not configured, the VPN instance selects tunnels according to the default tunnel policy. The default tunnel policy selects only one tunnel in this order: LSP tunnel, GRE tunnel, CR-LSP tunnel.
A tunnel policy specified in VPN instance view is applicable to both the IPv4 VPN and the IPv6 VPN.
A tunnel policy specified in IPv4 VPN view or IPv6 VPN view is applicable to only the IPv4 VPN or IPv6 VPN.
IPv4/IPv6 VPN prefers the tunnel policy specified in IPv4/IPv6 VPN view over the tunnel policy specified in VPN instance view.
Examples
# Associate VPN instance vpn1 with tunnel policy po1.
<Sysname> system-view
[Sysname] tunnel-policy po1
[Sysname-tunnel-policy-po1] select-seq lsp load-balance-number 1
[Sysname-tunnel-policy-po1] quit
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] route-distinguisher 22:33
[Sysname-vpn-instance-vpn1] tnl-policy po1
[Sysname-vpn-instance-vpn1] quit
# Associate the IPv4 VPN vpn2 with tunnel policy po1.
[Sysname] ip vpn-instance vpn2
[Sysname-vpn-instance-vpn2] route-distinguisher 11:22
[Sysname-vpn-instance-vpn2] ipv4-family
[Sysname-vpn-ipv4-vpn2] tnl-policy po1
[Sysname-vpn-ipv4-vpn2] quit
[Sysname-vpn-instance-vpn2] quit
# Associate the IPv6 VPN vpn3 with tunnel policy po1.
[Sysname] ip vpn-instance vpn3
[Sysname-vpn-instance-vpn3] route-distinguisher 11:33
[Sysname-vpn-instance-vpn3] ipv6-family
[Sysname-vpn-ipv6-vpn3] tnl-policy po1
Related commands
tunnel-policy (MPLS Command Reference)
vpn popgo
Use vpn popgo to specify the VPN label processing mode as POPGO forwarding on an egress PE, which will pop the label for each packet and forward the packet out of the interface corresponding to the label.
Use undo vpn popgo to restore the default.
Syntax
vpn popgo
undo vpn popgo
Default
The VPN label processing mode is POP forwarding on an egress PE, which will pop the label for each packet and forward the packet through the FIB table.
Views
BGP view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
After you execute the vpn popgo command, the egress PE disconnects and reestablishes BGP sessions to re-learn VPN routes.
After the vpn popgo command is executed, the egress PE does not support load sharing among VPN BGP peers.
To add two switches to an IRF fabric, configure the same VPN label processing mode (POPGO by using vpn popgo or POP by using undo vpn popgo) for the two switches. Otherwise, the two switches cannot form an IRF fabric. For more information about IRF, see IRF Configuration Guide.
Examples
# Specify the VPN label processing mode on the egress PE as POPGO forwarding.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] vpn popgo
# Specify the VPN label processing mode on the egress PE as POP forwarding.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] undo vpn popgo
vpn-instance-capability simple
Use vpn-instance-capability simple to disable OSPF routing loop detection for a VPN instance.
Use undo vpn-instance-capability to restore the default.
Syntax
vpn-instance-capability simple
undo vpn-instance-capability
Default
OSPF routing loop detection is enabled for a VPN instance.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
In an MCE network, you must disable OSPF routing loop detection for a VPN instance on the MCE. Otherwise, the MCE does not receive OSPF routes from the PE.
Examples
# Disable OSPF routing loop detection for VPN instance vpna.
<Sysname> system-view
[Sysname] ospf 100 vpn-instance vpna
[Sysname-ospf-100] vpn-instance-capability simple
vpn-target (VPN instance view/IPv4 VPN view/IPv6 VPN view)
Use vpn-target to configure route targets for a VPN instance.
Use undo vpn-target to remove the specified or all route targets of a VPN instance.
Syntax
vpn-target vpn-target&<1-8> [ both | export-extcommunity | import-extcommunity ]
undo vpn-target { all | vpn-target&<1-8> [ both | export-extcommunity | import-extcommunity ] }
Default
No route targets are configured for a VPN instance.
Views
VPN instance view, IPv4 VPN view, IPv6 VPN view
Predefined user roles
network-admin
mdc-admin
Parameters
vpn-target&<1-8>: Specifies route targets. &<1-8> means that you can specify up to eight route targets.
A route target is a string of 3 to 21 characters in one of these formats:
· 16-bit AS number:32-bit user-defined number. For example, 101:3.
· 32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
· 32-bit AS number:16-bit user-defined number, where the AS number must not be less than 65536. For example, 65536:1.
both: Uses the specified route targets as both import targets and export targets. The both keyword is also used when you do not specify any of both, export-extcommunity, and import-extcommunity.
export-extcommunity: Uses the specified route targets as export targets.
import-extcommunity: Uses the specified route targets as import targets.
all: Removes all route targets.
Usage guidelines
MPLS L3VPN uses route targets to control the advertisement of VPN routing information. A PE adds the configured export targets into the route target attribute of routes advertised to a peer. The peer uses the local import targets to match the route targets of received routes. If a match is found, the peer adds the routes to the routing table of the VPN instance.
Route targets configured in VPN instance view are applicable to both the IPv4 VPN and the IPv6 VPN.
Route targets configured in IPv4 VPN view or IPv6 VPN view are applicable to only the IPv4 VPN or IPv6 VPN.
Route targets configured in IPv4 VPN view or IPv6 VPN view take precedence over those configured in VPN instance view. If you configure route targets in both IPv4 VPN view (or IPv6 VPN view) and VPN instance view, the IPv4 VPN or IPv6 VPN uses the route targets configured in IPv4 VPN view or IPv6 VPN view.
Examples
# Configure route targets for VPN instance vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] vpn-target 3:3 export-extcommunity
[Sysname-vpn-instance-vpn1] vpn-target 4:4 import-extcommunity
[Sysname-vpn-instance-vpn1] vpn-target 5:5 both
# Configure route targets for the IPv4 VPN vpn2.
<Sysname> system-view
[Sysname] ip vpn-instance vpn2
[Sysname-vpn-instance-vpn2] ipv4-family
[Sysname-vpn-ipv4-vpn2] vpn-target 3:3 export-extcommunity
[Sysname-vpn-ipv4-vpn2] vpn-target 4:4 import-extcommunity
[Sysname-vpn-ipv4-vpn2] vpn-target 5:5 both
# Configure route targets for the IPv6 VPN vpn3.
<Sysname> system-view
[Sysname] ip vpn-instance vpn3
[Sysname-vpn-instance-vpn3] ipv6-family
[Sysname-vpn-ipv6-vpn3] vpn-target 3:3 export-extcommunity
[Sysname-vpn-ipv6-vpn3] vpn-target 4:4 import-extcommunity
[Sysname-vpn-ipv6-vpn3] vpn-target 5:5 both
This chapter describes only IPv6 MPLS L3VPN-specific commands. For information about the commands available for both IPv4 MPLS L3VPN and IPv6 MPLS L3VPN, see "MPLS L3VPN commands."
display bgp group vpnv6
Use display bgp group vpnv6 to display information about a specific BGP VPNv6 peer group or all BGP VPNv6 peer groups.
Syntax
display bgp group vpnv6 [ group-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. If no peer group is specified, this command displays all BGP VPNv6 peer groups.
Examples
# Display all BGP VPNv6 peer groups for the public network.
<Sysname> display bgp group vpnv6
BGP peer group: group1
Remote AS: 600
Type: external
Members:
2.2.2.2
# Display information about the BGP VPNv6 peer group named group1.
<Sysname> display bgp group vpnv6 group1
BGP peer group: group1
Remote AS: 600
Type: external
Maximum number of prefixes allowed: 4294967295
Threshold: 75%
Configured hold time: 180 seconds
Keepalive time: 60 seconds
Minimum time between advertisements: 30 seconds
Peer preferred value: 0
Routing policy configured:
No routing policy is configured
Members:
Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State
2.2.2.2 600 0 0 0 0 00:00:22 Idle
Table 12 Command output
Field |
Description |
BGP peer-group |
Name of the BGP peer group. |
Remote AS |
AS number of the peer group. |
Type |
Type of the BGP peer group: · External—EBGP peer group · Internal—IBGP peer group |
Maximum number of prefixes allowed |
Maximum number of routes that can be learned from the peer group. |
Threshold |
Warning threshold. When the percentage of received route prefixes to the maximum number of routes reaches this threshold, the device generates a prompt. |
Configured hold time |
Configured hold time, in seconds. |
Keepalive time |
Keepalive interval, in seconds. |
Minimum time between advertisements |
Minimum time between advertisements |
Peer Preferred Value |
Preferred value for routes received from the peer. |
Routing policy configured |
Routing policy configured for the peer group. |
Members |
Peers in the peer group. |
Peer |
IPv6 address of the peer. |
AS |
AS number of the peer group. |
MsgRcvd |
Number of messages received. |
MsgSent |
Number of messages sent. |
OutQ |
Number of messages waiting to be sent to the peer. |
PrefRcv |
Number of prefixes received. |
Up/Down |
Duration of the BGP session in the current state. |
State |
State of the peer. |
display bgp peer vpnv6
Use display bgp peer vpnv6 to display information about BGP VPNv6 peers.
Syntax
display bgp peer vpnv6 [ group-name log-info | ip-address { log-info | verbose } | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
group-name: Displays peers in the peer group specified by its name, a case-sensitive string of 1 to 47 characters.
ip-address: Specifies a BGP VPNv6 peer. If no peer is specified, the command displays all BGP VPNv6 peers.
log-info: Displays log information.
verbose: Displays detailed information. If this keyword is not specified, the command displays brief information.
Usage guidelines
With no parameters specified, this command displays brief information about all BGP VPNv6 peers.
Examples
# Display brief information about all BGP VPNv6 peers for the public network.
<Sysname> display bgp peer vpnv6
BGP local router ID: 192.168.1.135
Local AS number: 300
Total number of peers: 1 Peers in established state: 1
Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State
10.1.1.2 100 6 7 0 0 00:01:57 Established
Table 13 Command output
Field |
Description |
BGP Local router ID |
Router ID of the local BGP router. |
Local AS number |
Local AS number |
Total number of peers |
Total number of peers |
Peers in established state |
Number of peers in the state of established. |
Peer |
IP address of the peer. |
AS |
AS number of the peer. |
MsgRcvd |
Number of messages received. |
MsgSent |
Number of messages sent. |
OutQ |
Number of messages waiting to be sent to the peer. |
PrefRcv |
Number of received prefixes. |
Up/Down |
Duration of the BGP session in the current state. |
State |
State of the peer. |
# Display detailed information about BGP VPNv6 peer 10.1.1.2.
<Sysname> display bgp peer vpnv6 10.1.1.2 verbose
Peer: 10.1.1.2 Local: 192.168.1.135
Type: EBGP link
BGP version 4, remote router ID 192.168.1.136
BGP current state: Established, Up for 00h02m28s
BGP current event: KATimerExpired
BGP last state: OpenConfirm
Port: Local - 179 Remote - 63679
Configured: Active Hold Time: 180 sec Keepalive Time: 60 sec
Received : Active Hold Time: 180 sec
Negotiated: Active Hold Time: 180 sec Keepalive Time: 60 sec
Peer optional capabilities:
Peer support BGP multi-protocol extended
Peer support BGP route refresh capability
Peer support BGP route AS4 capability
Address family IPv4 Unicast: advertised
Address family VPNv6: advertised and received
Received: Total 6 messages, Update messages 2
Sent: Total 7 messages, Update messages 2
Maximum allowed prefix number: 4294967295
Threshold: 75%
Minimum time between advertisements is 30 seconds
Optional capabilities:
Multi-protocol extended capability has been enabled
Route refresh capability has been enabled
Connect-interface has been configured
Peer Preferred Value: 0
BFD: Enabled
Routing policy configured:
No routing policy is configured
Table 14 Command output
Field |
Description |
Peer |
IP address of the peer. |
Local |
IP address of the local router. |
Type |
BGP link type, IBGP link or EBGP link. |
BGP version |
BGP version of the peer. |
remote router ID |
Router ID of the peer. |
BGP current state |
Current state of the BGP session. |
Up for |
Duration since the peer is established. |
BGP current event |
Current event of the BGP session. |
BGP last state |
State that the BGP session was in before transitioning to the current state. |
Port |
Local and remote ports of the BGP session. |
Configured |
Settings of the local timers, including the active hold interval and keepalive interval. |
Received |
Received active hold interval. |
Negotiated |
Negotiated active hold interval and keepalive interval. |
Peer optional capabilities |
Optional capabilities of the peer. |
Peer support bgp multi-protocol extended |
The peer supports multiprotocol extension. |
Peer support bgp route refresh capability |
The peer supports route refresh capability. |
Peer support bgp route AS4 capability |
The peer supports 4-byte AS number capability. |
Address family IPv4 Unicast |
IPv4 unicast address family capability. |
Address family VPNv6 |
VPNv6 address family capability. |
Received |
Total number of received messages and the number of received update messages. |
Sent |
Total number of sent messages and the number of sent update messages. |
Maximum allowed prefix number |
Maximum number of routes that can be learned from the peer. |
Threshold |
Warning threshold. When the percentage of the number of the received route prefixes to the maximum number of routes supported reaches this threshold, the device generates a prompt. |
Optional capabilities |
Local optional capabilities. |
ORF advertise capability based on prefix (type 64): |
Supports the ORF address prefix capability and the capability value is 64. |
Local |
Indicates whether the local device supports sending and receiving Route-refresh packets with ORF information. The value can be: · both—Supports sending and receiving Route-refresh messages with ORF information. · send—Supports sending Route-refresh messages with ORF information. · receive—Supports receiving Route-refresh messages with ORF information. |
Negotiated |
ORF capability negotiated by the local and remote peers. The value can be: · send—The local peer can send Route-refresh messages with ORF information and the remote peer can receive Route-refresh messages with ORF information. · receive—The local peer can receive Route-refresh messages with ORF information and the remote peer can send Route-refresh messages with ORF information. This field is displayed only when the ORF capability negotiation is successful. |
Connect-interface has been configured |
Indicates the source interface of TCP connections has been configured. |
Peer Preferred Value |
Preferred value for the routes from the peer. |
BFD |
Indicates whether BFD is enabled for the peer. |
# Display log information for the BGP VPNv6 peer 10.1.1.2.
<Sysname> display bgp peer vpnv6 10.1.1.2 log-info
Peer: 10.1.1.2
Date Time State Notification
Error/SubError
21-Nov-2011 13:22:25 Up
21-Nov-2011 13:21:53 Down Receive notification with error 6/6
Cease/Other Configuration Change
21-Nov-2011 12:39:37 Up
21-Nov-2011 12:25:08 Down Receive notification with error 6/6
Cease/Other Configuration Change
21-Nov-2011 12:09:48 Up
display bgp routing-table vpnv6
Use display bgp routing-table vpnv6 to display BGP VPNv6 routing information.
Syntax
display bgp routing-table vpnv6 [ route-distinguisher route-distinguisher ] [ network-address prefix-length ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
route-distinguisher route-distinguisher: Specifies an RD, a string of 3 to 21 characters in one of these formats:
· 16-bit AS number:32-bit user-defined number. For example, 101:3.
· 32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
· 32-bit AS number:16-bit user-defined number, where the minimum value of the AS number is 65536. For example, 65536:1.
network-address prefix-length: Displays the BGP VPNv6 route that exactly matches the specified network address and prefix length. The prefix length is in the range of 0 to 128. Without this parameter, the command displays all BGP VPNv6 routes.
Examples
# Display all BGP VPNv6 routes.
<Sysname> display bgp routing-table vpnv6
BGP local router ID is 1.1.1.9
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Total number of routes from all PEs: 1
Route distinguisher: 100:1(vpn1)
Total number of routes: 4
> Network : 2001:1:: PrefixLen : 96
NextHop : :: LocPrf :
PrefVal : 32768 OutLabel : NULL
MED : 0
Path/Ogn: ?
* e Network : 2001:1:: PrefixLen : 96
NextHop : 2001:1::1 LocPrf :
PrefVal : 0 OutLabel : NULL
MED : 0
Path/Ogn: 65410?
> Network : 2001:1::2 PrefixLen : 128
NextHop : ::1 LocPrf :
PrefVal : 32768 OutLabel : NULL
MED : 0
Path/Ogn: ?
>i Network : 2001:3:: PrefixLen : 96
NextHop : ::FFFF:3.3.3.9 LocPrf : 100
PrefVal : 0 OutLabel : 1279
MED : 0
Path/Ogn: ?
Route distinguisher: 200:1
Total number of routes: 1
>i Network : 2001:3:: PrefixLen : 96
NextHop : ::FFFF:3.3.3.9 LocPrf : 100
PrefVal : 0 OutLabel : 1279
MED : 0
Path/Ogn: ?
Field |
Description |
BGP Local router ID |
Router ID of the local BGP router. |
Status codes |
Route status codes: · * - valid—Valid route. · > - best—Common best route. · d – damped—Route damped for route flap. · h - history—History route. · i - internal—Internal route. · e - external—External route. · s - suppressed—Suppressed route. · S - Stale—Stale route. |
Origin |
Route origin: · i—IGP, originated in the AS. The origin of summary routes and routes advertised by the network command is IGP. · e—EGP, learned through EGP. · ?—Incomplete. The origin of routes redistributed from IGP protocols is Incomplete. |
Total number of routes from all PEs |
Total number of VPNv6 routes from all PEs. |
Network |
Network address. |
PrefixLen |
Prefix length |
NextHop |
Address of the next hop. |
LocPrf |
Local preference value. |
PrefVal |
Preferred value. |
MED |
MED value. |
Path/Ogn |
AS_PATH and Origin attributes. |
display bgp routing-table vpnv6 advertise-info
Use display bgp routing-table vpnv6 advertise-info to display advertisement information for BGP VPNv6 routes.
Syntax
display bgp routing-table vpnv6 [ route-distinguisher route-distinguisher ] network-address [ mask | mask-length ] advertise-info
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
route-distinguisher route-distinguisher: Specifies an RD, a string of 3 to 21 characters in one of these formats:
· 16-bit AS number:32-bit user-defined number. For example, 101:3.
· 32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
· 32-bit AS number:16-bit user-defined number, where the minimum value of the AS number is 65536. For example, 65536:1.
network-address prefix-length: Displays advertisement information for the BGP VPNv6 route that exactly matches the specified network address and prefix length. The prefix length is in the range of 0 to 128.
Examples
# Display advertisement information for the BGP VPNv6 route destined to network 2001:1::/96.
<Sysname> display bgp routing-table vpnv6 2001:1:: 96 advertise-info
BGP local router ID: 1.1.1.9
Local AS number: 100
Route distinguisher: 100:1
Total number of routes: 1
Paths: 1 best
BGP routing table information of 2001:1::/96:
Advertised to VPN peers (1 in total):
3.3.3.9
Inlabel : 1279
display bgp routing-table vpnv6 as-path-acl
Use display bgp routing-table vpnv6 as-path-acl to display BGP VPNv6 routes permitted by an AS path ACL.
Syntax
display bgp routing-table vpnv6 [ route-distinguisher route-distinguisher ] as-path-acl as-path-acl-number
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
route-distinguisher route-distinguisher: Specifies an RD, a string of 3 to 21 characters in one of these formats:
· 16-bit AS number:32-bit user-defined number. For example, 101:3.
· 32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
· 32-bit AS number:16-bit user-defined number, where the minimum value of the AS number is 65536. For example, 65536:1.
as-path-acl-number: Specifies an AS path ACL by its number in the range of 1 to 256.
Examples
# Display BGP VPNv6 routes permitted by AS path ACL 1.
<Sysname> display bgp routing-table vpnv6 as-path-acl 1
BGP local router ID is 1.1.1.9
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Total number of routes from all PEs: 1
Route distinguisher: 100:1(vpn1)
Total number of routes: 4
> Network : 2001:1:: PrefixLen : 96
NextHop : :: LocPrf :
PrefVal : 32768 OutLabel : NULL
MED : 0
Path/Ogn: ?
* e Network : 2001:1:: PrefixLen : 96
NextHop : 2001:1::1 LocPrf :
PrefVal : 0 OutLabel : NULL
MED : 0
Path/Ogn: 65410?
> Network : 2001:1::2 PrefixLen : 128
NextHop : ::1 LocPrf :
PrefVal : 32768 OutLabel : NULL
MED : 0
Path/Ogn: ?
>i Network : 2001:3:: PrefixLen : 96
NextHop : ::FFFF:3.3.3.9 LocPrf : 100
PrefVal : 0 OutLabel : 1279
MED : 0
Path/Ogn: ?
Route distinguisher: 200:1
Total number of routes: 1
>i Network : 2001:3:: PrefixLen : 96
NextHop : ::FFFF:3.3.3.9 LocPrf : 100
PrefVal : 0 OutLabel : 1279
MED : 0
Path/Ogn: ?
For command output, see Table 15.
Related commands
ip as-path (Layer 3—IP Routing Command Reference)
display bgp routing-table vpnv6 community-list
Use display bgp routing-table vpnv6 community-list to display BGP VPNv6 routing information matching a specified BGP community list.
Syntax
display bgp routing-table vpnv6 [ route-distinguisher route-distinguisher ] community-list { { basic-community-list-number | comm-list-name } [ whole-match ] | adv-community-list-number }
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
route-distinguisher route-distinguisher: Specifies an RD, a string of 3 to 21 characters in one of these formats:
· 16-bit AS number:32-bit user-defined number. For example, 101:3.
· 32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
· 32-bit AS number:16-bit user-defined number, where the minimum value of the AS number is 65536. For example, 65536:1.
basic-community-list-number: Specifies a basic community list by its number in the range of 1 to 99.
comm-list-name: Specifies a community list by its name, a case-sensitive string of 1 to 63 characters.
whole-match: Displays routes exactly matching the specified community list. Without this keyword, the command displays routes whose COMMUNITY attributes comprise the specified community list.
adv-community-list-number: Specifies an advanced community list by its number in the range of 100 to 199.
Examples
# Display BGP VPNv6 routing information matching BGP community list 100.
<Sysname> display bgp routing-table vpnv6 community-list 100
BGP local router ID is 1.1.1.9
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Total number of routes from all PEs: 1
Route distinguisher: 100:1(vpn1)
Total number of routes: 4
> Network : 2001:1:: PrefixLen : 96
NextHop : :: LocPrf :
PrefVal : 32768 OutLabel : NULL
MED : 0
Path/Ogn: ?
* e Network : 2001:1:: PrefixLen : 96
NextHop : 2001:1::1 LocPrf :
PrefVal : 0 OutLabel : NULL
MED : 0
Path/Ogn: 65410?
> Network : 2001:1::2 PrefixLen : 128
NextHop : ::1 LocPrf :
PrefVal : 32768 OutLabel : NULL
MED : 0
Path/Ogn: ?
>i Network : 2001:3:: PrefixLen : 96
NextHop : ::FFFF:3.3.3.9 LocPrf : 100
PrefVal : 0 OutLabel : 1279
MED : 0
Path/Ogn: ?
Route distinguisher: 200:1
Total number of routes: 1
>i Network : 2001:3:: PrefixLen : 96
NextHop : ::FFFF:3.3.3.9 LocPrf : 100
PrefVal : 0 OutLabel : 1279
MED : 0
Path/Ogn: ?
For command output, see Table 15.
display bgp routing-table vpnv6 inlabel
Use display bgp routing-table vpnv6 inlabel to display incoming labels for BGP VPNv6 routes.
Syntax
display bgp routing-table vpnv6 inlabel
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Examples
# Display incoming labels for all BGP VPNv6 routes.
<Sysname> display bgp routing-table vpnv6 inlabel
Total number of routes: 1
BGP local router ID is 1.1.1.9
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Route distinguisher: 100:1
Total number of routes: 1
> Network : 2001:1:: PrefixLen : 96
NextHop : :: OutLabel : NULL
InLabel : 1279
Table 16 Command output
Field |
Description |
BGP Local router ID |
Router ID of the local BGP router. |
Status codes |
Route status codes. See Table 6. |
Origin |
Route origin. See Table 6. |
display bgp routing-table vpnv6 outlabel
Use display bgp routing-table vpnv6 outlabel to display ougoing labels for BGP VPNv6 unicast routes.
Syntax
display bgp routing-table vpnv6 outlabel
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Examples
# Display outgoing labels for all BGP VPNv6 routes.
<Sysname> display bgp routing-table vpnv6 outlabel
BGP local router ID is 1.1.1.9
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Total number of routes from all PEs: 1
Route distinguisher: 100:1(vpn1)
Total number of routes: 1
>i Network : 2001:3:: PrefixLen : 96
NextHop : ::FFFF:3.3.3.9 OutLabel : 1279
Route distinguisher: 200:1
Total number of routes: 1
>i Network : 2001:3:: PrefixLen : 96
NextHop : ::FFFF:3.3.3.9 OutLabel : 1279
Table 17 Command output
Field |
Description |
BGP Local router ID |
Router ID of the local BGP router. |
Status |
Route status codes. See Table 6. |
Origin |
Route origin codes. See Table 6. |
OutLabel |
Outgoing label. |
display bgp routing-table vpnv6 peer
Use display bgp routing-table vpnv6 peer to display BGP VPNv6 routing information advertised to or received from a specified BGP peer.
Syntax
display bgp routing-table vpnv6 peer ip-address { advertised-routes | received-routes } [ network-address prefix-length | statistics ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
ip-address: Specifies a peer by its IP address.
advertised-routes: Displays routing information advertised to the specified peer.
received-routes: Displays routing information received from the specified peer.
network-address prefix-length: Displays the BGP VPNv6 route that exactly matches the specified network address and prefix length. The prefix length is in the range of 0 to 128. Without this parameter, the command displays all BGP VPNv6 routes.
statistics: Displays route statistics.
Examples
# Display all BGP VPNv6 routing information advertised to BGP peer 3.3.3.9 on the public network.
<Sysname> display bgp routing-table vpnv6 peer 3.3.3.9 advertised-routes
Total number of routes: 1
BGP local router ID is 1.1.1.9
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Route distinguisher: 100:1
Total number of routes: 1
> Network : 2001:1:: PrefixLen : 96
NextHop : :: LocPrf :
MED : 0 OutLabel : NULL
Path/Ogn: ?
# Display all BGP VPNv6 routing information received from BGP peer 3.3.3.9 on the public network.
<Sysname> display bgp routing-table vpnv6 peer 3.3.3.9 received-routes
Total number of routes: 1
BGP local router ID is 1.1.1.9
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Route distinguisher: 200:1
Total number of routes: 1
>i Network : 2001:3:: PrefixLen : 96
NextHop : ::FFFF:3.3.3.9 LocPrf : 100
PrefVal : 0 OutLabel : 1279
MED : 0
Path/Ogn: ?
For command output, see Table 15.
# Display statistics for BGP VPNv6 routes advertised to BGP peer 3.3.3.9 on the public network.
<Sysname> display bgp routing-table vpnv6 peer 3.3.3.9 advertised-routes statistics
Advertised routes total: 2
# Display statistics for BGP VPNv6 routes received from BGP peer 3.3.3.9 on the public network.
<Sysname> display bgp routing-table vpnv6 peer 3.3.3.9 received-routes statistic
Received routes total: 2
Table 18 Command output
Field |
Description |
Advertised routes total |
Total number of routes advertised to the specified peer. |
Received routes total |
Total number of routes received from the specified peer. |
display bgp routing-table vpnv6 statistics
Use display bgp routing-table vpnv6 statistics to display BGP VPNv6 route statistics.
Syntax
display bgp routing-table vpnv6 statistics
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Examples
# Display BGP VPNv6 route statistics for the public network.
<Sysname> display bgp routing-table vpnv6 statistics
Total number of routes from all PEs: 1
Route distinguisher: 100:1(vpn1)
Total number of routes: 4
Route distinguisher: 200:1
Total number of routes: 1
ipv6-family (VPN instance view)
Use ipv6-family to enter IPv6 VPN view.
Use undo ipv6-family to remove all configurations from IPv6 VPN view.
Syntax
ipv6-family
undo ipv6-family
Views
VPN instance view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
In IPv6 VPN view, you can configure IPv6 VPN parameters such as inbound and outbound routing policies.
Examples
# Enter IPv6 VPN view.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] ipv6-family
[Sysname-vpn-ipv6-vpn1]
Related commands
ipv4-family (VPN instance view)
ipv6-family vpnv6
Use ipv6-family vpnv6 to enter BGP VPNv6 address family view.
Use undo ipv6-family vpnv6 to remove all settings from BGP VPNv6 address family view.
Syntax
ipv6-family vpnv6
undo ipv6-family vpnv6
Views
BGP view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
A VPNv6 address comprises an RD and an IPv6 prefix. In IPv6 MPLS L3VPNs, PEs exchange BGP VPNv6 routes.
For a PE to exchange BGP VPNv6 routes with a BGP peer, you must enable that peer by executing the peer enable command in BGP VPNv6 address family view.
In BGP VPNv6 address family view, you can configure BGP VPNv6 route attributes, such as the preferred value, and whether to allow the local AS number to appear in the AS_PATH attribute of received route updates.
Examples
# Enter BGP-VPNv6 address family view.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family vpnv6
[Sysname-bgp-vpnv6]
policy vpn-target
Use policy vpn-target to enable route target filtering of received VPNv6 routes.
Use undo policy vpn-target to permit all VPNv6 routes.
Syntax
policy vpn-target
undo policy vpn-target
Default
The route target filtering function is enabled for received VPNv6 routes.
Views
BGP VPNv6 address family view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
In an inter-AS option B scenario, an ASBR-PE must save all incoming VPNv4 routes and advertises those routes to the peer ASBR-PE. For this purpose, you must execute the undo policy vpn-target command on the ASBR-PE to disable route target filtering.
Examples
# In BGP VPNv6 address family view, disable route target filtering of received VPNv6 routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family vpnv6
[Sysname-bgp-vpnv6] undo policy vpn-target
refresh bgp vpnv6
Use refresh bgp vpnv6 to soft reset BGP VPNv6 connections.
Syntax
refresh bgp { ip-address | all | external | group group-name | internal } { export | import } vpnv6
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
ip-address: Soft resets the BGP VPNv6 connection with the BGP peer identified by this IP address.
all: Soft resets all BGP VPNv6 connections.
external: Soft resets EBGP VPNv6 connections.
group group-name: Soft resets BGP VPNv6 connections with the BGP peer group identified by this name, a case-sensitive string of 1 to 47 characters.
internal: Soft resets IBGP VPNv6 connections.
export: Soft resets outbound EBGP VPNv6 connections.
import: Soft resets inbound EBGP VPNv6 connections.
Usage guidelines
Soft reset can update BGP VPNv6 routing information without breaking down BGP neighbor relationships.
You can apply a new route selection policy by executing this command. If you execute this command with the export keyword, BGP filters advertised routing information based on the new policy and sends the matching routes to the BGP peer. If you execute this command with the import keyword, BGP advertises a route-refresh message to the peer so the peer re-advertises its routing information. After receiving the routing information from the peer, BGP filters the routing information by using the new policy.
This command requires that both the local router and the peer support route refresh.
If the peer keep-all-routes command is configured, the refresh bgp vpnv4 import command does not take effect.
Examples
# Soft reset all inbound BGP VPNv6 connections.
<Sysname> refresh bgp all import vpnv6
Related commands
· peer capability-advertise route-refresh (Layer 3—IP Routing Command Reference)
· peer keep-all-routes (Layer 3—IP Routing Command Reference)
reset bgp vpnv6
Use reset bgp vpnv6 to reset BGP VPNv6 connections.
Syntax
reset bgp { as-number | ip-address | all | external | group group-name | internal } vpnv6
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
as-number: Resets BGP VPNv6 connections in the AS identified by this number in the range of 1 to 4294967295.
ip-address: Resets the BGP VPNv6 connection with the BGP peer identified by this IP address.
all: Resets all BGP VPNv6 connections.
external: Resets EBGP VPNv6 connections.
group group-name: Resets BGP VPNv6 connections with the BGP peer group identified by this name, a case-sensitive string of 1 to 47 characters.
internal: Resets IBGP VPNv6 connections.
Examples
# Reset all BGP VPNv6 connections to make new configurations take effect.
<Sysname> reset bgp vpnv6 all
rr-filter
Use rr-filter to create an RR reflection policy so that only IBGP routes whose extended community attribute matches the specified extended community list are reflected.
Use undo rr-filter to restore the default.
Syntax
rr-filter extended-community-number
undo rr-filter
Default
An RR does not filter reflected routes.
Views
BGP VPNv6 address family view
Predefined user roles
network-admin
mdc-admin
Parameters
extended-community-number: Specifies an extended community list by its number, in the range of 1 to 199.
Usage guidelines
By configuring different RR reflection policies on RRs in a cluster, you can implement load balancing among the RRs.
Examples
# In BGP VPNv6 address family view, configure the RR to only reflect VPNv6 routes with an extended community number of 10.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family vpnv6
[Sysname-bgp-vpnv6] rr-filter 10