![]() |
Cisco IOS Multiprotocol Label Switching Command Reference
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A through D
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Contents
A through D address-familyTo enter the address family submode for configuring routing protocols such as Border Gateway Protocol (BGP), Routing Information Protocol (RIP), and static routing, use the address-family command in address family configuration submode. To disable the address family submode for configuring routing protocols, use the no form of this command. VPN-IPv4 Unicast
address-family
vpnv4
[unicast]
no
address-family
vpnv4
[unicast]
IPv4 Unicast
address-family
ipv4
[unicast]
no
address-family
ipv4
[unicast]
IPv4 Unicast with CE router
address-family
ipv4
[unicast]
vrf
vrf-name
no
address-family
ipv4
[unicast]
vrf
vrf-name
Syntax Description
Command DefaultRouting information for address family IPv4 is advertised by default when you configure a BGP session using the neighbor remote-as command unless you execute the no bgp default ipv4-activate command. Command History
Usage GuidelinesUsing the address-family command puts the router in address family configuration submode (prompt: (config-router-af)# ). Within this submode, you can configure address-family specific parameters for routing protocols, such as BGP, that can accommodate multiple Layer 3 address families. To leave address family configuration submode and return to router configuration mode, enter the exit-address-family or the exit command. ExamplesThe address-family command in the following example puts the router into address family configuration submode for the VPNv4 address family. Within the submode, you can configure advertisement of Network Layer Reachability Information (NLRI) for the VPNv4 address family using neighbor activate and other related commands: router bgp 100 address-family vpnv4 The address-family command in the following example puts the router into address family configuration submode for the IPv4 address family. Use this form of the command, which specifies a VRF, only to configure routing exchanges between provider edge (PE) and customer edge (CE) devices. This address-family command causes subsequent commands entered in the submode to be executed in the context of VRF vrf2. Within the submode, you can use neighbor activate and other related commands to accomplish the following:
The following example shows how to enter the address family submode: Router(config)# router bgp 100 Router(config-router)# address-family ipv4 unicast vrf vrf2 affinityTo specify attribute flags for links of a label switched path (LSP) in an LSP attribute list, use the affinity command in LSP Attributes configuration mode. To remove the specified attribute flags, use the no form of this command. Syntax Description
Usage GuidelinesUse this command to set the affinity and affinity mask values for an LSP in an LSP attribute list. The affinity value determines the attribute flags for links that make up the LSP, either 0 or 1. The attribute mask determines which attribute value the router should check. If a bit in the mask is 0, an attribute value of a link or that bit is irrelevant. If a bit in the mask is 1, the attribute value of a link and the required affinity of the LSP for that bit must match. An LSP can use a link if the link affinity equals the attribute flag value and the affinity mask value. Any value set to 1 in the affinity should also be set to 1 in the mask. To associate the LSP affinity attribute and the LSP attribute list with a path option for an LSP, you must configure the tunnel mpls traffic-eng path option command with the attributes string keyword and argument, where string is the identifier for the specific LSP attribute list. allocateTo configure local label allocation filters for learned routes for Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP), use the allocate command in MPLS LDP label configuration mode. To remove the specific MPLS LDP local label allocation filter without resetting the LDP session, use the no form of this command.
allocate
global
{prefix-list {list-name | list-number} | host-routes}
no
allocate
global
{prefix-list {list-name | list-number} | host-routes}
Syntax Description
Usage GuidelinesLDP allocates local labels for all learned routes or prefixes. Use the allocate command to specify a prefix list or a host route to control local label allocation filtering. If you configure the allocate command with a prefix list as the filter and the prefix list does not exist, a prefix list is created that initially permits all prefixes. You can configure only one prefix list for the global routing table. Configuring a different prefix list overrides the existing configuration. If you configure the allocate command with host routes as the filter, then LDP allocates local labels for host routes only. The no form in a specific allocate command removes that particular local label allocation configuration from the global table. ExamplesThe following example shows how to configure a prefix list named List1 found in the global routing table as a filter for MPLS LDP local label allocation: configure terminal ! mpls ldp label allocate global prefix-list List1 end LDP allocates local labels only for prefixes that match the configured prefix list. The following example shows how to remove a local label allocation filter: configure terminal ! mpls ldp label no allocate global prefix-list List1 end The following example shows how to configure host routes as the filter for the MPLS LDP local label allocation: configure terminal ! mpls ldp label allocate global host-routes end LDP allocates local labels only for host routes found in the global routing table. append-afterTo insert a path entry after a specified index number, use the append-after command in IP explicit path configuration mode. Command History
ExamplesIn the following example, the next-address command is inserted after index 5:
Router(config-ip-expl-path)# append-after 5 next-address 10.3.27.3
Related Commands
auto-bw (LSP Attributes)To specify automatic bandwidth configuration for a label switched path (LSP) in an LSP attribute list, use the auto-bw command in LSP Attributes configuration mode. To remove automatic bandwidth configuration, use the no form of this command. Syntax Description
Command DefaultIf the command is entered with no optional keywords, automatic bandwidth adjustment for the LSP is enabled, with adjustments made every 24 hours and with no constraints on the bandwidth adjustments made. If the collect-bw keyword is entered, the bandwidth is sampled but not adjusted, and the other options, if any, are ignored. If the collect-bw keyword is not entered and some, but not all of the other keywords are entered, the defaults for the keywords not entered are: frequency, every 24 hours; min-bw, unconstrained (0); max-bw, unconstrained. Usage GuidelinesUse this command to set an automatic bandwidth configuration in an LSP attributes list. To sample the bandwidth used by an LSP without automatically adjusting it, specify the collect-bw keyword in the auto-bw command in an LSP attribute list. If you enter the auto-bw command without the collect-bw keyword, the bandwidth of the LSP is adjusted to the largest average output rate sampled for the LSP since the last bandwidth adjustment for the LSP was made. To constrain the bandwidth adjustment that can be made to an LSP in an LSP attribute list, use the max-bw or the min-bw keyword and specify the permitted maximum allowable bandwidth or minimum allowable bandwidth, respectively. The no auto-bw command disables bandwidth adjustment for the tunnel and restores the configured bandwidth for the LSP where configured bandwidth is determined as follows:
To associate the LSP automatic bandwidth adjustment attribute and the LSP attribute list with a path option for an LSP, you must configure the tunnel mpls traffic-eng path option command with the attributes string keyword and argument, where string is the identifier for the specific LSP attribute list. backup delay (L2VPN local switching)To specify how long a backup pseudowire virtual circuit (VC) should wait before resuming operation after the primary pseudowire VC goes down, use the backup delay command in interface configuration mode or xconnect configuration mode. Syntax Description
Command DefaultIf a failover occurs, the xconnect redundancy algorithm will immediately switch over or fall back to the backup or primary member in the redundancy group. Command History
ExamplesThe following example shows a Multiprotocol Label Switching (MPLS) xconnect with one redundant peer. Once a switchover to the secondary VC occurs, there will be no fallback to the primary VC unless the secondary VC fails. Router(config)# pseudowire-class mpls Router(config-pw-class)# encapsulation mpls Router(config)# connect frpw1 serial0/1 50 l2transport Router(config-if)# xconnect 10.0.0.1 50 pw-class mpls Router(config-if-xconn)# backup peer 10.0.0.2 50 Router(config-if-xconn)# backup delay 0 never The following example shows an MPLS xconnect with one redundant peer. The switchover will not begin unless the Layer 2 Tunnel Protocol (L2TP) pseudowire has been down for 3 seconds. After a switchover to the secondary VC occurs, there will be no fallback to the primary until the primary VC has been reestablished and is up for 10 seconds. Router(config)# pseudowire-class mpls Router(config-pw-class)# encapsulation mpls Router(config)# connect frpw1 serial0/1 50 l2transport Router(config-if)# xconnect 10.0.0.1 50 pw-class mpls Router(config-if-xconn)# backup peer 10.0.0.2 50 Router(config-if-xconn)# backup delay 3 10 backup peerTo specify a redundant peer for a pseudowire virtual circuit (VC), use the backup peer command in interface configuration mode or xconnect configuration mode. To remove the redundant peer, use the no form of this command.
backup
peer
peer-router-ip-addr
vcid
[pw-class pw-class-name]
[priority value]
no
backup
peer
peer-router-ip-addr
vcid
Syntax Description
Command History
Usage GuidelinesThe combination of the peer-router-ip-addr and vcid arguments must be unique on the router. In Cisco IOS XE Release 2.3, only one backup pseudowire is supported. In Cisco IOS XE Release 2.4 and later releases, up to three backup pseudowires are supported. The Cisco IOS Release 12.2(33)SCF supports up to three backup pseudowires for a primary pseudowire. The priority keyword is optional when only one backup pseudowire is configured. This keyword is a required choice when multiple backup pseudowires are configured. ExamplesThe following example shows how to configure a Multiprotocol Label Switching (MPLS) xconnect with one redundant peer: Router(config)# pseudowire-class mpls Router(config-pw-class)# encapsulation mpls Router(config)# interface serial0/0 Router(config-if)# xconnect 10.0.0.1 100 pw-class mpls Router(config-if-xconn)# backup peer 10.0.0.2 200 The following example shows how to configure a local-switched connection between ATM and frame relay using Ethernet interworking. The frame relay circuit is backed up by an MPLS pseudowire. Router(config)# pseudowire-class mpls Router(config-pw-class)# encapsulation mpls Router(config-pw-class)# interworking ethernet Router(config)# connect atm-fr atm1/0 100/100 s2/0 100 interworking ethernet Router(config-if)# backup peer 10.0.0.2 100 pw-class mpls The following example shows how to configure a pseudowire with two backup pseudowires: interface ATM4/0.1 point-to-point pvc 0/100 l2transport encapsulation aal5snap xconnect 10.1.1.1 100 pw-class mpls backup peer 10.1.1.1 101 backup peer 10.10.1.1 110 priority 2 backup peer 10.20.1.1 111 priority 9 bandwidth (LSP Attributes)To configure label switched path (LSP) bandwidth in an LSP attribute list, use the bandwidth command in LSP Attributes configuration mode. To remove the configured bandwidth from the LSP attribute list, use the no form of this command. Syntax Description
Usage GuidelinesUse this command to configure LSP bandwidth in the LSP attribute list. The bandwidth configured can be associated with both dynamic and explicit path options. To associate the LSP bandwidth and the LSP attribute list with a path option for an LSP, you must configure the tunnel mpls traffic-eng path option command with the attributes string keyword and argument, where string is the identifier for the specific LSP attribute list. The bandwidth configured in the LSP attribute list will override the bandwidth configured on the tunnel. bgp default route-target filterTo enable automatic Border Gateway Protocol (BGP) default route-target community filtering, use the bgp default route-target filter command in router configuration mode. To disable automatic BGP route-target community filtering or to enable pseudowire switching in address family configuration mode, use the no form of this command. Command History
Usage GuidelinesUse the bgp default route-target filter command to control the distribution of VPN routing information through the list of VPN route-target communities. When you use the no form of this command, all received VPN-IPv4 routes are accepted by the configured router. Accepting VPN-IPv4 routes is the desired behavior for a router configured as an ASBR or as a customer edge (CE) BGP border edge router. If you configure the router for BGP route-target community filtering, all received exterior BGP (EBGP) VPN-IPv4 routes are discarded when those routes do not contain a route-target community value that matches the import list of any configured VPN routing and forwarding (VRF) instances. This is the desired behavior for a router configured as a provider edge (PE) router.
Enabling Pseudowire Switching at the ASBR In Cisco IOS Release 15.1(1)S, the functionality of the no bgp default route-target filter command has been modified to support Virtual Private LAN Switching (VPLS) on an ASBR. In router family configuration mode (router-config-af), which is entered by using the address-family l2vpn command, the no bgp default route-target filtercommand enables pseudowire switching. ExamplesIn the following example, BGP route-target filtering is disabled for autonomous system 120: router bgp 120 no bgp default route-target filter bgp next-hopTo configure a loopback interface as the next hop for routes associated with a VPN routing and forwarding instance (VRF), use the bgp next-hop command in VRF configuration or in VRF address family configuration mode. To return the router to default operation, use the no form of this command. Command DefaultThe IP address of the source interface, from which the route was advertised is set as the next hop when this command is not enabled. Usage GuidelinesThe bgp next-hop command is used in Multiprotocol Label Switching (MPLS) Virtual Private Network (VPN) and Tunnel Engineering (TE) configurations. This command allows you to configure a loopback interface as the next hop for routes that are associated with the specified VRF. This command can be used, for example, to configure VPN traffic to use a specific Label Switched Path (LSP) through an MPLS core network. ExamplesIn the following example, loopback interface 0 is configured as the next hop for VPN traffic associated with VRF RED: Router(config)# ip vrf RED Router(config-vrf)# rd 40000:1 Router(config-vrf)# route-target import 40000:2 Router(config-vrf)# route-target export 40000:2 Router(config-vrf)# bgp next-hop loopback 0 The following example for an IPv4 address family defined under the vrf definition command shows how to configure loopback interface 0 as the next hop for VPN traffic associated with VRF vrf1: Router(config)# vrf definition vfr1 Router(config-vrf)# rd 40000:1 Router(config-vrf)# address-family ipv4 Router(config-vrf-af)# route-target import 40000:2 Router(config-vrf-af)# route-target export 40000:2 Router(config-vrf-af)# bgp next-hop loopback 0 Related Commands
bgp scan-timeTo configure scanning intervals of Border Gateway Protocol (BGP) routers for next hop validation or to decrease import processing time of Virtual Private Network version 4 (VPNv4) routing information, use the bgp scan-time command in address family or router configuration mode. To return the scanning interval of a router to its default scanning interval of 60 seconds, use the no form of this command. Command History
Usage GuidelinesEntering the no form of this command does not disable scanning, but removes it from the output of the show running-config command. The import keyword is supported in address family VPNv4 unicast mode only. The BGP Event Based VPN Import feature introduced a modification to the existing BGP path import process using new commands and the import keyword was removed from the bgp scan-time command in Cisco IOS Release 15.0(1)M, 12.2(33)SRE, and later releases. While bgp next-hop address tracking (NHT) is enabled for an address family, the bgp scan-time command will not be accepted in that address family and will remain at the default value of 60 seconds. NHT must be disabled before the bgp scan-time command will be accepted in either router mode or address family mode. ExamplesIn the following router configuration example, the scanning interval for next hop validation of IPv4 unicast routes for BGP routing tables is set to 20 seconds: router bgp 100 no synchronization bgp scan-time 20 In the following address family configuration example, the scanning interval for next hop validation of address family VPNv4 unicast routes for BGP routing tables is set to 45 seconds: router bgp 150 address-family vpn4 unicast bgp scan-time 45 In the following address family configuration example, the scanning interval for importing address family VPNv4 routes into IP routing tables is set to 30 seconds: router bgp 150 address-family vpnv4 unicast bgp scan-time import 30 cell-packingTo enable ATM over Multiprotocol Label Switching (MPLS) or Layer 2 Tunneling Protocol Version 3 (L2TPv3) to pack multiple ATM cells into each MPLS or L2TPv3 packet, use the cell-packing command in the appropriate configuration mode. To disable cell packing, use the no form of this command. Syntax Description
Command Modes
Command History
Usage GuidelinesThe cell-packing command is available only if you configure the ATM VC or virtual path (VP) with ATM adaptation layer 0 (AAL0) encapsulation. If you specify ATM adaptation layer 5 (AAL5) encapsulation, the command is not valid. Only cells from the same VC or VP can be packed into one MPLS or L2TPv3 packet. Cells from different connections cannot be concatenated into the same packet. When you change, enable, or disable the cell-packing attributes, the ATM VC or VP and the MPLS or L2TPv3 emulated VC are reestablished. If a provider edge (PE) router does not support cell packing, the PE router sends only one cell per MPLS or L2TPv3 packet. The number of packed cells need not match between the PE routers. The two PE routers agree on the lower of the two values. For example, if PE1 is allowed to pack 10 cells per MPLS or L2TPv3 packet and PE2 is allowed to pack 20 cells per MPLS or L2TPv3 packet, the two PE routers would agree to send no more than 10 cells per packet. If the number of cells packed by the peer PE router exceeds the limit, the packet is dropped. If you issue the cell-packing command without first specifying the atm mcpt-timers command, you get the following error: Please set mcpt values first In order to support cell packing for static pseudowires, both PEs must run Cisco IOS Release 12.2(1)SRE, and the maximum number of cells that can be packed must be set to the same value on each. ExamplesThe following example shows cell packing enabled on an interface set up for VP mode. The cell-packing command specifies that ten ATM cells be packed into each MPLS packet. The command also specifies that the second maximum cell-packing timeout (MCPT) timer be used. Router> enable Router# configure terminal Router(config)# interface atm1/0 Router(config-if)# atm mcpt-timers 1000 800 500 Router(config-if)# atm pvp 100 l2transport Router(config-if-atm-l2trans-pvp)# xconnect 10.0.0.1 234 encapsulation mpls Router(config-if-atm-l2trans-pvp)# cell-packing 10 mcpt-timer 2 The following example shows how to configure ATM cell relay over MPLS with cell packing in VC class configuration mode. The VC class is then applied to an interface. Router> enable Router# configure terminal Router(config)# vc-class atm cellpacking Router(config-vc-class)# encapsulation aal0 Router(config-vc-class)# cell-packing 10 mcpt-timer 1 Router(config-vc-class)# exit Router(config)# interface atm1/0 Router(config-if)# atm mcpt-timers 100 200 250 Router(config-if)# class-int cellpacking Router(config-if)# pvc ½00 l2transport Router(config-if-atm-l2trans-pvc)# xconnect 10.13.13.13 100 encapsulation mpls The following example shows how to configure ATM AAL5 over L2TPv3 in VC class configuration mode. The VC class is then applied to an interface. Router(config)# vc-class atm aal5class Router(config-vc-class)# encapsulation aal5 ! Router(config)# interface atm1/0 Router(config-if)# class-int aal5class Router(config-if)# pvc ½00 l2transport Router(config-if-atm-l2trans-pvc)# xconnect 10.13.13.13 100 encapsulation l2tpv3 Related Commands
classTo associate a map class with a specified data-link connection identifier (DLCI), use the class command in Frame Relay DLCI configuration mode or Frame Relay VC-bundle-member configuration mode. To remove the association between the DLCI and the map class, use the no form of this command. Command History
Usage GuidelinesUse this command with DLCIs that were created using the frame-relay interface-dlci command and with DLCIs that were created as permanent virtual circuit (PVC) bundle members within a specified Frame Relay PVC bundle. The PVC bundle is created using the frame-relay vc-bundle command. The Frame Relay PVC bundle member DLCIs are then created by using the pvc command in Frame Relay VC-bundle configuration mode. A map class applied to the interface is applied to all PVC members in a PVC bundle. A class applied to an individual PVC bundle member supersedes the class applied at the interface level. The map class is created by using the map-class frame-relay command in global configuration mode. ExamplesThe following example shows how to define a map class named slow-vcs and apply it to DLCI 100: interface serial 0.1 point-to-point frame-relay interface-dlci 100 class slow-vcs map-class frame-relay slow-vcs frame-relay cir out 9600 The following example shows how to apply a map class to a DLCI for which a frame-relay map statement exists. The frame-relay interface-dlci command must also be used. interface serial 0.2 point-to-multipoint frame-relay map ip 172.16.13.2 100 frame-relay interface-dlci 100 class slow-vcs map-class frame-relay slow_vcs frame-relay traffic-rate 56000 128000 frame-relay idle-timer 30 The following example creates a Frame Relay map class named class1 and shows how to assign it to PVC 300 in a Frame Relay PVC bundle named MP-3-static: map-class frame-relay class1 interface serial 1/4 frame-relay map ip 10.2.2.2 vc-bundle MP-3-static frame-relay vc-bundle MP-3-static pvc 300 class HI Example of the class Command for Defining Traffic Classes Inside a 802.1p Domain in Cisco IOS Release 12.2(33)SCFThe following example shows how to define traffic classes for the 8021.p domain with packet CoS values: enable configure terminal policy-map cos7 class cos2 set cos 2 end Example of the class Command for Defining Traffic Classes Inside an MPLS Domain in Cisco IOS Release 12.2(33)SCFThe following example shows how to define traffic classes for the MPLS domain with packet EXP values: enable configure terminal policy-map exp7 class exp7 set mpls experimental topmost 2 end Related Commands
class (MPLS)To configure a defined Multiprotocol Label Switching (MPLS) class of service (CoS) map that specifies how classes map to label switched controlled virtual circuits (LVCs) when combined with a prefix map, use the class command in CoS map submode. To remove the defined MPLS CoS map, use the no form of this command.
class
class
[available | standard | premium | control]
no
class
class
[available | standard | premium | control]
Syntax Description
Command History
ExamplesThe following example shows how to configure a CoS map: Router(config)# mpls cos-map 55 Router(config-mpls-cos-map)# class 1 premium Router(config-mpls-cos-map)# exit Related Commands
class-mapTo create a class map to be used for matching packets to a specified class and to enter QoS class map configuration mode, use the class-map command in global configuration mode. To remove an existing class map from the router, use the no form of this command. Cisco 2600, 3660, 3845, 6500, 7200, 7401, and 7500 Series Routers
class-map
[type {stack | access-control | port-filter | queue-threshold | logging log-class}]
[match-all | match-any]
class-map-name
no
class-map
[type {stack | access-control | port-filter | queue-threshold | logging log-class}]
[match-all | match-any]
class-map-name
Cisco 7600 Series Routers
class-map
class-map-name
[match-all | match-any]
no
class-map
class-map-name
[match-all | match-any]
Cisco Performance Monitor in Cisco IOS Release 15.1(3)T and 12.2(58)SE
class-map
class-map-name
no
class-map
class-map-name
Syntax DescriptionCommand History
Cisco Performance Monitor in Cisco IOS Release 15.1(3)T and 12.2(58)SEOnly the class-map-name argument is available. Cisco 2600, 3660, 3845, 6500, 7200, 7401, 7500, and ASR 1000 Series RoutersUse the class-mapcommand to specify the class that you will create or modify to meet the class-map match criteria. This command enters QoS class map configuration mode in which you can enter one of the match commands to configure the match criteria for this class. Packets that arrive at either the input interface or the output interface (determined by how the service-policy command is configured) are checked against the match criteria configured for a class map to determine if the packets belong to that class. When configuring a class map, you can use one or more match commands to specify match criteria. For example, you can use the match access-group command, the match protocol command, or the match input-interface command. The match commands vary according to the Cisco IOS release. For more information about match criteria and match commands, see the "Modular Quality of Service Command-Line Interface (CLI) (MQC)" chapter of the Cisco IOS Quality of Service Solutions Configuration Guide. Cisco 7600 Series RoutersYou apply the class-map command and its commands on a per-interface basis to define packet classification, marking, aggregate, and flow policing as part of a globally named service policy. You can attach a service policy to an EtherChannel. Do not attach a service policy to a port that is a member of an EtherChannel. After the router is in QoS class map configuration mode, the following configuration commands are available:
The following commands appear in the CLI help but are not supported on LAN interfaces or WAN interfaces on the Optical Service Modules (OSMs):
OSMs are not supported on Cisco 7600 series routers that are configured with a Supervisor Engine 32. Policy Feature Card (PFC) QoS does not support the following commands:
If you enter these commands, PFC QoS does not detect the unsupported keywords until you attach a policy map to an interface. When you try to attach the policy map to an interface, you get an error message. For additional information, see the Cisco 7600 Series Router Cisco IOS Software Configuration Guide and the Cisco IOS command references. After you have configured the class-map name and the router is in QoS class map configuration mode, you can enter the match access-group and match ip dscp commands. The syntax for these commands is as follows: match [access-group {acl-index | acl-name} | ipdscp | precedence} value] See the table below for a syntax description of the match commands.
ExamplesThe following example specifies class101 as the name of a class, and it defines a class map for this class. The class named class101 specifies policy for traffic that matches access control list 101. Router(config)# class-map class101 Router(config-cmap)# match access-group 101 The following example shows how to define FPM traffic classes for slammer and UDP packets. The match criteria defined within the class maps are for slammer and UDP packets with an IP length not to exceed 404 (0x194) bytes, UDP port 1434 (0x59A), and pattern 0x4011010 at 224 bytes from the start of the IP header. Router(config)# load protocol disk2:ip.phdf Router(config)# load protocol disk2:udp.phdf Router(config)# class-map type stack match-all ip-udp Router(config-cmap)# description "match UDP over IP packets" Router(config-cmap)# match field ip protocol eq 0x11 next udp Router(config)# class-map type access-control match-all slammer Router(config-cmap)# description "match on slammer packets" Router(config-cmap)# match field udp dest-port eq 0x59A Router(config-cmap)# match field ip length eq 0x194 Router(config-cmap)# match start 13-start offset 224 size 4 eq 0x 4011010 The following example shows how to configure a port-filter policy to drop all traffic that is destined to closed or "nonlistened" ports except SNMP: Router(config)# class-map type port-filter pf-class Router(config-cmap)# match not port udp 123 Router(config-cmap)# match closed-ports Router(config-cmap)# exit Router(config)# policy-map type port-filter pf-policy Router(config-pmap)# class pf-class Router(config-pmap-c)# drop Router(config-pmap-c)# end The following example shows how to configure a class map named ipp5, and enter a match statement for IP precedence 5: Router(config)# class-map ipp5 Router(config-cmap)# match ip precedence 5 Example of the class-map Command for Setting Up a Class Map Inside an 802.1p Domain in Cisco IOS Release 12.2(33)SCFThe following example shows how to set up a class map and match traffic classes for the 802.1p domain with packet Class of Service (CoS) values: Router> enable Router# configure terminal Router(config)# class-map cos1 Router(config-cmap)# match cos 0 Router(config-pmap-c)# end Example of the class-map Command for Setting Up a Class Map Inside an MPLS Domain in Cisco IOS Release 12.2(33)SCFThe following example shows how to set up a class map and match traffic classes for the Multiprotocol Label Switching domain with packet EXP values: Router> enable Router# configure terminal Router(config)# class-map exp7 Router(config-cmap)# match mpls experimental topmost 2 Router(config-pmap-c)# end Related Commands
clear ip route vrfTo remove routes from the Virtual Private Network (VPN) routing and forwarding(VRF) table, use the clear ip route vrf command in user EXEC or privileged EXEC mode. Command History
Usage GuidelinesUse this command to clear routes from the routing table. Use the asterisk (*) to delete all routes from the forwarding table for a specified VRF, or enter the address and mask of a particular network to delete the route to that network. clear ip rsvp hello bfdTo globally reset to zero the number of times that the Bidirectional Forwarding Detection (BFD) protocol was dropped on an interface or the number of times that a link was down, use the clear ip rsvp hello bfd command in user EXEC or privileged EXEC mode. To disable the resetting of those counters, use the no form of this command. Usage GuidelinesWhen you unconfigure BFD-triggered Fast Reroute, the BFD session is not torn down. Enter the clear ip rsvp hello bfd command to clear show command output for Multiprotocol Label Switching (MPLS) traffic engineering (TE) features that use the BFD protocol. The clear ip rsvp hello bfd command globally resets to zero the LostCnt field in the show ip rsvp hello bfd nbr summary command and the show ip rsvp hello bfd nbr command. Those fields show the number of times that the BFD session was lost (dropped) on an interface. The clear ip rsvp hello bfd command also resets to zero the Communication with neighbor lost field in the show ip rsvp hello bfd nbr detail command. That field shows the number of times the BFD protocol detected that a link was down. ExamplesThe following example resets to zero the Communication with neighbor lost field in the show ip rsvp hello bfd nbr detail command that shows the number of times the BFD protocol detected that a link was down:
Router# clear ip rsvp hello bfd nbr-lost
Related Commands
clear ip rsvp hello instance countersTo clear (refresh) the values for hello instance counters, use the cleariprsvphelloinstancecounterscommand in privileged EXEC mode. Command History
ExamplesFollowing is sample output from theshowiprsvphelloinstancedetail command and then the cleariprsvphelloinstancecounters command. Notice that the "Statistics" fields have been cleared to zero. Router# show ip rsvp hello instance detail Neighbor 10.0.0.2 Source 10.0.0.1 State: UP (for 2d18h) Type: PASSIVE (responding to requests) I/F: Et1/1 LSPs protecting: 0 Refresh Interval (msec) (used when ACTIVE) Configured: 100 Statistics: (from 2398195 samples) Min: 100 Max: 132 Average: 100 Waverage: 100 (Weight = 0.8) Current: 100 Src_instance 0xA9F07C13, Dst_instance 0x9BBAA407 Counters: Communication with neighbor lost: Num times: 0 Reasons: Missed acks: 0 Bad Src_Inst received: 0 Bad Dst_Inst received: 0 I/F went down: 0 Neighbor disabled Hello: 0 Msgs Received: 2398194 Sent: 2398195 Suppressed: 0 Router# clear ip rsvp hello instance counters Neighbor 10.0.0.2 Source 10.0.0.1 State: UP (for 2d18h) Type: PASSIVE (responding to requests) I/F: Et1/1 LSPs protecting: 0 Refresh Interval (msec) (used when ACTIVE) Configured: 100 Statistics: Min: 0 Max: 0 Average: 0 Waverage: 0 Current: 0 Src_instance 0xA9F07C13, Dst_instance 0x9BBAA407 Counters: Communication with neighbor lost: Num times: 0 Reasons: Missed acks: 0 Bad Src_Inst received: 0 Bad Dst_Inst received: 0 I/F went down: 0 Neighbor disabled Hello: 0 Msgs Received: 2398194 Sent: 2398195 Suppressed: 0 Related Commands
clear ip rsvp hello instance statisticsTo clear hello statistics for an instance, use the cleariprsvphelloinstancestatisticscommand in privileged EXEC mode. Command History
ExamplesThis example shows sample output from the showiprsvphellostatistics command and the values in those fields after you enter the cleariprsvphelloinstancestatistics command.
Router# show ip rsvp hello statistics
Status: Enabled
Packet arrival queue:
Wait times (msec)
Current:0
Average:0
Weighted Average:0 (weight = 0.8)
Max:4
Current length: 0 (max:500)
Number of samples taken: 2398525
Router# clear ip rsvp hello instance statistics
Status: Enabled
Packet arrival queue:
Wait times (msec)
Current:0
Average:0
Weighted Average:0 (weight = 0.8)
Max:0
Current length: 0 (max:500)
Number of samples taken: 0
Related Commands
clear ip rsvp hello statisticsTo clear hello statistics globally, use the cleariprsvphellostatisticscommand in privileged EXEC mode. Command History
Usage GuidelinesUse this command to remove all information about how long hello packets have been in the hello input queue. ExamplesFollowing is sample output from the showiprsvphellostatistics command and the cleariprsvphellostatistics command. Notice that the values in the "Packet arrival queue" fields have been cleared. Router# show ip rsvp hello statistics Status: Enabled Packet arrival queue: Wait times (msec) Current:0 Average:0 Weighted Average:0 (weight = 0.8) Max:4 Current length: 0 (max:500) Number of samples taken: 2398525 Router# clear ip rsvp hello statistics Status: Enabled Packet arrival queue: Wait times (msec) Current:0 Average:0 Weighted Average:0 (weight = 0.8) Max:0 Current length: 0 (max:500) Number of samples taken: 16 clear ip rsvp msg-pacing
To clear the Resource Reservation Protocol (RSVP) message pacing output from the showiprsvpneighbor command, use the cleariprsvpmsg-pacing command in privileged EXEC mode. Command History
clear mpls countersTo clear the Multiprotocol Label Switching (MPLS) forwarding table disposition counters, the Any Transport over MPLS (AToM) imposition and disposition virtual circuit (VC) counters, and the MAC address withdrawal counters, use the clear mpls counters command in privileged EXEC mode. Command History
ExamplesIn the following example, the first show mpls forwarding-table command shows that 590 label-switched bytes exist in the forwarding table. The clear mpls counters command clears the counters. The second show mpls forwarding-table command shows that the number of label-switched bytes is 0. Router# show mpls forwarding-table Local Outgoing Prefix Bytes Label Outgoing Next Hop Label Label or VC or Tunnel Id Switched interface 20 30 10.10.17.17 590 Et3/0 172.16.0.2 Router# clear mpls counters Clear "show mpls forwarding-table" counters [confirm] mpls forward counters cleared Router# show mpls forwarding-table Local Outgoing Prefix Bytes Label Outgoing Next Hop Label Label or VC or Tunnel Id Switched interface 20 30 10.10.17.17 0 Et3/0 172.16.0.2 In the following example, the first show mpls l2transport vc detail command shows that one MAC address withdrawal message was sent (and none were received), 15 packets were received and sent, 1656 bytes were received, and 1986 bytes were sent. The clear mpls counters command clears the counters. The second show mpls l2transport vc detail command shows that no MAC address withdrawal messages, bytes, or packets were received or sent. (If there are no MAC address withdrawal messages received or sent, the MAC Withdraw field is absent.) Router# show mpls l2transport vc detail Local interface: Et1/0 up, line protocol up, Ethernet up Destination address: 12.1.1.1, VC ID: 99, VC status: up Output interface: Se2/0, imposed label stack {21 16} Preferred path: not configured Default path: active Next hop: point2point Create time: 00:00:32, last status change time: 00:00:14 Signaling protocol: LDP, peer 12.1.1.1:0 up Targeted Hello: 11.1.1.1(LDP Id) -> 12.1.1.1 Status TLV support (local/remote) : enabled/supported Label/status state machine : established, LruRru Last local dataplane status rcvd: no fault Last local SSS circuit status rcvd: no fault Last local SSS circuit status sent: no fault Last local LDP TLV status sent: no fault Last remote LDP TLV status rcvd: no fault MPLS VC labels: local 23, remote 16 Group ID: local 0, remote 0 MTU: local 1500, remote 1500 Remote interface description: MAC Withdraw: sent:1, received:0 <---- MAC address withdrawal totals Sequencing: receive disabled, send disabled SSO Descriptor: 12.1.1.1/99, local label: 23 SSM segment/switch IDs: 16387/8193 (used), PWID: 8193 VC statistics: packet totals: receive 15, send 15 <---- packet totals byte totals: receive 1656, send 1986 <---- byte totals packet drops: receive 0, seq error 0, send 0 Router# clear mpls counters Clear "show mpls forwarding-table" counters [confirm] mpls forward counters cleared Router# show mpls l2transport vc detail Local interface: Et1/0 up, line protocol up, Ethernet up Destination address: 12.1.1.1, VC ID: 99, VC status: up Output interface: Se2/0, imposed label stack {21 16} Preferred path: not configured Default path: active Next hop: point2point Create time: 00:00:32, last status change time: 00:00:14 Signaling protocol: LDP, peer 12.1.1.1:0 up Targeted Hello: 11.1.1.1(LDP Id) -> 12.1.1.1 Status TLV support (local/remote) : enabled/supported Label/status state machine : established, LruRru Last local dataplane status rcvd: no fault Last local SSS circuit status rcvd: no fault Last local SSS circuit status sent: no fault Last local LDP TLV status sent: no fault Last remote LDP TLV status rcvd: no fault MPLS VC labels: local 23, remote 16 Group ID: local 0, remote 0 MTU: local 1500, remote 1500 Remote interface description: Sequencing: receive disabled, send disabled SSO Descriptor: 12.1.1.1/99, local label: 23 SSM segment/switch IDs: 16387/8193 (used), PWID: 8193 VC statistics: packet totals: receive 0, send 0 <---- packet totals byte totals: receive 0, send 0 <---- byte totals packet drops: receive 0, seq error 0, send 0 clear mpls ip iprm countersTo clear the IP Rewrite Manager (IPRM) counters, use the clear mpls ip iprm counters command in privileged EXEC mode. Command History
clear mpls ldp checkpointTo clear the checkpoint information from the Label Information Base (LIB) entries on the active Route Processor (RP) or PRE and to clear the LIB entries created by checkpointing on the standby RP or PRE, use the clear mpls ldp checkpoint command in privileged EXEC mode.
clear
mpls
ldp
checkpoint
[vrf vpn-name]
{network {mask | length} [longer-prefixes] | *}
[incomplete]
Cisco 10000 Series Routers
clear
mpls
ldp
checkpoint
{network {mask | length} [longer-prefixes] | *}
[incomplete]
Syntax Description
Usage GuidelinesUse this command only when Cisco support personnel recommend it as a means of rectifying a problem. On the active RP or PRE, this command does the following:
On the standby RP or PRE, this command deletes all of the LIB entries created by checkpointing. clear mpls ldp neighborTo forcibly reset a label distribution protocol (LDP) session, use the clear mpls ldp neighbor command in privileged EXEC mode. Syntax Description
Command History
Usage GuidelinesThe clear mpls ldp neighbor command terminates the specified LDP sessions. The LDP sessions should be reestablished if the LDP configuration remains unchanged. You can clear an LDP session for an interface-specific label space of an LSR by issuing the no mpls ip command and then the mpls ip command on the interface associated with the LDP session. ExamplesThe following example resets an LDP session:
Router# clear mpls ldp neighbor 10.12.12.12
To verify the results of the clear mpls ldp neighbor command, enter the show mpls ldp neighbor command. Notice the value in the "Up time" field.
Router# show mpls ldp neighbor 10.12.12.12
Peer LDP Ident: 10.12.12.12:0; Local LDP Ident 10.13.13.13:0
TCP connection: 10.12.12.12.646 - 10.13.13.13.15093
State: Oper; Msgs sent/rcvd: 142/138; Downstream
Up time: 02:16:28
LDP discovery sources:
Serial1/0, Src IP addr: 10.0.0.2
Addresses bound to peer LDP Ident:
10.0.0.129 10.12.12.12 10.0.0.2 10.1.0.5
10.7.0.1
Then enter the following clear mpls ldp neighbor 12.12.12.12 command. With mpls ldp logging configured, the easiest way to verify the clear mpls ldp neighbor command is to monitor the LDP log messages.
Router# clear mpls ldp neighbor 10.12.12.12
1w1d: %LDP-5-CLEAR_NBRS: Clear LDP neighbors (10.12.12.12) by console
1w1d: %LDP-5-NBRCHG: LDP Neighbor 10.12.12.12:0 is DOWN
1w1d: %LDP-5-NBRCHG: LDP Neighbor 10.12.12.12:0 is UP
Reenter the show mpls ldp neighbor 10.12.12.12 command. Notice that the "Up time" value has been reset.
Router# show mpls ldp neighbor 10.12.12.12
Peer LDP Ident: 10.12.12.12:0; Local LDP Ident 10.13.13.13:0
TCP connection: 10.12.12.12.646 - 10.13.13.13.15095
State: Oper; Msgs sent/rcvd: 125/121; Downstream
Up time: 00:00:05
LDP discovery sources:
Serial1/0, Src IP addr: 10.0.0.2
Addresses bound to peer LDP Ident:
10.0.0.129 10.12.12.12 10.0.0.2 10.1.0.5
10.7.0.1
The following example resets all LDP sessions:
Router# clear mpls ldp neighbor *
clear mpls traffic-eng auto-bw timersTo reinitialize the automatic bandwidth adjustment feature on a platform, use the clear mpls traffic-eng auto-bw timers command in user EXEC mode. Command History
Usage GuidelinesFor each tunnel for which automatic bandwidth adjustment is enabled, the platform maintains information about sampled output rates and the time remaining until the next bandwidth adjustment. The clear mpls traffic-eng auto-bw timers command clears this information for all such tunnels. The effect is as if automatic bandwidth adjustment had just been enabled for the tunnels. ExamplesThe following example shows how to clear information about sampled output rates and the time remaining until the next bandwidth adjustment:
Router# clear mpls traffic-eng auto-bw timers
Clear mpls traffic engineering auto-bw timers [confirm]
Related Commands
clear mpls traffic-eng auto-tunnel mesh tunnelTo remove an autotunnel mesh interface and then re-create it, use the clear mpls traffic-eng auto-tunnel mesh tunnel command in privileged EXEC mode. Command History
Usage GuidelinesThe software no longer supports using the clear mpls traffic-eng auto-tunnel mesh command to remove all autotunnel mesh interfaces. Use the no mpls traffic-eng auto-tunnel mesh global configuration command to remove all autotunnel mesh interfaces, or use the clear mpls traffic-eng auto-tunnel mesh tunnel tunnel-interface-number command to remove and re-create a particular tunnel interface. clear mpls traffic-eng auto-tunnel backup tunnelTo remove an autotunnel backup interface and then re-create it, use the clear mpls traffic-eng auto-tunnel backup tunnel command in privileged EXEC mode. Command History
Usage GuidelinesThe software no longer supports using the clear mpls traffic-eng auto-tunnel backup command to remove all autotunnel backup interfaces. Use the no mpls traffic-eng auto-tunnel backup global configuration command to remove all autotunnel backup interfaces, or use the clear mpls traffic-eng auto-tunnel backup tunnel tunnel-interface-number command to remove and re-create a particular tunnel interface. ExamplesThe following example shows how to remove an autotunnel backup interface and then re-create it:
Router# clear mpls traffic-eng auto-tunnel backup tunnel 2000
clear mpls traffic-eng auto-tunnel primary tunnelTo remove an autotunnel primary one-hop interface and then re-create it, use the clear mpls traffic-eng auto-tunnel primary tunnel command in privileged EXEC mode. Command History
Usage GuidelinesThe software no longer supports using the clear mpls traffic-eng auto-tunnel primary command to remove all autotunnel primary interfaces. Use the no mpls traffic-eng auto-tunnel primary onehop global configuration command to remove all autotunnel primary interfaces, or use the clear mpls traffic-eng auto-tunnel primary tunnel tunnel-interface-number command to remove and re-create a particular tunnel interface. clear mpls traffic-eng tunnel countersTo clear the counters for all Multiprotocol Label Switching (MPLS) traffic engineering tunnels, use the clear mpls traffic-eng tunnel counters command in privileged EXEC mode. Command History
Usage GuidelinesThis command allows you to set the MPLS traffic engineering tunnel counters to zero so that you can see changes to the counters easily. clear pw-udp vcTo clear pseudowire User Datagram Protocol (UDP) virtual circuit (VC) counter values, use the clear pw-udp vc command in privileged EXEC mode.
clear
pw-udp
vc
{min-vc max-vc | destination address vcid min-vc max-vc | vcid min-vc max-vc}
counters
clear xconnectTo remove xconnect attachment circuits and pseudowires, use the clear xconnect command in privileged EXEC mode. Syntax DescriptionExamplesThe following example shows how to remove all xconnect attachment circuits and pseudowires:
Router# clear xconnect all
02:13:56: Xconnect[ac:Et1/0.1(Eth VLAN)]: provisioning fwder with fwd_type=1, sss_role=1
02:13:56: Xconnect[mpls:10.1.1.2:1234000]: provisioning fwder with fwd_type=2, sss_role=2
02:13:56: Xconnect[ac:Et1/0.2(Eth VLAN)]: provisioning fwder with fwd_type=1, sss_role=2
02:13:56: Xconnect[mpls:10.1.1.2:1234001]: provisioning fwder with fwd_type=2, sss_role=1
02:13:56: Xconnect[ac:Et1/0.3(Eth VLAN)]: provisioning fwder with fwd_type=1, sss_role=1
02:13:56: Xconnect[mpls:10.1.2.2:1234002]: provisioning fwder with fwd_type=2, sss_role=2
02:13:56: Xconnect[ac:Et1/0.4(Eth VLAN)]: provisioning fwder with fwd_type=1, sss_role=2
02:13:56: Xconnect[mpls:10.1.2.2:1234003]: provisioning fwder with fwd_type=2, sss_role=1
02:13:56: MPLS peer 10.1.1.2 vcid 1234000, VC DOWN, VC state DOWN
02:13:56: MPLS peer 10.1.1.2 vcid 1234001, VC DOWN, VC state DOWN
02:13:56: MPLS peer 10.1.2.2 vcid 1234002, VC DOWN, VC state DOWN
02:13:56: MPLS peer 10.1.2.2 vcid 1234003, VC DOWN, VC state DOWN
02:13:56: XC AUTH [Et1/0.1, 1001]: Event: start xconnect authorization, state changed from IDLE to AUTHORIZING
02:13:56: XC AUTH [Et1/0.1, 1001]: Event: found xconnect authorization, state changed from AUTHORIZING to DONE
02:13:56: XC AUTH [Et1/0.3, 1003]: Event: start xconnect authorization, state changed from IDLE to AUTHORIZING
02:13:56: XC AUTH [Et1/0.3, 1003]: Event: found xconnect authorization, state changed from AUTHORIZING to DONE
02:13:56: XC AUTH [10.1.1.2, 1234001]: Event: start xconnect authorization, state changed from IDLE to AUTHORIZING
02:13:56: XC AUTH [10.1.1.2, 1234001]: Event: found xconnect authorization, state changed from AUTHORIZING to DONE
02:13:56: XC AUTH [10.1.2.2, 1234003]: Event: start xconnect authorization, state changed from IDLE to AUTHORIZING
02:13:56: XC AUTH [10.1.2.2, 1234003]: Event: found xconnect authorization, state changed from AUTHORIZING to DONE
02:13:56: XC AUTH [Et1/0.1, 1001]: Event: free xconnect authorization request, state changed from DONE to END
02:13:56: XC AUTH [Et1/0.3, 1003]: Event: free xconnect authorization request, state changed from DONE to END
02:13:56: XC AUTH [10.1.1.2, 1234001]: Event: free xconnect authorization request, state changed from DONE to END
02:13:56: XC AUTH [10.1.2.2, 1234003]: Event: free xconnect authorization request, state changed from DONE to END
02:13:56: MPLS peer 10.1.1.2 vcid 1234001, VC UP, VC state UP
02:13:56: MPLS peer 10.1.2.2 vcid 1234003, VC UP, VC state UP
02:13:56: MPLS peer 10.1.1.2 vcid 1234000, VC UP, VC state UP
02:13:56: MPLS peer 10.1.2.2 vcid 1234002, VC UP, VC state UP
The following example shows how to remove all the xconnects associated with peer router 10.1.1.2:
Router# clear xconnect peer 10.1.1.2 all
02:14:08: Xconnect[ac:Et1/0.1(Eth VLAN)]: provisioning fwder with fwd_type=1, sss_role=1
02:14:08: Xconnect[mpls:10.1.1.2:1234000]: provisioning fwder with fwd_type=2, sss_role=2
02:14:08: Xconnect[ac:Et1/0.2(Eth VLAN)]: provisioning fwder with fwd_type=1, sss_role=2
02:14:08: Xconnect[mpls:10.1.1.2:1234001]: provisioning fwder with fwd_type=2, sss_role=1
02:14:08: MPLS peer 10.1.1.2 vcid 1234000, VC DOWN, VC state DOWN
02:14:08: MPLS peer 10.1.1.2 vcid 1234001, VC DOWN, VC state DOWN
02:14:08: XC AUTH [Et1/0.1, 1001]: Event: start xconnect authorization, state changed from IDLE to AUTHORIZING
02:14:08: XC AUTH [Et1/0.1, 1001]: Event: found xconnect authorization, state changed from AUTHORIZING to DONE
02:14:08: XC AUTH [10.1.1.2, 1234001]: Event: start xconnect authorization, state changed from IDLE to AUTHORIZING
02:14:08: XC AUTH [10.1.1.2, 1234001]: Event: found xconnect authorization, state changed from AUTHORIZING to DONE
02:14:08: XC AUTH [Et1/0.1, 1001]: Event: free xconnect authorization request, state changed from DONE to END
02:14:08: XC AUTH [10.1.1.2, 1234001]: Event: free xconnect authorization request, state changed from DONE to END
02:14:08: MPLS peer 10.1.1.2 vcid 1234001, VC UP, VC state UP
02:14:08: MPLS peer 10.1.1.2 vcid 1234000, VC UP, VC state UP
The following example shows how to remove the xconnects associated with peer router 10.1.1.2 and VC ID 1234001:
Router# clear xconnect peer 10.1.1.2 vcid 1234001
02:14:23: Xconnect[ac:Et1/0.2(Eth VLAN)]: provisioning fwder with fwd_type=1, sss_role=1
02:14:23: Xconnect[mpls:10.1.1.2:1234001]: provisioning fwder with fwd_type=2, sss_role=2
02:14:23: MPLS peer 10.1.1.2 vcid 1234001, VC DOWN, VC state DOWN
02:14:23: XC AUTH [Et1/0.2, 1002]: Event: start xconnect authorization, state changed from IDLE to AUTHORIZING
02:14:23: XC AUTH [Et1/0.2, 1002]: Event: found xconnect authorization, state changed from AUTHORIZING to DONE
02:14:23: XC AUTH [Et1/0.2, 1002]: Event: free xconnect authorization request, state changed from DONE to END
02:14:23: MPLS peer 10.1.1.2 vcid 1234001, VC UP, VC state UP
The following example shows how to remove the xconnects associated with Ethernet interface 1/0.1: Router# clear xconnect interface eth1/0.1 02:14:48: Xconnect[ac:Et1/0.1(Eth VLAN)]: provisioning fwder with fwd_type=1, sss_role=2 02:14:48: Xconnect[mpls:10.1.1.2:1234000]: provisioning fwder with fwd_type=2, sss_role=1 02:14:48: MPLS peer 10.1.1.2 vcid 1234000, VC DOWN, VC state DOWN 02:14:48: XC AUTH [10.1.1.2, 1234000]: Event: start xconnect authorization, state changed from IDLE to AUTHORIZING 02:14:48: XC AUTH [10.1.1.2, 1234000]: Event: found xconnect authorization, state changed from AUTHORIZING to DONE 02:14:48: XC AUTH [10.1.1.2, 1234000]: Event: free xconnect authorization request, state changed from DONE to END 02:14:48: MPLS peer 10.1.1.2 vcid 1234000, VC UP, VC state UP connect (Frame Relay)To define connections between Frame Relay permanent virtual circuits (PVCs), use the connect command in global configuration mode. To remove connections, use the no form of this command.
connect
connection-name
interface
dlci
{I interface dlci | l2transport}
no
connect
connection-name
interface
dlci
{interface dlci | l2transport}
Syntax Description
Command History
Usage GuidelinesWhen Frame Relay switching is enabled, the connect command creates switched PVCs in Frame Relay networks. ExamplesThe following example shows how to define a connection called frompls1 with DLCI 100 on serial interface 5/0. connect frompls1 Serial5/0 100 l2transport The following example shows how to enable Frame Relay switching and define a connection called one between DLCI 16 on serial interface 0 and DLCI 100 on serial interface 1. frame-relay switching connect one serial0 16 serial1 100 connect (L2VPN local switching)To create Layer 2 data connections between two ports on the same router, use the connect command in global configuration mode. To remove such connections, use the no form of this command. Syntax for 12.0S, 12.2S and 12.4T Releases
connect
connection-name
type
number
circuit-id
[dlci | pvc | pvp]
type
number
circuit-id
[dlci | pvc | pvp]
[interworking ip | ethernet]
no
connect
connection-name
type
number
circuit-id
[dlci | pvc | pvp]
type
number
circuit-id
[dlci | pvc | pvp]
[interworking ip | ethernet]
Syntax for Cisco IOS XE Release 2.5 and Later Releases
connect
connection-name
type
number
type
number
no
connect
connection-name
type
number
type
number
Syntax Description
Command History
ExamplesThe following example shows an Ethernet interface configured for Ethernet, plus an ATM interface configured for AAL5 Subnetwork Access Protocol (SNAP) encapsulation. The connect command allows local switching between these two interfaces and specifies the interworking type as IP mode. Router(config)# interface atm 0/0/0 Router(config-if)# pvc 0/100 l2transport Router(cfg-if-atm-l2trans-pvc)# encapsulation aal5snap Router(config)# interface fastethernet 6/0/0.1 Router(config-subif)# encapsulation dot1q 100 Router(config)# connect atm-eth-con atm 0/0/0 0/100 fastethernet 6/0/0.1 interworking ip context
To associate a Simple Network Management Protocol (SNMP) context with a particular VPN routing and forwarding (VRF) instance, use the context command in VRF configuration mode. To disassociate an SNMP context from a VPN, use the no form of this command. Command History
Usage GuidelinesBefore you use the context command to associate an SNMP context with a VPN, you must do the following:
SNMP contexts provide VPN users with a secure way of accessing MIB data. When a VPN is associated with a context, MIB data for that VPN exists in that context. Associating a VPN with a context helps service providers to manage networks with multiple VPNs. Creating and associating a context with a VPN enables a provider to prevent the users of one VPN from accessing information about other VPN users on the same networking device. A route distinguisher (RD) is required to configure an SNMP context. An RD creates routing and forwarding tables and specifies the default route distinguisher for a VPN. The RD is added to the beginning of an IPv4 prefix to make it globally unique. An RD is either an autonomous system number (ASN) relative, which means that it is composed of an autonomous system number and an arbitrary number, or an IP address relative and is composed of an IP address and an arbitrary number. ExamplesThe following example shows how to create an SNMP context named context1 and associate the context with the VRF named vrf1: Router(config)# snmp-server context context1 Router(config)# ip vrf vrf1 Router(config-vrf)# rd 100:120 Router(config-vrf)# context context1 Related Commands
control-wordTo enable the Multiprotocol Label Switching (MPLS) control word in an Any Transport over MPLS (AToM) dynamic pseudowire connection, use the control-word command in pseudowire class configuration mode. To set the control word to autosense mode, use the default control-word command. To disable the control word, use the no form of this command. Usage GuidelinesIf the MPLS control word is enabled for a static pseudowire and you disable it at the xconnect level, any option set by the pseudowire class is disabled. ExamplesThe following example shows how to enable the control word in an AToM dynamic pseudowire connection: Router# configure terminal Router(config)# pseudowire-class cw-enable Router(config-pw-class)# encapsulation mpls Router(config-pw-class)# control-word Router(config-pw-class)# exit The following example shows how to enable the control word in an AToM dynamic pseudowire connection and set it to autosense mode: Router# configure terminal Router(config)# pseudowire-class cw-enable Router(config-pw-class)# encapsulation mpls Router(config-pw-class)# default control-word Router(config-pw-class)# exit Related Commands
description (l2 vfi)To provide a description of the switching provider edge (PE) router for an L2VPN multisegment pseudowire, use the description command in L2 VFI configuration mode. To remove the description, use the no form of this command. © 2012 Cisco Systems, Inc. All rights reserved.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|