H3C S5500-HI Switch Series

Similar documents
H3C S5830V2 & S5820V2 Switch Series

H3C S10500 Switch Series

H3C S5120-SI Switch Series

H3C S10500 Switch Series

H3C S5120-EI Switch Series

H3C S5120-HI Switch Series

H3C S12500-X Switch Series

HP A5820X & A5800 Switch Series MPLS. Configuration Guide. Abstract

H3C SecPath Series High-End Firewalls

H3C S10500 Switch Series

H3C S5500-HI Switch Series

Layer 3 - IP Routing Command Reference

H3C SR6600 Routers. MPLS Configuration Guide. Hangzhou H3C Technologies Co., Ltd.

H3C S5830V2 & S5820V2 Switch Series

H3C SR G Core Routers

Contents. BGP commands 1

H3C S6520XE-HI Switch Series

H3C S5820X&S5800 Series Ethernet Switches

Operation Manual MCE H3C S3610&S5510 Series Ethernet Switches. Table of Contents

HP FlexFabric Switch Series

H3C S10500 Switch Series

VPLS configuration commands

H3C S12500 Series Routing Switches

H3C S7500E Series Ethernet Switches. Layer 3 - IP Routing. Configuration Guide. Hangzhou H3C Technologies Co., Ltd.

H3C S7500E Series Ethernet Switches. IP Multicast. Command Reference. Hangzhou H3C Technologies Co., Ltd.

H3C S5830V2 & S5820V2 Switch Series

H3C S5830V2 & S5820V2 Switch Series

VPLS configuration commands

H3C S12500 Series Routing Switches

VPLS configuration commands

H3C SecPath Series High-End Firewalls

HP 6125G & 6125G/XG Blade Switches

H3C S5500-HI Switch Series

H3C S6520XE-HI Switch Series

H3C S6300 Switch Series

H3C S7500E-XS Switch Series

HP 5920 & 5900 Switch Series

H3C MSR Series Routers

H3C S9500E Series Routing Switches

H3C SecPath Series High-End Firewalls

H3C S9800 Switch Series

HP 7500 Switch Series

Command Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents

L3VPN Configuration. L3VPN Overview. Introduction to L3VPN

H3C S5820X&S5800 Switch Series

H3C S5820X&S5800 Switch Series

HP FlexFabric 7900 Switch Series

Configuring basic MBGP

HP 5920 & 5900 Switch Series

H3C SecBlade SSL VPN Card

H3C WA Series WLAN Access Points. Layer 2 WAN Command Reference. Hangzhou H3C Technologies Co., Ltd.

H3C SecPath Series Firewalls and UTM Devices

H3C S9500E Series Routing Switches

H3C S7500E-X Switch Series

H3C S5120-EI Switch Series

H3C SecPath Series Firewalls and UTM Devices

Protecting an EBGP peer when memory usage reaches level 2 threshold 66 Configuring a large-scale BGP network 67 Configuring BGP community 67

HP A-MSR Router Series MPLS. Configuration Guide. Abstract

H3C SecPath Series High-End Firewalls

HP Routing Switch Series

HP FlexFabric 5930 Switch Series

Configuration prerequisites 45 Configuring BGP community 45 Configuring a BGP route reflector 46 Configuring a BGP confederation 46 Configuring BGP

H3C S3100V2 Switch Series

H3C S5500-HI Switch Series

Operation Manual BGP. Table of Contents

H3C S3600V2 Switch Series

H3C S9500 Series Routing Switches

Operation Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents

H3C S5130-EI Switch Series

HP MSR Router Series. MPLS Configuration Guide(V5) Part number: Software version: CMW520-R2513 Document version: 6PW

Configuring BGP community 43 Configuring a BGP route reflector 44 Configuring a BGP confederation 44 Configuring BGP GR 45 Enabling Guard route

HP 5120 EI Switch Series

CONTENTS. Introduction

H3C S9500 Series Routing Switches

Basic MPLS commands. display mpls forwarding ilm. Syntax. Views. Predefined user roles. Parameters. Usage guidelines. Examples

Configuring VPLS. VPLS overview. Operation of VPLS. Basic VPLS concepts

H3C SecBlade SSL VPN Card

H3C S6520XE-HI Switch Series

H3C S5130-EI Switch Series

Table of Contents Chapter 1 MPLS L3VPN Configuration

Configuring MPLS L2VPN

H3C Firewall Devices. High Availability Configuration Guide (Comware V7) Hangzhou H3C Technologies Co., Ltd.

H3C S7500E Series Ethernet Switches. Network Management and Monitoring. Configuration Guide. Hangzhou H3C Technologies Co., Ltd.

HPE FlexFabric 5940 Switch Series

H3C S7500E Switch Series

H3C S3100V2 Switch Series

H3C S5120-EI Switch Series

H3C MSR Router Series

BGP Route Reflector Commands

Configuring MSDP. Overview. How MSDP operates. MSDP peers

H3C S10500 Switch Series

H3C S3100V2 Switch Series

H3C S9500E Series Routing Switches

H3C BGP Configuration Examples

H3C S9500 Series Routing Switches

H3C SR G Core Routers

H3C S5820X&S5800 Series Ethernet Switches

Table of Contents. BGP Configuration 1

H3C Intelligent Management Center v7.3

H3C Intelligent Management Center v7.3

Transcription:

H3C S5500-HI Switch Series MPLS Command Reference Hangzhou H3C Technologies Co., Ltd. http://www.h3c.com Software version: Release 5101 Document version: 6W100-20111031

Copyright 2011, Hangzhou H3C Technologies Co., Ltd. and its licensors All rights reserved Trademarks No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of Hangzhou H3C Technologies Co., Ltd. H3C,, Aolynk,, H 3 Care,, TOP G,, IRF, NetPilot, Neocean, NeoVTL, SecPro, SecPoint, SecEngine, SecPath, Comware, Secware, Storware, NQA, VVG, V 2 G, V n G, PSPT, XGbus, N-Bus, TiGem, InnoVision and HUASAN are trademarks of Hangzhou H3C Technologies Co., Ltd. Notice All other trademarks that may be mentioned in this manual are the property of their respective owners The information in this document is subject to change without notice. Every effort has been made in the preparation of this document to ensure accuracy of the contents, but all statements, information, and recommendations in this document do not constitute the warranty of any kind, express or implied.

