Configuration Tasks
This section describes how to configure the Gigabit Ethernet and Fast Ethernet SPAs and verify the configuration. For information about managing your system images and configuration files, refer to the following:
Required Configuration Tasks
This section lists the required configuration steps to configure the Gigabit Ethernet SPAs. Some of the required configuration commands implement default values that might be appropriate for your network. If the default value is correct for your network, then you do not need to configure the command. These commands are indicated by “(As Required)” in the Purpose column.
To configure the Fast Ethernet or Gigabit Ethernet SPAs, complete the following steps:
SUMMARY STEPS
- Router# configure terminal
- Do one of the following:
- Router(config)# interface gigabitethernet slot /subslot /port. subinterface-number ]
- Router(config)# interface tengigabitethernet slot /subslot /port. subinterface-number ]
- Router(config-if)# ip address ip-address mask {secondary } | dhcp {client-id interface-name }{hostname host-name }]
- Router(config-if)# mtu bytes
- Router(config-if)# standby [group-number ] ip [ip-address [secondary ]]
- Router(config-if)# no shutdown
DETAILED STEPS
Command or Action | Purpose | |
---|---|---|
Step 1 |
Router# configure terminal |
Enters global configuration mode. |
Step 2 |
Do one of the following:
Example:
Example:
|
Specifies the Gigabit Ethernet, Ten Gigabit Ethernet, or Fast Ethernet interface to configure, where:
|
Step 3 |
Router(config-if)# ip address ip-address mask {secondary } | dhcp {client-id interface-name }{hostname host-name }] |
Sets a primary or secondary IP address for an interface that is using IPv4, where:
|
Step 4 |
Router(config-if)# mtu bytes |
(As Required) Specifies the maximum packet size for an interface, where:
The default is 1500 bytes; the range is 1500 to 9216. |
Step 5 |
Router(config-if)# standby [group-number ] ip [ip-address [secondary ]] |
(Required for HSRP Configuration Only) Creates (or enables) the HSRP group using its number and virtual IP address, where:
This command enables HSRP but does not configure it further. For additional information on configuring HSRP, refer to the HSRP section of the Cisco IP Configuration Guide publication that corresponds to your Cisco IOS software release. |
Step 6 |
Router(config-if)# no shutdown |
Enables the interface. |
Specifying the Interface Address on a SPA
SPA interface ports begin numbering with “0” from left to right. Single-port SPAs use only the port number 0. To configure or monitor SPA interfaces, you need to specify the physical location of the SIP, SPA, and interface in the CLI. The interface address format is slot/ subslot/ port , where:
-
slot—Specifies the chassis slot number in the Cisco ASR 1000 Series Router where the SIP is installed.
-
subslot—Specifies the secondary slot of the SIP where the SPA is installed.
-
port—Specifies the number of the individual interface port on a SPA.
The following example shows how to specify the first interface (0) on a SPA installed in the first subslot of a SIP (0) installed in chassis slot 0:
Router(config)# interface GigabitEthernet 0/0/0
interface GigabitEthernet0/0/0
no ip address
shutdown
negotiation auto
no cdp enable
Modifying the MAC Address on an Interface
The Gigabit Ethernet SPAs use a default MAC address for each port that is derived from the base address that is stored in the electrically erasable programmable read-only memory (EEPROM) on the backplane of the Cisco ASR 1000 Series Routers.
To modify the default MAC address of an interface to some user-defined address, use the following command in interface configuration mode:
Command |
Purpose |
---|---|
Router(config-if)# mac-address ieee-address |
Modifies the default MAC address of an interface to some user-defined address, where:
|
To return to the default MAC address on the interface, use the no form of the command.
Verifying a MAC Address
To verify the MAC address of an interface, use the show interfaces gigabitethernet privileged EXEC command and observe the value shown in the “address is” field.
The following example shows that the MAC address is 000a.f330.2e40 for interface 1 on the SPA installed in subslot 0 of the SIP installed in slot 2 of the Cisco ASR 1000 Series Routers:
Router# show interfaces gigabitethernet 2/0/1
GigabitEthernet2/0/1 is up, line protocol is up
Hardware is SPA-1X10GE-L-V2, address is 000a.f330.2e40 (bia 000a.f330.2e40)
Internet address is 2.2.2.1/24
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive not supported
Full-duplex, 1000Mb/s, link type is force-up, media type is SX
output flow-control is on, input flow-control is on
(Additional output removed for readability)
Gathering MAC Address Accounting Statistics
The ip accounting mac-address [input | output ] command can be entered to enable MAC Address Accounting on an interface. After enabling MAC Address Accounting, MAC address statistics can be displayed by entering the show interfaces mac-accounting command.
Configuring the Hot Standby Router Protocol
The Hot Standby Router Protocol (HSRP) provides high network availability because it routes IP traffic from hosts without relying on the availability of any single router. HSRP is used in a group of routers for selecting an active router and a standby router. (An active router is the router of choice for routing packets; a standby router is a router that takes over the routing duties when an active router fails, or when preset conditions are met).
HSRP is enabled on an interface by entering the standby [group-number ] ip [ip-address [secondary ]] command. The standby command is also used to configure various HSRP elements. This document does not discuss more complex HSRP configurations. For additional information on configuring HSRP, refer to the HSRP section of the Cisco IP Configuration Guide publication that corresponds to your Cisco IOS XE software release. In the following HSRP configuration, standby group 2 on Gigabit Ethernet port 2/1/0 is configured at a priority of 110 and is also configured to have a preemptive delay should a switchover to this port occur:
Router(config)#
interface GigabitEthernet 2/1/0
Router(config-if)#
standby 2 ip 120.12.1.200
Router(config-if)#
standby 2 priority 110
Router(config-if)#
standby 2 preempt
Verifying HSRP
To verify the HSRP information, use the show standby command in EXEC mode:
Router# show standby
Ethernet0 - Group 0
Local state is Active, priority 100, may preempt
Hellotime 3 holdtime 10
Next hello sent in 0:00:00
Hot standby IP address is 198.92.72.29 configured
Active router is local
Standby router is 198.92.72.21 expires in 0:00:07
Standby virtual mac address is 0000.0c07.ac00
Tracking interface states for 2 interfaces, 2 up:
UpSerial0
UpSerial1
Modifying the Interface MTU Size
The Cisco IOS software supports three different types of configurable maximum transmission unit (MTU) options at different levels of the protocol stack:
- Interface MTU—Checked by the SPA on traffic coming in from the network. Different interface types support different interface MTU sizes and defaults. The interface MTU defines the maximum packet size allowable (in bytes) for an interface before drops occur. If the frame is smaller than the interface MTU size, but is not smaller than the minimum frame size for the interface type (such as 64 bytes for Ethernet), then the frame continues to process.
- IP MTU—Can be configured on an interface or subinterface. If an IP packet exceeds the IP MTU size, then the packet is fragmented.
- Tag or Multiprotocol Label Switching (MPLS) MTU—Can be configured on an interface or subinterface and allows up to six different labels, or tag headers, to be attached to a packet. The maximum number of labels is dependent on your Cisco IOS software release.
Different encapsulation methods and the number of MPLS MTU labels add additional overhead to a packet. For example, Subnetwork Access Protocol (SNAP) encapsulation adds an 8-byte header, dot1q encapsulation adds a 2-byte header, and each MPLS label adds a 4-byte header (n labels x 4 bytes).
For Gigabit Ethernet SPAs on the Cisco ASR 1000 Series Aggregation Services Routers, the default MTU size is 1500 bytes. The maximum configurable MTU is 9216 bytes. The SPA automatically adds an additional 22 bytes to the configured MTU size to accommodate some of the additional overhead.
Note |
In the Cisco ASR 1000 Series Route Processor 1 (RP1), 2RU and 2RU-Fixed chassis, the MTU size for the Management Ethernet interface (interface gigabitethernet 0) is limited to 2370 bytes. |
Interface MTU Configuration Guidelines
When configuring the interface MTU size on a Gigabit Ethernet SPA on a Cisco ASR 1000 Series Routers, consider the following guidelines:
-
The default interface MTU size accommodates a 1500-byte packet, plus 22 additional bytes to cover the following additional
overhead:
- Layer 2 header—14 bytes
- Dot1q header—4 bytes
- CRC—4 bytes
- If you are using MPLS, be sure that the mpls mtu command is configured for a value less than or equal to the interface MTU.
- If you are using MPLS labels, then you should increase the default interface MTU size to accommodate the number of MPLS labels. Each MPLS label adds 4 bytes of overhead to a packet.
Interface MTU Configuration Task
To modify the MTU size on an interface, use the following command in interface configuration mode:
Command |
Purpose |
---|---|
Router(config-if)# mtu bytes |
Configures the maximum packet size for an interface, where:
The default is 1500 bytes and the maximum configurable MTU is 9216 bytes. |
To return to the default MTU size, use the no form of the command.
Verifying the MTU Size
To verify the MTU size for an interface, use the show interfaces gigabitethernet privileged EXEC command and observe the value shown in the “MTU” field.
The following example shows an MTU size of 1500 bytes for interface port 1 (the second port) on the Gigabit Ethernet SPA installed in the top subslot (0) of the SIP that is located in slot 2 of the Cisco ASR 1000 Series Routers:
Router# show interfaces gigabitethernet 2/0/1
GigabitEthernet2/0/1 is up, line protocol is up
Hardware is SPA-1X10GE-L-V2, address is 000a.f330.2e40 (bia 000a.f330.2e40)
Internet address is 2.2.2.1/24
MTU 1500 bytes
, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive not supported
QoS Classification
The physical level interface module (PLIM) is the hardware component in the data path between the media interface and the forwarding engine.
Use the following commands in interface configuration mode to configure QoS:
Command |
Purpose |
---|---|
Router(config-if)# plim qos input map ip {precedence-based | precedence precedence-value queue low-latency } |
Classifies incoming IP traffic according to the value of the IP precedence bits and places the traffic into the appropriate queue.
Use the no form of the command to remove the configured values. |
Router(config-if)# plim qos input map ipv6 all queue low-latency | 0 |
Classifies all IPv6 packets as high or low priority.
The no form of this command disables all IPv6 classification By default, without using this command, the command is disabled. |
Router(config-if)# plim qos input map ipv6 tc [tc-value | tc-range ] queue low-latency | 0 |
Classifies ingress IPv6 traffic based on the value of the traffic-class bits and places the traffic into the appropriate queue.
The no form of this command sets the classification according to default DSCP EF. By default, IPv6 traffic with a traffic-class value equal to ef uses the high-priority queue and all other traffic uses the low-priority queue. Only the most significant six bits of the traffic-class octet is used for the classification. |
Router(config-if)# plim qos input map mpls all queue low-latency | 0 |
Classifies all MPLS packets as high or low priority.
The no form of this command disables MPLS classification. By default, without using this command, the command is disabled. |
Router(config-if)# plim qos input map mpls exp exp-value | exp-range queue low-latency | 0 |
Classifies incoming MPLS traffic according to the value of the exp bits and places the traffic into the appropriate queue.
By default, without using this command, the Gigabit Ethernet SPA classifies MPLS EXP range 6-7 as high priority. The no form of this command sets the classification according to default exp range 6-7. |
Router(config-if)# plim qos input queue low-latency | 0 pause [enable | threshold percent ] |
Enables Ethernet pause frame generation due to flow control status.
By default, without using the command, pause frame generation is enabled for low latency queue. The no form of this command disables pause generation for a queue. |
Router(config-if)# plim qos input [bandwidth value_in_Kbps [low-latency]] [weight weight ] |
Specifies the whole port, regardless of priority, or specifies priority only (low-latency ) to receive minimum bandwidth guarantee, what minimum bandwidth is demanded, and what weight value is assigned for the excess scheduling. The default mode (without using this command) is that minimum scheduling is off and only excess scheduling is in service, which uses default weight proportional to the interface bandwidth. The no form of this command sets the interface to the default minimum bandwidth and weight. |
Port-Level or Physical-Level QoS Classification
Use the following commands for port or physical level classification:
Command |
Purpose |
---|---|
Router(config-if)# plim qos input map ip all queue low-latency | 0 |
Allows user to specify all IPv4 packets as high or low priority.
The no form of this command disables all IPv4 classification. By default, without using this command, the command is disabled. |
Router(config-if)# plim qos input map ip dscp-based |
Enables IP DSCP-based classification. By default, without using this command, the Gigabit Ethernet SPA enables IP precedence-based classification for the Cisco ASR 1000 Series Aggregation Services Routers. ]The no form of this command totally disables the IP DSCP-based classification. |
Router(config-if)# plim qos input map ip dscp dscp-value | dscp-range queue low-latency | 0 |
Allows the user to specify an IP DSCP value or range.
By default, without this command, the Gigabit Ethernet SPA classifies DSCP cs6-cs7 as high priority. The no form of this command removes the IP DSCP value or range. |
Configuring the Encapsulation Type
By default, the interfaces on the Gigabit Ethernet SPAs support Advanced Research Projects Agency (ARPA) encapsulation. They do not support configuration of service access point or SNAP encapsulation for transmission of frames; however, the interfaces will properly receive frames that use service access point and SNAP encapsulation.
The only other encapsulation supported by the SPA interfaces is IEEE 802.1Q encapsulation for virtual LANs (VLANs).
Configuring the Autonegotiation on an Interface
Fast Ethernet and Gigabit Ethernet interfaces use a connection-setup algorithm called autonegotiation. Autonegotiation allows the local and remote devices to configure compatible settings for communication over the link. Using autonegotiation, each device advertises its transmission capabilities and then agrees upon the settings to be used for the link.
For the Gigabit Ethernet interfaces on the Cisco ASR 1000 Series Aggregation Services Routers, flow control is autonegotiated when autonegotiation is enabled. Autonegotiation is enabled by default.
The following guidelines should be followed regarding autonegotiation:
- If autonegotiation is disabled on one end of a link, it must be disabled on the other end of the link. If one end of a link has autonegotiation disabled while the other end of the link does not, the link will not come up properly on both ends.
- Autonegotiation is not supported on the 10-Port Gigabit Ethernet SPA on the Cisco ASR1000-SIP10.
- Flow control is enabled by default.
- Flow control will be on if autonegotiation is disabled on both ends of the link.
Disabling Autonegotiation
Autonegotiation is automatically enabled and can be disabled on the Fast Ethernet and Gigabit Ethernet interfaces on the Cisco ASR1000-SIP10. During autonegotiation, advertisement for flow control, speed, and duplex occurs, depending on the media (fiber or copper) in use. If the interface is connected to a link that has autonegotiation disabled, autonegotiation should either be re-enabled on the other end of the link or disabled on the Fast Ethernet or Gigabit Ethernet SPA, if possible. Both ends of the link will not come up properly if only one end of the link has disabled autonegotiation.
Speed and duplex configurations can be advertised using autonegotiation. However, the only values that are negotiated are:
- For Fast Ethernet SPAs—100 Mbps for speed and full-duplex mode.
- For Gigabit Ethernet SPAs using RJ-45 copper interfaces—1000 Mbps for speed and full-duplex mode. Link speed is not negotiated when using fiber interfaces.
From a user's perspective, these settings are not really negotiated, but rather are enabled using autonegotiation. The SFPs for Gigabit Ethernet SPAS support 1000Base-X, and the IEEE 1000Base-X standard for fiber does not support negotiation of link speed.
To disable autonegotiation, use the following command in interface configuration mode:
Command |
Purpose |
---|---|
Router(config-if)# no negotiation auto |
Disables autonegotiation on Fast Ethernet or Gigabit Ethernet SPA interfaces on the Cisco ASR1000-SIP10. No advertisement of flow control occurs. |
Configuring Speed and Duplex
When autonegotiation is turned off on Fast Ethernet or the RJ-45 interface in the 2-Port Gigabit Ethernet SPA, you can manually specify the speed and duplex configuration.
Note |
When using the SFP-GE-T, you must configure both the speed and duplex modes. |
Note |
On the Cisco ASR 1002-X Router, the copper SFP port's flow control is on, regardless of the duplex setting. In contrast, on the Cisco ASR 1002 Router, the copper SFP port's flow control is off when the duplex setting is Half. |
To configure the speed for a Fast Ethernet or Gigabit Ethernet interface, use the speed command in interface configuration mode. To return to the default setting, use the no form of this command:
Command |
Purpose |
---|---|
Router(config-if)# speed {10 | 100 | 1000 } |
Configures the interface to transmit at 10 Mbps, 100 Mbps, or 1000 Mbps. (The 1000 keyword is only valid for Gigabit Ethernet.) |
To configure duplex operation on an interface, use the duplex command in interface configuration mode. Use the no form of this command to return to the default value.
Command |
Purpose |
---|---|
Router(config-if)# duplex {full | half } |
Specifies full- or half-duplex operation. |
Configuring the Media Type
The 2-Port Gigabit Ethernet SPA supports RJ-45 and fiber ports. Use the media-type configuration command to select either the RJ-45 or fiber media for a given port.
Command |
Purpose |
---|---|
Router(config-if)# media-type {10baset | 100baset | rj45 | gbic } |
Specifies the physical connection on an interface. |
Enabling Autonegotiation
To re-enable autonegotiation on a Fast Ethernet or Gigabit Ethernet interface, use the following command in interface configuration mode:
Command |
Purpose |
---|---|
Router(config-if)# negotiation auto |
Enables autonegotiation on a Fast Ethernet SPA interface on a Cisco ASR1000-SIP10 or a Gigabit Ethernet SPA interface on the Cisco ASR1000-SIP10. Advertisement of flow control occurs. |
Configuring a Subinterface on a VLAN
Note |
You can configure no more than 8100 802.1Q VLAN subinterfaces per Ethernet SPA in software releases prior to Cisco IOS XE Release 2.5. Beginning in Cisco IOS XE Release 2.5, you can use the hw-module subslot ethernet vlan unlimited command to increase the system default and enable support for configuration of up to 4094 dot1q VLANs per port per SPA. The default is 8100 VLANs. |
You can configure subinterfaces on the Fast Ethernet SPA interfaces and Gigabit Ethernet SPA interfaces on a VLAN using IEEE 802.1Q encapsulation. Cisco Discovery Protocol (CDP) is disabled by default on the 2-Port Gigabit Ethernet SPA interfaces and subinterfaces on the Cisco ASR1000-SIP10.
To configure a SPA subinterface on a VLAN, use the following commands beginning in global configuration mode:
SUMMARY STEPS
- Router(config)# hw-module subslot slot / subslot ethernet vlan unlimited
- Do one of the following:
- Router(config)# interface gigabitethernet slot /subslot /port. subinterface-number
- Router(config)# interface tengigabitethernet slot /subslot /port. subinterface-number
- Router(config-subif)# encapsulation dot1q vlan-id
- Router(config-if)# ip address ip-address mask [secondary ]
DETAILED STEPS
Command or Action | Purpose | |
---|---|---|
Step 1 |
Router(config)# hw-module subslot slot / subslot ethernet vlan unlimited |
(Optional) Enables configuration of up to 4094 dot1q VLANs per port per Ethernet SPA, where:
|
Step 2 |
Do one of the following:
|
Specifies the Gigabit Ethernet interface to configure, where:
|
Step 3 |
Router(config-subif)# encapsulation dot1q vlan-id |
Defines the encapsulation format as IEEE 802.1Q (“dot1q”), where vlan-id is the number of the VLAN (1–4094). |
Step 4 |
Router(config-if)# ip address ip-address mask [secondary ] |
Sets a primary or secondary IP address for an interface, where:
|
VLAN Classification
Note |
When the hw-module subslot ethernet vlan unlimited command is configured, the default classification of CoS bits 6-7 as high priority is still supported. However, other user-defined CoS values for high and low priority classification using the plim qos input map cos queue command are not supported. |
Addition of Warning Message when Enabling VLAN Scale Configuration
Effective from Cisco IOS XE Release 2.1.0S, a warning message is displayed when enabling VLAN Scale configuration.
Previous Behavior
When VLAN scale configuration is enabled using the hw-module subslot slot/subslot ethernet vlan unlimited command, the VLAN custom COS configurations are lost. However, an informational message was not displayed.
New Behavior
Effective from Cisco IOS XE Release 2.1.0S a warning message has been introduced when VLAN scale configuration is enabled using the hw-module subslot slot/subslot ethernet vlan unlimited command, suggesting that VLAN COS bits classification will be lost.
The following is a sample output of hw-module subslot slot/subslot ethernet vlan unlimited command displaying a warning message.
Router(config)# hw-module subslot 1/3 ethernet vlan unlimited
%VLAN input classification in subslot 1/3 will not be available.
To specify VLAN classification, use the following commands in subinterface configuration mode:
Command |
Purpose |
---|---|
Router(config-subif)# plim qos input map cos enable |
Enables packet classification based on 802.1q VLAN COS bits. By default, this command is enabled on the Gigabit Ethernet SPA. The no form of this command totally disables the COS classification. The command is used in the dot1q subinterface configuration mode which can be either under the main physical interface or the Gigabit EtherChannel (GEC) link bundle. |
Router(config-subif)# plim qos input map cos cos-value | cos-range queue low-latency | 0 |
Allows the user to specify which COS value or range for high priority (low-latency ) or low priority (0 ). By default, without this command, COS value 6-7 is classified as high priority. Only the default behavior is supported when the hw-module subslot ethernet vlan unlimited command is configured. The no form of this command sets the classification according to the default value (COS priority value 6-7). This command is in the VLAN subinterface configuration mode under either the main physical interface or the GEC link bundle. |
Verifying Subinterface Configuration on a VLAN
To verify the configuration of a subinterface and its status on the VLAN, use the show vlans privileged EXEC command.
The following example shows the status of subinterface number 1 on port 0 on the SPA in VLAN number 200:
Router# show vlans
VLAN ID:200 (IEEE 802.1Q Encapsulation)
Protocols Configured: Received: Transmitted:
IP 0 2
VLAN trunk interfaces for VLAN ID 200:
GigabitEthernet4/1/0.1 (200)
IP:12.200.21.21
Total 0 packets, 0 bytes input
Total 2 packets, 120 bytes output
Saving the Configuration
To save your running configuration to nonvolatile random-access memory (NVRAM), use the following command in privileged EXEC configuration mode:
Command |
Purpose |
---|---|
Router# copy running-config startup-config |
Writes the new configuration to NVRAM. |
For information about managing your system image and configuration files, refer to the Cisco IOS Configuration Fundamentals Configuration Guide and Cisco IOS Configuration Fundamentals Command Reference publications that correspond to your Cisco IOS software release.
Shutting Down and Restarting an Interface on a SPA
You can shut down and restart any of the interface ports on a SPA independently of each other. Shutting down an interface stops traffic and enters the interface into an “administratively down” state.
There are no restrictions for online insertion and removal (OIR) on Gigabit Ethernet SPAs. Gigabit Ethernet SPAs can be removed from a SIP at any time. SIPs populated with any type of SPAs can be removed from the router at any time.
If you are preparing for an OIR of a SPA, it is not necessary to independently shut down each of the interfaces prior to deactivation of the SPA. The hw-module subslot stop command automatically stops traffic on the interfaces and deactivates them along with the SPA in preparation for OIR.
In similar fashion, you do not need to independently restart any interfaces on a SPA after OIR of a SPA or SIP.
To shut down an interface on a SPA, use the following command in interface configuration mode:
Command |
Purpose |
---|---|
Router(config-if)# shutdown |
Disables an interface. |
To restart an interface on a SPA, use the following command in interface configuration mode:
Command |
Purpose |
---|---|
Router(config-if)# no shutdown |
Restarts a disabled interface. |