cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Etc


Reference












.

hardware:cisco:interface.html



Cisco IOS, NX-OS

Cisco Interface Configuration Examples

Checking Interface

Operation Command Example
Host#sh int status
Host# show interfaces status
Host#show interfaces PORT status
Host#sh int status | i XXX
Host#show interfaces fa0/3 status
Router#show ip int brief
Host#show run interfaces INTERFACEHost#show run int fa0/0
Host#show interfaces
Host#show interfaces Interface
Host#show interfaces fastehternet 0/3




Setting Interface

Operation CommandExample
Host(config-if)#no shutdown
Host(config-if)#shutdown
Host(config-if)#description DISCRIPTION
Host(config)# default interface gi3/0/37
Host(config-if)#speed 10
Host(config-if)#speed 100
Host(config-if)#speed 1000
Host(config-if)#speed auto
Host(config-if)#duplex full
Host(config-if)#duplex half
Host(config-if)#duplex auto
Host(config-if)#mdix auto
Host(config-if)#no mdix auto
If you use mdix auto, you must “speed auto” and “duplex auto”

How to configure an interface to default settings

Example1
Host# conf t
Host(config)# default interface gi3/0/37
Host(config)# interface gi3/0/37
Host(config-if)#shutdown
Example2
Host# conf t
Host(config)# do sh int status | i 3/0/37
Host(config)# do sh run interface gi3/0/37

Host(config)# default interface gi3/0/37
Host(config)# interface gi3/0/37
Host(config-if)#shutdown

Host(config)# do sh int status | i 3/0/37
Host(config)# do sh run interface gi3/0/37




How to select Interfaces




hardware/cisco/interface.html.txt · Last modified: 2018/09/01 by admin