Preface The H3C S5500-HI documentation set includes 11 command references, which describe the commands and command syntax options available for the H3C S5500-HI Switch Series Release 5101. MPLS Command Reference describes the commands for configuring MPLS and its extended functions, including MCE, IPv6MCE, MPLS basics, MPLS TE, VPLS, MPLS L2VPN, IPv6 MPLS L3VPN,.and MPLS L3VPN. This preface includes: Audience Conventions About the S5500-HI documentation set Obtaining documentation Technical support Documentation feedback Audience This documentation is intended for: Network planners Field technical support and servicing engineers Network administrators working with the S5500-HI Switch Series Conventions This section describes the conventions used in this documentation set. Command conventions Convention Boldface Italic Bold text represents commands and keywords that you enter literally as shown. Italic text represents arguments that you replace with actual values. [ ] Square brackets enclose syntax choices (keywords or arguments) that are optional. { x y... } [ x y... ] { x y... } * [ x y... ] * Braces enclose a set of required syntax choices separated by vertical bars, from which you select one. Square brackets enclose a set of optional syntax choices separated by vertical bars, from which you select one or none. Asterisk marked braces enclose a set of required syntax choices separated by vertical bars, from which you select at least one. Asterisk marked square brackets enclose optional syntax choices separated by vertical bars, from which you select one choice, multiple choices, or none.

Convention &<1-n> The argument or keyword and argument combination before the ampersand (&) sign can be entered 1 to n times. # A line that starts with a pound (#) sign is comments. GUI conventions Convention Boldface Window names, button names, field names, and menu items are in Boldface. For example, the New User window appears; click OK. > Multi-level menus are separated by angle brackets. For example, File > Create > Folder. Symbols Convention WARNING CAUTION IMPORTANT NOTE TIP An alert that calls attention to important information that if not understood or followed can result in personal injury. An alert that calls attention to important information that if not understood or followed can result in data loss, data corruption, or damage to hardware or software. An alert that calls attention to essential information. An alert that contains additional or supplementary information. An alert that provides helpful information. Network topology icons Represents a generic network device, such as a router, switch, or firewall. Represents a routing-capable device, such as a router or Layer 3 switch. Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports Layer 2 forwarding and other Layer 2 features. Port numbering in examples The port numbers in this document are for illustration only and might be unavailable on your device. About the S5500-HI documentation set The H3C S5500-HI documentation set includes: Documents Purposes Product description and specifications Marketing brochure Describe product specifications and benefits. Technology white papers Provide an in-depth description of software features and technologies.

Documents Hardware specifications and installation Compliance and safety manual CE DOCs Purposes Provide regulatory information and the safety instructions that must be followed during installation. Installation quick start Installation guide PSR150-A [ PSR150-D ] Power Modules User Manual RPS Ordering Information for H3C Low-End Ethernet Switches User manuals for RPSs User manuals for interface cards H3C Low End Series Ethernet Switches Pluggable Modules Manual Pluggable SFP[SFP+][XFP] Transceiver Modules Installation Guide Software configuration Configuration guides Command references Operations and maintenance H3C Series Ethernet Switches Login Password Recovery Manual Release notes Guides you through initial installation and setup procedures to help you quickly set up your device. Provides a complete guide to switch installation and specifications. Describe the specifications, installation, and replacement of hot swappable 150W power modules. Helps you order RPSs for switches that can work with an RPS. Describe the specifications, installation, and replacement of RPSs. Describe the specifications, installation, and replacement of expansion interface cards. Describes the specifications of pluggable transceiver modules. Describe the installation, and replacement of SFP/SFP+/XFP transceiver modules. Describe software features and configuration procedures. Provide a quick reference to all available commands. Helps you deal with switch login password loss. Provide information about the product release, including the version history, hardware and software compatibility matrix, version upgrade information, technical support information, and software upgrading. Obtaining documentation You can access the most up-to-date H3C product documentation on the World Wide Web at http://www.h3c.com. Click the links on the top navigation bar to obtain different categories of product documentation: [Technical Support & Documents > Technical Documents] Provides hardware installation, software upgrading, and software feature configuration and maintenance documentation. [Products & Solutions] Provides information about products and technologies, as well as solutions. [Technical Support & Documents > Software Download] Provides the documentation released with the software version.

Technical support customer_service@h3c.com http://www.h3c.com Documentation feedback You can e-mail your comments about product documentation to info@h3c.com. We appreciate your comments.

Contents MCE configuration commands 1 description 1 display bgp vpnv4 vpn-instance group 1 display bgp vpnv4 vpn-instance network 3 display bgp vpnv4 vpn-instance paths 4 display bgp vpnv4 vpn-instance peer 5 display bgp vpnv4 vpn-instance routing-table 8 display fib vpn-instance 10 display fib vpn-instance ip-address 13 display ip vpn-instance 14 domain-id 15 export route-policy 16 ext-community-type 17 filter-policy export 18 filter-policy import 19 import route-policy 19 ip binding vpn-instance 20 ip vpn-instance 21 ipv4-family vpn-instance 21 peer allow-as-loop 22 peer group 23 refresh bgp vpn-instance 23 reset bgp vpn-instance 24 reset bgp vpn-instance dampening 24 reset bgp vpn-instance flap-info 25 route-distinguisher 26 routing-table limit 26 vpn-instance-capability simple 27 vpn-target 28 IPv6 MCE configuration commands 30 display bgp vpnv6 all peer 30 display bgp vpnv6 all routing-table 33 display bgp vpnv6 route-distinguisher routing-table 35 display bgp vpnv6 vpn-instance peer 36 display bgp vpnv6 vpn-instance routing-table 39 display ipv6 fib vpn-instance 41 display ipv6 fib vpn-instance ipv6-address 42 export route-policy 43 filter-policy export 44 filter-policy import 45 import route-policy 46 ipv6-family vpn-instance 47 refresh bgp ipv6 vpn-instance 47 reset bgp ipv6 vpn-instance 48 routing-table limit 48 vpn-target 49 MPLS basics configuration commands 51 accept-label 51 i

