Monitoring Interface Status
Commands entered at the privileged EXEC prompt display information about the interface, including the versions of the software and the hardware, the configuration, and statistics about the interfaces. Table 9-3 lists some of these interface monitoring commands. (You can display the full list of show commands by using the show ? command at the privileged EXEC prompt.) These commands are fully described in the Cisco IOS Interface Command Reference for Release 12.1.
Table 9-3 Show Commands for Interfaces
Command
Purpose
show interfaces [interface-id]
Display the status and configuration of all interfaces or a specific interface.
show interfaces interface-id status [err-disabled]
Display interface status or a list of interfaces in an error-disabled state.
show interfaces [interface-id] switchport
Display administrative and operational status of switching ports.
show interfaces [interface-id] description
Display the description configured on an interface or all interfaces and the interface status.
show ip interface [interface-id]
Display the usability status of all interfaces configured for IP routing or the specified interface.
show running-config interface [interface-id]
Display the running configuration in RAM for the interface.
show version
Display the hardware configuration, software version, the names and sources of configuration files, and the boot images.
show controllers ethernet-controller interface-id phy
Verify the operational state of the Auto-MDIX feature on the interface.
Clearing and Resetting Interfaces and Counters
Table 9-4 lists the privileged EXEC mode clear commands that you can use to clear counters and reset interfaces.
Table 9-4 Clear Commands for Interfaces
Command
Purpose
clear counters [interface-id]
Clear interface counters.
clear interface interface-id
Reset the hardware logic on an interface.
clear line [number console 0 vty number]
Reset the hardware logic on an asynchronous serial line.
To clear the interface counters shown by the show interfaces privileged EXEC command, use the clear counters privileged EXEC command. The clear counters command clears all current interface counters from the interface unless optional arguments are specified to clear only a specific interface type from a specific interface number.
Monday, December 17, 2007
Procedures for Configuring Interfaces These general instructions apply to all interface configuration processes.
--------------------------------------------------------------------------------
Step 1 Enter the configure terminal command at the privileged EXEC prompt:
Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z.Switch(config)# Step 2 Enter the interface global configuration command. Identify the interface type and the number of the connector. In this example, Gigabit Ethernet interface 0/1 is selected:
Switch(config)# interface gigabitethernet0/1 Switch(config-if)#
--------------------------------------------------------------------------------
Note You do not need to add a space between the interface type and interface number. For example, in the preceding line, you can specify either gigabitethernet 0/1, gigabitethernet0/1, gi 0/1, or gi0/1.
--------------------------------------------------------------------------------
Step 3 Follow each interface command with the interface configuration commands that the interface requires. The commands that you enter define the protocols and applications that will run on the interface. The commands are collected and applied to the interface when you enter another interface command or enter end to return to privileged EXEC mode.
You can also configure a range of interfaces by using the interface range or interface range macro global configuration commands. Interfaces configured in a range must be the same type and must be configured with the same feature options.
Step 4 After you configure an interface, verify its status by using the show privileged EXEC commands listed in the "Monitoring and Maintaining the Interfaces" section.
Step 1 Enter the configure terminal command at the privileged EXEC prompt:
Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z.Switch(config)# Step 2 Enter the interface global configuration command. Identify the interface type and the number of the connector. In this example, Gigabit Ethernet interface 0/1 is selected:
Switch(config)# interface gigabitethernet0/1 Switch(config-if)#
--------------------------------------------------------------------------------
Note You do not need to add a space between the interface type and interface number. For example, in the preceding line, you can specify either gigabitethernet 0/1, gigabitethernet0/1, gi 0/1, or gi0/1.
--------------------------------------------------------------------------------
Step 3 Follow each interface command with the interface configuration commands that the interface requires. The commands that you enter define the protocols and applications that will run on the interface. The commands are collected and applied to the interface when you enter another interface command or enter end to return to privileged EXEC mode.
You can also configure a range of interfaces by using the interface range or interface range macro global configuration commands. Interfaces configured in a range must be the same type and must be configured with the same feature options.
Step 4 After you configure an interface, verify its status by using the show privileged EXEC commands listed in the "Monitoring and Maintaining the Interfaces" section.
Subscribe to:
Comments (Atom)