34
Configuring Interfaces
Configuring Ethernet Interfaces
Entering the
no port-type
or
default port-type
interface configuration command returns the port to the default state:
UNI for Fast Ethernet ports and NNI for Gigabit Ethernet ports.
This example shows how to change a port from a UNI to an NNI and save it to the running configuration.
Switch#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
interface fastethernet0/1
Switch(config-if)#
port-type nni
Switch(config-if)#
no shutdown
5d20h: %SYS-5-CONFIG_I: Configured from console by console
Switch(config-if)#
end
Switch#
copy running-config startup-config
Configuring Interface Speed and Duplex Mode
Ethernet interfaces on the switch operate at 10, 100, or 1000 Mbps and in either full- or half-duplex mode. In full-duplex
mode, two stations can send and receive traffic at the same time. Normally, 10-Mbps ports operate in half-duplex mode,
which means that stations can either receive or send traffic.
Switch models include combinations of Fast Ethernet (10/100-Mbps) ports, Gigabit Ethernet (10/100/1000-Mbps) ports,
and small form-factor pluggable (SFP) module slots supporting SFP modules.
These sections describe how to configure the interface speed and duplex mode:
Speed and Duplex Configuration Guidelines, page 34
Setting the Interface Speed and Duplex Parameters, page 35
Speed and Duplex Configuration Guidelines
When configuring an interface speed and duplex mode, note these guidelines:
You can configure interface speed on Fast Ethernet (10/100-Mbps) and Gigabit Ethernet (10/100/1000-Mbps)
ports. You can configure Fast Ethernet ports to full-duplex, half-duplex, or to autonegotiate mode. You can configure
Gigabit Ethernet ports to full-duplex mode or to autonegotiate. You also can configure Gigabit Ethernet ports to
half-duplex mode if the speed is 10 or 100 Mbps. Half-duplex mode is not supported on Gigabit Ethernet ports
operating at 1000 Mbps.
With the exception of when 1000BASE-T SFP modules are installed in the SFP module slots, you cannot configure
speed on SFP module ports, but you can configure speed to not negotiate (
nonegotiate
) if connected to a device
that does not support autonegotiation.
However, when a 1000BASE-T SFP module is in the SFP module slot, you can configure speed as 10, 100, or 1000
Mbps, or auto, but not as
nonegotiate
.
Command
Purpose
1.
configure terminal
Enter global configuration mode
2.
interface
interface-id
Specify the interface to configure, and enter interface configuration mode.
3.
no shutdown
Enable the port, if necessary. By default, UNIs and ENIs are disabled, and
NNIs are enabled.
4.
port-type
{
eni
|
nni
|
uni
}
Change a port to an ENI, NNI, or UNI.
5.
end
Return to privileged EXEC mode.
6.
show interfaces
interface-id
Verify the interface 802.3x flow control settings.
7.
copy running-config startup-config
(Optional) Save your entries in the configuration file.
Содержание IE 4000
Страница 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Страница 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Страница 108: ...104 Configuring Switch Clusters Additional References ...
Страница 128: ...124 Performing Switch Administration Additional References ...
Страница 130: ...126 Configuring PTP ...
Страница 140: ...136 Configuring CIP Additional References ...
Страница 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Страница 192: ...188 Configuring Switch Based Authentication Additional References ...
Страница 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Страница 274: ...270 Configuring SGT Exchange Protocol over TCP SXP and Layer 3 Transport Configuring Cisco TrustSec Caching ...
Страница 298: ...294 Configuring VLANs Additional References ...
Страница 336: ...332 Configuring STP Additional References ...
Страница 408: ...404 Configuring DHCP Additional References ...
Страница 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Страница 490: ...486 Configuring SPAN and RSPAN Additional References ...
Страница 502: ...498 Configuring Layer 2 NAT ...
Страница 559: ...555 Configuring Network Security with ACLs How to Configure Network Security with ACLs Creating a Numbered Extended ACL ...
Страница 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Страница 930: ...926 Configuring IP Unicast Routing Related Documents ...
Страница 956: ...952 Configuring IPv6 Unicast Routing Configuring IPv6 network 2010 AB8 2 48 network 2010 AB8 3 48 exit address family ...
Страница 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Страница 978: ...974 Dying Gasp ...
Страница 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Страница 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Страница 996: ...992 Ethernet CFM ...
Страница 1030: ...1026 Working with the Cisco IOS File System Configuration Files and Software Images Working with Software Images ...
Страница 1066: ...1062 Using an SD Card SD Card Alarms ...