advertise-label 52 bfd enable 53 display mpls ilm 54 display mpls interface 56 display mpls label 57 display mpls ldp 58 display mpls ldp fec 60 display mpls ldp interface 62 display mpls ldp lsp 63 display mpls ldp peer 64 display mpls ldp remote-peer 66 display mpls ldp session 67 display mpls ldp session all statistics 70 display mpls lsp 71 display mpls lsp bfd ipv4 74 display mpls lsp statistics 75 display mpls nhlfe 76 display mpls nhlfe reflist 78 display mpls route-state 80 display mpls static-lsp 81 display mpls statistics interface 82 display mpls statistics lsp 84 du-readvertise 86 du-readvertise timer 87 graceful-restart (MPLS LDP view) 87 graceful-restart mpls ldp 88 graceful-restart timer neighbor-liveness 88 graceful-restart timer reconnect 89 graceful-restart timer recovery 90 hops-count 90 label advertise 91 label-distribution 92 loop-detect 93 lsp-trigger 93 lsr-id 94 md5-password 95 mpls 96 mpls ldp (system view) 96 mpls ldp (interface view) 97 mpls ldp remote-peer 98 mpls ldp timer hello-hold 98 mpls ldp timer keepalive-hold 99 mpls ldp transport-address 100 mpls lspv 101 mpls lsr-id 102 path-vectors 102 periodic-tracert 103 ping lsp 104 prefix-label advertise 105 remote-ip 106 remote-ip bfd 106 reset mpls ldp 107 reset mpls statistics interface 108 reset mpls statistics lsp 108 ii

static-lsp egress 109 static-lsp ingress 109 static-lsp transit 110 statistics interval 111 tracert lsp ipv4 111 ttl expiration enable 112 ttl expiration pop 113 ttl propagate 114 MPLS TE configuration commands 115 add hop 115 delete hop 116 display explicit-path 116 display isis traffic-eng advertisements 117 display isis traffic-eng link 120 display isis traffic-eng network 121 display isis traffic-eng statistics 123 display mpls lsp bfd te 124 display mpls rsvp-te 125 display mpls rsvp-te established 127 display mpls rsvp-te peer 128 display mpls rsvp-te psb-content 129 display mpls rsvp-te request 132 display mpls rsvp-te reservation 133 display mpls rsvp-te rsb-content 134 display mpls rsvp-te sender 136 display mpls rsvp-te statistics 137 display mpls static-cr-lsp 139 display mpls te cspf tedb 141 display mpls te link-administration admission-control 146 display mpls te tunnel 147 display mpls te tunnel path 149 display mpls te tunnel statistics 150 display mpls te tunnel-interface 151 display ospf mpls-te 154 display ospf traffic-adjustment 156 display tunnel-info 157 enable traffic-adjustment 158 enable traffic-adjustment advertise 159 explicit-path 159 list hop 160 modify hop 160 mpls rsvp-te 161 mpls rsvp-te authentication 162 mpls rsvp-te bfd enable 163 mpls rsvp-te blockade-multiplier 163 mpls rsvp-te graceful-restart 164 mpls rsvp-te hello 165 mpls rsvp-te hello-lost 165 mpls rsvp-te keep-multiplier 166 mpls rsvp-te reliability 167 mpls rsvp-te resvconfirm 167 mpls rsvp-te srefresh 168 mpls rsvp-te timer graceful-restart recovery 169 mpls rsvp-te timer graceful-restart restart 169 iii

mpls rsvp-te timer hello 170 mpls rsvp-te timer refresh 170 mpls rsvp-te timer retransmission 171 mpls te 172 mpls te affinity property 173 mpls te backup 173 mpls te backup bandwidth 174 mpls te bfd enable 175 mpls te commit 176 mpls te cspf 176 mpls te cspf timer failed-link 177 mpls te failure-action teardown 178 mpls te fast-reroute 178 mpls te fast-reroute bypass-tunnel 179 mpls te igp advertise 180 mpls te igp metric 180 mpls te igp shortcut 181 mpls te link administrative group 182 mpls te loop-detection 182 mpls te metric 183 mpls te path 183 mpls te path metric-type 184 mpls te periodic-tracert 185 mpls te priority 186 mpls te protection tunnel 187 mpls te protect-switch 188 mpls te record-route 188 mpls te reoptimization (tunnel interface view) 189 mpls te reoptimization (user view) 190 mpls te resv-style 190 mpls te retry 191 mpls te route-pinning 191 mpls te signal-protocol 192 mpls te timer fast-reroute 192 mpls te timer retry 193 mpls te tunnel-id 194 mpls te vpn-binding 194 mpls-te 195 next hop 196 opaque-capability 196 ping lsp te 197 reset mpls rsvp-te statistics 198 static-cr-lsp egress 199 static-cr-lsp ingress 199 static-cr-lsp transit 200 tracert lsp te 201 traffic-eng 202 VPLS configuration commands 203 description 203 display bgp vpls 203 display mac-address vsi 208 display mpls l2vpn fib ac vpls 210 display mpls l2vpn fib pw vpls 212 display pw-class 214 iv

display vpls connection 215 display vsi 217 display vsi remote 221 dual-npe revertive 222 encapsulation 223 mac-learning 223 peer (VSI LDP view) 224 pw-class 225 pwsignal 225 pw-tunnel-policy 226 reset bgp vpls 226 reset mac-address vsi 227 route-distinguisher (VSI BGP view) 227 shutdown (VSI view) 228 site 229 tnl-policy 229 trans-mode 230 vpls-family 231 vpn-target (VSI BGP view) 231 vsi 232 vsi-id 233 xconnect vsi 234 MPLS L2VPN configuration commands 235 ccc interface in-label out-label 235 ce 236 connection 237 display bgp l2vpn 237 display ccc 242 display l2vpn ccc-interface vc-type 244 display mpls l2vc 245 display mpls l2vpn 247 display mpls l2vpn connection 249 display mpls l2vpn fib ac vpws 253 display mpls l2vpn fib pw vpws 254 display mpls static-l2vc 256 display pw-class 257 l2vpn 258 l2vpn-family 259 mpls l2vc 259 mpls l2vpn 260 mpls l2vpn vpn-name 261 mpls static-l2vc 262 mtu (MPLS L2VPN view) 263 pw-class 264 pw-tunnel-policy 264 reset bgp l2vpn 265 route-distinguisher (MPLS L2VPN view) 265 trans-mode 266 vpn-target (MPLS L2VPN view) 267 xconnect peer 268 MPLS L3VPN configuration commands 270 default local-preference (BGP-VPNv4 subaddress family view) 270 default med (BGP-VPNv4 subaddress family view) 270 v

description (VPN instance view) 271 display bgp vpnv4 all routing-table 272 display bgp vpnv4 group 276 display bgp vpnv4 network 278 display bgp vpnv4 paths 279 display bgp vpnv4 peer 280 display bgp vpnv4 peer received ip-prefix 286 display bgp vpnv4 route-distinguisher routing-table 287 display bgp vpnv4 routing-table label 291 display bgp vpnv4 vpn-instance routing-table 292 display fib vpn-instance 295 display fib vpn-instance ip-address 297 display ip vpn-instance 298 display mpls ldp vpn-instance 300 display ospf sham-link 301 display tunnel-policy 303 domain-id 304 export route-policy 305 ext-community-type 305 filter-policy export (BGP-VPNv4 subaddress family view) 306 filter-policy import (BGP-VPNv4 subaddress family view) 307 import route-policy 308 ip binding vpn-instance 309 ip vpn-instance 309 ipv4-family (BGP view) 310 ipv4-family (VPN instance view) 311 mpls ldp vpn-instance 311 nesting-vpn 312 peer advertise-community (BGP-VPNv4 subaddress family view) 312 peer allow-as-loop 313 peer as-path-acl (BGP-VPNv4 subaddress family view) 314 peer capability-advertise orf ip-prefix (BGP-VPNv4 subaddress family view) 315 peer default-route-advertise vpn-instance 316 peer enable 316 peer filter-policy (BGP-VPNv4 subaddress family view) 317 peer group 318 peer ip-prefix (BGP-VPNv4 subaddress family view) 319 peer label-route-capability (BGP view/bgp VPN instance view) 320 peer next-hop-invariable (BGP-VPNv4 subaddress family view) 320 peer next-hop-local 321 peer preferred-value (BGP-VPNv4 subaddress family view) 322 peer public-as-only (BGP-VPNv4 subaddress family view) 323 peer reflect-client 323 peer route-policy (BGP-VPNv4 subaddress family view) 324 peer upe 325 peer upe route-policy 326 peer vpn-instance enable 326 peer vpn-instance group 327 peer vpn-instance route-policy import 328 policy vpn-target 329 reflect between-clients 330 reflector cluster-id 331 refresh bgp vpn-instance 331 refresh bgp vpnv4 332 vi

reset bgp vpn-instance 333 reset bgp vpn-instance dampening 333 reset bgp vpn-instance flap-info 334 reset bgp vpnv4 334 route-distinguisher (VPN instance view) 335 route-tag 336 routing-table limit 337 rr-filter 338 sham-link 339 tnl-policy (VPN instance view/ipv4 VPN view) 340 tunnel select-seq 341 tunnel-policy 342 vpn-instance-capability simple 343 vpn-target (VPN instance view/ipv4 VPN view) 343 IPv6 MPLS L3VPN configuration commands 345 default local-preference (BGP-VPNv6 subaddress family view) 345 default med (BGP-VPNv6 subaddress family view) 345 display bgp vpnv6 all peer 346 display bgp vpnv6 all routing-table 349 display bgp vpnv6 route-distinguisher routing-table 351 display bgp vpnv6 vpn-instance peer 352 display bgp vpnv6 vpn-instance routing-table 355 display ipv6 fib vpn-instance 357 display ipv6 fib vpn-instance ipv6-address 358 export route-policy 359 filter-policy export (BGP-VPNv6 subaddress family view) 360 filter-policy import (BGP-VPNv6 subaddress family view) 361 import route-policy 362 ipv6-family (BGP view) 363 ipv6-family (VPN instance view) 363 peer enable 364 peer filter-policy (BGP-VPNv6 subaddress family view) 365 peer ipv6-prefix (BGP-VPNv6 subaddress family view) 366 peer preferred-value (BGP-VPNv6 subaddress family view) 366 peer public-as-only (BGP-VPNv6 subaddress family view) 367 peer reflect-client 368 peer route-policy (BGP-VPNv6 subaddress family view) 368 policy vpn-target 369 reflect between-clients 370 reflector cluster-id 371 refresh bgp ipv6 vpn-instance 372 refresh bgp vpnv6 372 reset bgp ipv6 vpn-instance 373 reset bgp vpnv6 373 routing-table limit 374 rr-filter 375 tnl-policy (VPN instance view/ipv6 VPN view) 376 vpn-target (VPN instance view/ipv6 VPN view) 377 Index 379 vii

MCE configuration commands NOTE: This chapter describes only the commands related to the multi-vpn-instance CE (MCE) feature. For information about the routing protocol configuration commands in the configuration examples, see Layer 3 IP Routing Command Reference. The term Layer 3 Ethernet interface refers to route-mode (Layer 3) Ethernet ports. You can set an Ethernet port to operate in route mode by using the port link-mode route command (see Layer 2 LAN Switching Configuration Guide). description description text undo description VPN instance view text: for the VPN instance, a string of 1 to 80 characters. Use the description command to configure a description for the current VPN instance. Use the undo description command to delete the description. # Configure a description for VPN instance vpn1. [Sysname] ip vpn-instance vpn1 [Sysname-vpn-instance-vpn1] description vpn1 display bgp vpnv4 vpn-instance group display bgp vpnv4 vpn-instance vpn-instance-name group [ group-name ] [ { begin exclude include } regular-expression ] Any view 1

1: Monitor level vpn-instance-name: Displays information about the specified VPN. vpn-instance-name is the VPN instance name, a case-sensitive string of 1 to 31 characters. group-name: Name of the BGP peer group, a string of 1 to 47 characters. : Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Use the display bgp vpnv4 vpn-instance group command to display information about a specific BGP VPNv4 peer group or all BGP VPNv4 peer groups. # Display information about the BGP VPNv4 peer group a for VPN instance vpn1. <Sysname> display bgp vpnv4 vpn-instance vpn1 group a BGP peer-group is a remote AS number not specified Type : external Maximum allowed prefix number: 150000 Threshold: 75% Configured hold timer value: 180 Keepalive timer value: 60 Minimum time between advertisement runs is 30 seconds Optional capabilities: ORF advertise capability based on Prefix(type 64): Local : both Peer Preferred Value: 99 No routing policy is configured Members: Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State 10.1.1.1 200 18 21 0 1 00:12:58 Established Table 1 Output description Field BGP peer-group remote AS number Type Maximum allowed prefix number Threshold Name of the BGP peer group Number of the remote AS Peer group type Maximum number of routes that the VPN instance supports Threshold value 2

Field Configured hold timer value Keepalive timer value Minimum time between advertisement runs Local Peer Preferred Value No routing policy is configured Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State Setting of the hold timer Keepalive interval Minimum route advertisement interval 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. Weight for the routes from the peer Whether the VPN instance is configured with a routing policy IP address of the peer AS number of the peer group Number of messages received Number of messages sent Number of messages waiting to be sent to the peer Number of prefixes received Duration of the BGP session in the current state Status of the peer display bgp vpnv4 vpn-instance network Any view display bgp vpnv4 vpn-instance vpn-instance-name network [ { begin exclude include } regular-expression ] 1: Monitor level vpn-instance-name: Displays information about the specified VPN. vpn-instance-name is the VPN instance name, a case-sensitive string of 1 to 31 characters. : Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. 3

include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Use the display bgp vpnv4 vpn-instance network command to display information about the BGP VPNv4 routes injected into a specific VPN instance or all VPN instances. # Display information about the BGP VPNv4 routes injected into the VPN instance vpn1. <Sysname> display bgp vpnv4 vpn-instance vpn1 network BGP Local Router ID is 1.1.1.1. Local AS Number is 100. Network Mask Route-policy Short-cut 10.0.0.0 255.0.0.0 Table 2 Output description Field BGP Local Router ID Local AS Number Network Mask Route-policy Short-cut Router ID of the local BGP router Local AS number Advertised network route Mask of the advertised network route Routing policy configured Whether this route is a short-cut route display bgp vpnv4 vpn-instance paths Any view display bgp vpnv4 vpn-instance vpn-instance-name paths [ as-regular-expression { { begin exclude include } regular-expression } ] 1: Monitor level vpn-instance-name: Displays information about the specified VPN. vpn-instance-name is the VPN instance name, a case-sensitive string of 1 to 31 characters. as-regular-expression: Regular expression for filtering the AS path information to be displayed. : Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. 4

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Use the display bgp vpnv4 vpn-instance paths command to display the BGP VPNv4 AS path information. # Display the BGP VPNv4 AS path information of VPN instance vpn1. <Sysname> display bgp vpnv4 vpn-instance vpn1 paths Address Hash Refcount MED Path/Origin 0x6E72D18 0 1 0 200? 0x6E72E50 0 1 0 i 0x6E72B78 1 1 0? 0x6E72BE0 1 2 0? Table 3 Output description Field Address Hash Refcount MED Path/Origin Routing address in the local database Hash bucket for storing routes Number of times that the path is referenced Metric for routes AS_PATH attribute/route origin code display bgp vpnv4 vpn-instance peer Any view display bgp vpnv4 vpn-instance vpn-instance-name peer [ group-name log-info ip-address { log-info verbose } verbose ] [ { begin exclude include } regular-expression ] 1: Monitor level vpn-instance-name: Displays information about the specified VPN. vpn-instance-name is the VPN instance name, a case-sensitive string of 1 to 31 characters. group-name: Name of a peer group, a string of 1 to 47 characters. log-info: Displays the log information about the peer group. ip-address: IP address of the peer. verbose: Displays detailed information. : Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. 5

exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Use the display bgp vpnv4 vpn-instance peer command to display information about the BGP VPNv4 peers. # Display information about the BGP VPNv4 peers of the VPN instance vpn1. <Sysname> display bgp vpnv4 vpn-instance vpn1 peer BGP local router ID : 2.2.2.2 Local AS number : 100 Total number of peers : 1 Peers in established state : 1 Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State 10.1.1.1 200 24 29 0 1 00:18:47 Established Table 4 Output description Field BGP Local router ID local AS number Total number of peers Peers in established state Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State Router ID of the local BGP router Local AS number Total number of peers Number of peers in the state of established IP address of the peer AS number of the peer group Number of messages received Number of messages sent Number of messages waiting to be sent to the peer Number of received prefixes Duration of the BGP session in the current state Status of the peer # Display detailed information about BGP VPNv4 peers of VPN instance vpn1. <Sysname> display bgp vpnv4 vpn-instance vpn1 peer verbose Peer: 10.1.1.1 Local: 2.2.2.2 Type: EBGP link BGP version 4, remote router ID 10.1.1.1 BGP current state: Established, Up for 00h19m26s BGP current event: KATimerExpired BGP last state: OpenConfirm Port: Local - 179 Remote - 1025 Configured: Active Hold Time: 180 sec Keepalive Time:60 sec Received : Active Hold Time: 180 sec Negotiated: Active Hold Time: 180 sec 6

Peer optional capabilities: Peer support bgp multi-protocol extended Peer support bgp route refresh capability Address family IPv4 Unicast: advertised and received Received: Total 25 messages, Update messages 1 Sent: Total 30 messages, Update messages 4 Maximum allowed prefix number: 150000 Threshold: 75% Minimum time between advertisement runs is 30 seconds Optional capabilities: ORF advertise capability based on Prefix(type 64): Local: both Negotiated: send Peer Preferred Value: 99 BFD: Enabled Routing policy configured: No routing policy is configured Table 5 Output description Field Peer Local Type BGP version remote router ID BGP current state Up for BGP current event BGP last state Port Configured Received Negotiated Peer optional capabilities Peer support bgp multi-protocol extended Peer support bgp route refresh capability Address family IPv4 Unicast IP address of the peer IP address of the local router BGP type Version of BGP that the peer runs Router ID of the remote router Current status of the BGP session Duration since the peer is established Current event of the BGP session State that the BGP session was in before transitioning to the current status Local and remote ports of the BGP session Settings of the local timers, including the active hold interval and keepalive interval Received active hold interval Negotiated active hold interval and keepalive time Optional capabilities of the peer The peer supports multiprotocol extension. The peer supports route refresh capability. IPv4 unicast family capability 7

Field Received Sent Maximum allowed prefix number Threshold Minimum time between advertisement runs Optional capabilities Local Negotiated Total number of received messages and the number of received update messages Total number of sent messages and the number of sent update messages Maximum number of routes that the VPN instance supports Threshold value Minimum route advertisement interval Local optional capabilities Indicates whether the local device supports sending and receiving Route-refresh packets with the ORF information. The value can be: both Supports sending and receiving Route-refresh messages with the ORF information. send Supports sending Route-refresh messages with the ORF information. receive Supports receiving Route-refresh messages with the ORF information. ORF capability negotiated by the local and remote peers. The value can be: send The local peer can send Route-refresh messages with the ORF information and the remote peer can receive Route-refresh messages with the ORF information. receive The local peer can receive Route-refresh messages with the ORF information and the remote peer can send Route-refresh messages with the ORF information. If ORF capability negotiation fails, this field will not be displayed. Peer Preferred Value Routing policy configured Weight for the routes from the peer Routing policy configured display bgp vpnv4 vpn-instance routing-table Any view display bgp vpnv4 vpn-instance vpn-instance-name routing-table [ [ network-address [ { mask mask-length } [ longer-prefixes ] ] as-path-acl as-path-acl-number cidr community [ aa:nn ]&<1-13> [ no-advertise no-export no-export-subconfed ] * [ whole-match ] community-list { basic-community-list-number [ whole-match ] adv-community-list-number }&<1-16> dampened dampening parameter different-origin-as flap-info [ network-address [ { mask mask-length } [ longer-match ] ] as-path-acl as-path-acl-number ] peer ip-address { advertised-routes received-routes } statistic ] [ { begin exclude include } regular-expression ] [ flap-info ] regular-expression as-regular-expression ] 1: Monitor level 8

vpn-instance-name: The VPN instance name, a case-sensitive string of 1 to 31 characters. network-address: IP address of the destination segment. mask-length: Length of the network mask, in the range of 0 to 32. mask-address: Network mask, in the format of X.X.X.X. longer-prefixes: Specifies to match the longest prefix. as-path-acl as-path-acl-number: Filters routing information using the specified AS_PATH list. The as-path-acl-number argument ranges from 1 to 256. cidr: Displays classless interdomain routing (CIDR) information. community: Displays routing information of the specified BGP community in the routing table. aa:nn&<1-13>: Community number. Both the aa and nn parameters range from 0 to 65535. &<1-13> means that you can enter the parameter combination up to 13 times. no-export-subconfed: A route with this attribute is neither advertised out of the local AS, nor advertised to the other sub-ass in the confederation. no-advertise: A route with this attribute is not advertised to any other BGP peer. no-export: A route with this attribute is not advertised out of the local AS or, if existing, confederation. However, it is advertised to the other sub-ass in the confederation. whole-match: Performs exact match. community-list: Displays routing information of the specified BGP community list. basic-community-list-number: Basic community list number, in the range of 1 to 99. adv-community-list-number: Advanced community list number, in the range of 100 to 199. &<1-16>: Specifies that the argument before it can be entered up to 16 times. dampened: Displays information about dampened BGP VPNv4 routes. dampening parameter: Configured BGP VPNv4 route dampening parameters. different-origin-as: Displays information about routes with different AS origins. flap-info: Displays BGP VPNv4 route flap statistics. longer-match: Displays flap statistics for routes with greater mask lengths than that specified by the network-address { mask mask-length } combination. peer ip-address: Specifies a peer by its IP address. advertised-routes: Displays routing information sent to the specified peer. received-routes: Displays routing information received from the specified peer. regular-expression as-regular-expression: Displays routing information matching the specified AS regular expression. statistic: Displays BGP VPNv4 route statistics. : Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. 9

include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Use the display bgp vpnv4 vpn-instance routing-table command to display the BGP VPNv4 routing information for a specific VPN instance. # Display the BGP VPNv4 routing information of VPN instance vpn1. <Sysname> display bgp vpnv4 vpn-instance vpn1 routing-table Total Number of Routes: 5 BGP Local router ID is 2.2.2.2 Status codes: * - valid, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP,? - incomplete Network NextHop MED LocPrf PrefVal Path/Ogn *>i 10.0.0.0 1.1.1.1 0 100 0 i *> 10.1.1.0/24 0.0.0.0 0 0? *> 20.0.0.0 10.1.1.1 0 99 200? *>i 123.1.1.1/32 1.1.1.1 0 100 0? *> 124.1.1.1/32 0.0.0.0 0 0? Table 6 Output description Field Total Number of Routes BGP Local router ID Status codes Origin Network NextHop MED LocPrf PrefVal Path/Ogn Total number of routes Router ID of the local BGP router Route status code. For valid values. Route origin code. For valid values. Network address in the BGP routing table Address of the next hop Metric associated with the destination network Local preference Preferred value of the protocol AS_PATH attribute/route origin code. display fib vpn-instance display fib vpn-instance vpn-instance-name [ acl acl-number ip-prefix ip-prefix-name ] [ { begin exclude include } regular-expression ] 10

Any view 1: Monitor level vpn-instance-name: The VPN instance name, a case-sensitive string of 1 to 31 characters. acl acl-number: Displays the FIB information of the VPN instance permitted by the specified ACL. acl-number is the number of the ACL, in the range of 2000 to 2999. If the specified ACL does not exist, the command displays all FIB information of the VPN instance. ip-prefix ip-prefix-name: Displays the FIB information of the VPN instance permitted by the specified IP prefix. ip-prefix-name is the name of the IP prefix, a case-sensitive string of 1 to 19 characters. If the specified IP prefix does not exist, the command displays all FIB information of the VPN instance. : Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Use the display fib vpn-instance command to display FIB information for a VPN. If no parameter is specified, all FIB information for the VPN will be displayed. # Display all FIB information for the VPN instance vpn1. <Sysname> display fib vpn-instance vpn1 FIB entry count: 4 Flag: U:Useable G:Gateway H:Host B:Blackhole D:Dynamic S:Static Destination/Mask Nexthop Flag OutInterface InnerLabel Token 10.2.0.0/16 10.2.1.1 U Vlan1 Null Invalid 10.2.1.1/32 127.0.0.1 UH InLoop0 Null Invalid 127.0.0.0/8 127.0.0.1 U InLoop0 Null Invalid 127.0.0.1/32 127.0.0.1 UH InLoop0 Null Invalid # Display the FIB information that begins with the line containing the string 127 for the VPN instance vpn1. <Sysname> display fib vpn-instance vpn1 begin 127 Flag: U:Useable G:Gateway H:Host B:Blackhole D:Dynamic S:Static Destination/Mask Nexthop Flag OutInterface InnerLabel Token 10.2.1.1/32 127.0.0.1 UH InLoop0 Null Invalid 127.0.0.0/8 127.0.0.1 U InLoop0 Null Invalid 11

127.0.0.1/32 127.0.0.1 UH InLoop0 Null Invalid # Display the FIB information permitted by ACL 2000 for the VPN instance vpn1. [Sysname] acl number 2000 [Sysname-acl-basic-2000] rule permit source 10.2.0.0 0.0.255.255 [Sysname-acl-basic-2000] display fib vpn-instance vpn1 acl 2000 FIB entry count: 2 Flag: U:Useable G:Gateway H:Host B:Blackhole D:Dynamic S:Static Destination/Mask Nexthop Flag OutInterface InnerLabel Token 10.2.0.0/16 10.2.1.1 U Vlan1 Null Invalid 10.2.1.1/32 127.0.0.1 UH InLoop0 Null Invalid # Display the FIB information permitted by the IP prefix abc0 for the VPN instance vpn1. [Sysname] ip ip-prefix abc0 permit 10.2.0.0 16 [Sysname] display fib vpn-instance vpn1 ip-prefix abc0 FIB entry count: 1 Flag: U:Useable G:Gateway H:Host B:Blackhole D:Dynamic S:Static Destination/Mask Nexthop Flag OutInterface InnerLabel Token 10.2.0.0/16 10.2.1.1 U Vlan1 Null Invalid Table 7 Output description Field FIB entry count Destination/Mask Nexthop Flag OutInterface Token Number of entries in the FIB Destination address/mask length Address of the next hop Flag of the route. Possible values are: U usable route G gateway route H host route B blackhole route D dynamic route S static route Forwarding interface LSP index number 12

display fib vpn-instance ip-address display fib vpn-instance vpn-instance-name ip-address [ mask mask-length ] [ { begin exclude include } regular-expression ] Any view 1: Monitor level vpn-instance-name: The VPN instance name, a case-sensitive string of 1 to 31 characters. ip-address: Destination IP address, in dotted decimal format. mask: Mask of the IP address, in dotted decimal format. mask-length: Length of the IP address mask, in the range of 0 to 32. : Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Use the display fib vpn-instance ip-address command to display the FIB information that matches the specified destination IP address in the specified VPN. If neither the mask nor the mask-length argument is specified, the command displays the FIB information that matches the specified destination IP address and has the longest mask in the specified VPN. Otherwise, the command displays the FIB information that exactly matches the specified destination IP address and mask in the specified VPN. # Display the FIB information that matches the destination IP address 10.2.1.1 in VPN instance vpn1. <Sysname> display fib vpn-instance vpn1 10.2.1.1 FIB entry count: 1 Flag: U:Useable G:Gateway H:Host B:Blackhole D:Dynamic S:Static Destination/Mask Nexthop Flag OutInterface InnerLabel Token 10.2.1.1/32 127.0.0.1 UH InLoop0 Null Invalid For more information about the command output, see Table 7. 13

display ip vpn-instance display ip vpn-instance [ instance-name vpn-instance-name ] [ { begin exclude include } regular-expression ] Any view 1: Monitor level instance-name vpn-instance-name: Displays information about the specified VPN. vpn-instance-name is the VPN instance name, a case-sensitive string of 1 to 31 characters. : Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Use the display ip vpn-instance command to display information about VPN instances. If you do not specify any parameter, the command displays brief information about all VPN instances. # Display information about all VPN instances. <Sysname> display ip vpn-instance Total VPN-Instances configured : 2 VPN-Instance Name RD Create Time vpn1 22:1 2008/10/13 09:32:45 vpn2 33:3 2008/10/13 09:42:59 Table 8 Output description Field VPN-Instance Name RD Create Time Name of the VPN instance RD of the VPN instance Time when the VPN instance was created # Display detailed information about a specific VPN instance. <Sysname> display ip vpn-instance instance-name vpn1 VPN-Instance Name and ID : vpn1, 1 Create time : 2010/08/16 05:27:29 Up time : 0 days, 00 hours, 01 minutes and 39 seconds Route Distinguisher : 101:1 14

: This is vpn1 Export VPN Targets : 1:1 Import VPN Targets : 1:1 Import Route Policy : policy3 Export Route Policy : policy2 Tunnel Policy : policy1 Maximum Routes Limit : 600 IPv6 Export VPN Targets : 1:1 IPv6 Import VPN Targets : 1:1 IPv6 Import Route Policy : policy4 IPv6 Export Route Policy : policy1 IPv6 Tunnel Policy : policy1 IPv6 Maximum Routes Limit : 600 Interfaces : Vlan-interface10 Table 9 Output description Field VPN-Instance Name and ID CreateTime Up time Route Distinguisher Export VPN Targets Import VPN Targets Import Route Policy Export Route Policy Tunnel Policy Maximum Routes Limit IPv6 Export VPN Targets IPv6 Import VPN Targets IPv6 Import Route Policy IPv6 Export Route Policy IPv6 Tunnel Policy IPv6 Maximum Routes Limit Interfaces Name and ID of the VPN instance Time when the VPN instance was created Duration of the VPN instance RD of the VPN instance Export target attribute of the IPv4 VPN Import target attribute of the IPv4 VPN Import routing policy of the IPv4 VPN Export routing policy of the IPv4 VPN Tunneling policy of the IPv4 VPN Maximum number of routes of the IPv4 VPN Export target attribute of the IPv6 VPN Import target attribute of the IPv6 VPN Import routing policy of the IPv6 VPN Export routing policy of the IPv6 VPN Tunneling policy of the IPv6 VPN Maximum number of routes of the IPv6 VPN Interface to which the VPN instance is bound domain-id domain-id domain-id [ secondary ] undo domain-id [ domain-id ] 15

OSPF view domain-id: OSPF domain ID, which can be in one of the following 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: Uses the domain ID as secondary. With this keyword not specified, the domain ID configured is primary. Use the domain-id command to configure an OSPF domain ID. Use the undo domain-id command to restore the default. By default, the OSPF domain ID is 0. With no parameter specified, the undo domain-id command deletes the primary domain ID. Usually, routes injected from PEs are advertised as External-LSAs. However, routes to different destinations in the same OSPF domain must be advertised as Type-3 LSAs. Therefore, using the same domain ID is required for an OSPF domain. # Configure the OSPF domain ID. [Sysname] ospf 100 vpn-instance vpn1 [Sysname-ospf-100] domain-id 234 export route-policy export route-policy route-policy undo export route-policy VPN instance view, IPv4 VPN view route-policy: Name of the export routing policy for the VPN instance, a string of 1 to 63 characters. Use the export route-policy command to apply an export routing policy to a VPN instance. Use the undo export route-policy command to remove the application. 16

By default, no policy is applied to filter the routes to be advertised. You can specify an export routing policy when the VPN route advertisement control provided by the extended community attributes is not enough. An export routing policy may deny routes that are permitted by the export target attribute. An export routing policy specified in VPN instance view is applicable to both the IPv4 VPN and the IPv6 VPN. An export routing policy specified in IPv4 VPN view is applicable to only the IPv4 VPN. An export routing policy specified in IPv4 VPN view takes precedence over that specified in VPN instance view. If you specify an export routing policy in IPv4 VPN view and VPN instance view, the IPv4 VPN uses the policy specified in IPv4 VPN view. # Apply export routing policy poly-1 to VPN instance vpn1. [Sysname] ip vpn-instance vpn1 [Sysname-vpn-instance-vpn1] export route-policy poly-1 ext-community-type 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 } OSPF view domain-id type-code1: Specifies the type code for the OSPF extended community attribute of Domain ID. Valid values are 0x0005, 0x0105, 0x0205, and 0x8005. router-id type-code2: Specifies the type code for the OSPF extended community attribute of Router ID. Valid values are 0x0107 and 0x8001. route-type type-code3: Specifies the type code for the OSPF extended community attribute of Route Type. Valid values are 0x0306 and 0x8000. Use the ext-community-type command to configure the type code of an OSPF extended community attribute. Use the undo ext-community-type command to restore the default. By default, the type codes for the OSPF extended community attributes of Domain ID, Router ID, and Route Type are 0x0005, 0x0107, and 0x0306 respectively. # Configure the type codes of OSPF extended community attributes Domain ID, Router ID, and Route Type as 0x8005, 0x8001, and 0x8000 respectively for OSPF process 100. 17

[Sysname] ospf 100 [Sysname-ospf-100] ext-communityroute-type domain-id 8005 [Sysname-ospf-100] ext-communityroute-type router-id 8001 [Sysname-ospf-100] ext-communityroute-type route-type 8000 filter-policy export filter-policy { acl-number ip-prefix ip-prefix-name } export [ direct isis process-id ospf process-id rip process-id static ] undo filter-policy export [ direct isis process-id ospf process-id rip process-id static ] BGP-VPN instance view acl-number: IP ACL number, in the range of 2000 to 3999. ip-prefix-name: IP address prefix list name, a string of 1 to 19 characters. direct: Filters direct routes to be advertised. isis process-id: Filters ISIS routes to be advertised that are from a specific ISIS process. The process-id argument is in the range of 1 to 4294967295. ospf process-id: Filters OSPF routes to be advertised that are from a specific OSPF process. The process-id argument is in the range of 1 to 4294967295. rip process-id: Filters RIP routes to be advertised that are from a specific RIP process. The process-id argument is in the range of 1 to 4294967295. static: Filters static routes to be advertised. Use the filter-policy export command to configure BGP to filter all or certain types of routes to be advertised. Use the undo filter-policy export command to remove the configuration. If you specify no routing protocol parameters for the filter-policy export command, all routes to be advertised will be filtered. By default, BGP does not filter routes to be advertised. Only routes that survive the filtering are advertised by BGP. # Configure BGP to filter the routes to be advertised by using ACL 2555. [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] filter-policy 2555 export 18

filter-policy import filter-policy { acl-number ip-prefix ip-prefix-name } import undo filter-policy import BGP-VPN instance view acl-number: IP ACL number, in the range of 2000 to 3999. ip-prefix-name: IP address prefix list name, a string of 1 to 19 characters. Use the filter-policy import command to configure BGP to filter received routes. Use the undo filter-policy import command to remove the configuration. By default, BGP does not filter received routes. Only routes that survive the filtering are added into the BGP routing table. # Configure BGP to filter received routes using ACL 2255. [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] filter-policy 2255 import import route-policy import route-policy route-policy undo import route-policy VPN instance view, IPv4 VPN view route-policy: Name of the import routing policy for the VPN instance, a string of 1 to 63 characters. Use the import route-policy command to apply an import routing policy to a VPN instance. Use the undo import route-policy command to remove the application. By default, all routes permitted by the import target attribute are accepted. 19

You can specify an import routing policy when the route redistribution control provided by the extended community attributes is not enough. An import routing policy may deny routes that are permitted by the import target attributes. An import routing policy specified in VPN instance view is applicable to both the IPv4 VPN and the IPv6 VPN. An import routing policy specified in IPv4 VPN view is applicable to only the IPv4 VPN. An import routing policy specified in IPv4 VPN view takes precedence over that specified in VPN instance view. If you specify an import routing policy in both IPv4 VPN view and VPN instance view, the IPv4 VPN uses the policy specified in IPv4 VPN view. # Apply import routing policy poly-1 to VPN instance vpn1. [Sysname] ip vpn-instance vpn1 [Sysname-vpn-instance-vpn1] import route-policy poly-1 ip binding vpn-instance ip binding vpn-instance vpn-instance-name undo ip binding vpn-instance vpn-instance-name VLAN interface view, tunnel interface view, Layer 3 Ethernet interface vpn-instance-name: Name of the VPN instance to be associated, a case-sensitive string of 1 to 31 characters. Use the ip binding vpn-instance command to associate an interface with a VPN instance. Use the undo ip binding vpn-instance command to remove the association. By default, an interface is associated with no VPN instance; it belongs to the public network. When configured on an interface, the ip binding vpn-instance command clears the IP address of the interface. Therefore, you must reconfigure the IP address of the interface after configuring the command. NOTE: In an MPLS L3VPN application, you need to associate VPN instances with the interfaces connecting the PEs. In a tunneling application, you need to associate VPN instances with the tunnel interfaces connecting the peer MCE devices or CE devices. # Associate VLAN-interface 1 with the VPN instance vpn1. 20