User Tools

Site Tools


shutdown_cisco_interface

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
shutdown_cisco_interface [2024/01/18 15:01] – created walkeradminshutdown_cisco_interface [2024/01/18 15:16] (current) – [Bring Up/Down more Interfaces] walkeradmin
Line 19: Line 19:
 \\  \\ 
 <file> <file>
-sh interfaces status 
- 
 Port      Name               Status       Vlan       Duplex  Speed Type Port      Name               Status       Vlan       Duplex  Speed Type
 Gi0/1     MNGT               notconnect   100          auto   auto 10/100/1000BaseTX Gi0/1     MNGT               notconnect   100          auto   auto 10/100/1000BaseTX
Line 46: Line 44:
 Gi0/23    ENCtoMuxPri        connected    100        a-full a-1000 10/100/1000BaseTX Gi0/23    ENCtoMuxPri        connected    100        a-full a-1000 10/100/1000BaseTX
 Gi0/24    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX Gi0/24    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
-Gi0/25    ENCtoMuxSec        notconnect   250          auto   auto 10/100/1000BaseTX 
-Gi0/26    ENCtoMuxSec        notconnect   250          auto   auto 10/100/1000BaseTX 
-Gi0/27    ENCtoMuxSec        notconnect   250          auto   auto 10/100/1000BaseTX 
-Gi0/28    ENCtoMuxSec        notconnect   250          auto   auto 10/100/1000BaseTX 
-Gi0/29    ENCtoMuxSec        notconnect   250          auto   auto 10/100/1000BaseTX 
-Gi0/30    ENCtoMuxSec        notconnect   250          auto   auto 10/100/1000BaseTX 
-Gi0/31    ENCtoMuxSec        notconnect   300          auto   auto 10/100/1000BaseTX 
-Gi0/32    ENCtoMuxSec        notconnect   300          auto   auto 10/100/1000BaseTX 
-Gi0/33    ENCtoMuxSec        notconnect   300          auto   auto 10/100/1000BaseTX 
-Gi0/34    ENCtoMuxSec        notconnect   300          auto   auto 10/100/1000BaseTX 
-Gi0/35    ENCtoMuxSec        notconnect   300          auto   auto 10/100/1000BaseTX 
-Gi0/36    ENCtoMuxSec        notconnect   300          auto   auto 10/100/1000BaseTX 
-Gi0/37    MuxOut             notconnect   400          auto   auto 10/100/1000BaseTX 
-Gi0/38    MuxOut             notconnect   400          auto   auto 10/100/1000BaseTX 
-Gi0/39    MuxOut             notconnect   400          auto   auto 10/100/1000BaseTX 
-Gi0/40    MuxOut             notconnect   400          auto   auto 10/100/1000BaseTX 
-Gi0/41    MuxOut             notconnect   400          auto   auto 10/100/1000BaseTX 
-Gi0/42    MuxOut             notconnect   400          auto   auto 10/100/1000BaseTX 
-Gi0/43    MuxOut             notconnect   500          auto   auto 10/100/1000BaseTX 
-Gi0/44    MuxOut             notconnect   500          auto   auto 10/100/1000BaseTX 
-Gi0/45    MuxOut             notconnect   500          auto   auto 10/100/1000BaseTX 
-Gi0/46    MuxOut             notconnect   500          auto   auto 10/100/1000BaseTX 
-Gi0/47    MuxOut             notconnect   500          auto   auto 10/100/1000BaseTX 
-Gi0/48    MuxOut             notconnect   500          auto   auto 10/100/1000BaseTX 
- 
 </file> </file>
 +Interface 23 is connected, the rest are not.
 +\\ 
 +To shutdown an interface, we first have to select it as we would normally do for any other operation.
 +\\ 
 +<file>
 +en (enter password)
 +conf t
 +int gigabitEthernet 0/1 (nic 1) - (or you could shutdown a range with int gigabitEthernet 0/1-12 for example)
 +sh
 +end
 +</file>
 +\\ 
 +Now if you repeat the following command:
 +\\ 
 +\\ 
 +  sh interfaces status
 +\\ 
 +You will see that the first interface is shown as //**disabled**//.
 +\\ 
 +<file>
 +Port      Name               Status       Vlan       Duplex  Speed Type
 +Gi0/1     MNGT               disabled     100          auto   auto 10/100/1000BaseTX
 +Gi0/2     MNGT               notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/3     MNGT               notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/4     MNGT               notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/5     MNGT               notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/6     MNGT               notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/7     MNGT               notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/8     MNGT               notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/9     MNGT               notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/10    MNGT               notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/11    MNGT               notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/12    MNGT               notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/13    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/14    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/15    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/16    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/17    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/18    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/19    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/20    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/21    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/22    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/23    ENCtoMuxPri        connected    100        a-full a-1000 10/100/1000BaseTX
 +Gi0/24    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +</file>
 +\\ 
 +----
 +==== Bring Up Interface ====
 +To bring the interface back up, use the following:
 +\\ 
 +<file>
 +en (enter password)
 +conf t
 +int gigabitEthernet 0/1 (nic 1) - (or you could bring up a range with int gigabitEthernet 0/1-12 for example)
 +no sh
 +end
 +</file>
 +\\ 
 +----
 +==== Bring Up/Down more Interfaces ====
 +When we select the interface to Shutdown/Bring up we used in this above example:
 +\\ 
 +  int gigabitEthernet 0/1
 +\\ 
 +\\ 
 +This shuts down a single interface (The first interface on the box). We could however shutdown the first 10 interfaces by using:
 +\\ 
 +<file>
 +en (enter password)
 +conf t
 +int range gigabitEthernet 0/1-10
 +no sh
 +end
 +</file>
 +\\ 
 +Now we can see the first 10 interfaces are down:
 +\\ 
 +<file>
 +Port      Name               Status       Vlan       Duplex  Speed Type
 +Gi0/1     MNGT               disabled     100          auto   auto 10/100/1000BaseTX
 +Gi0/2     MNGT               disabled     100          auto   auto 10/100/1000BaseTX
 +Gi0/3     MNGT               disabled     100          auto   auto 10/100/1000BaseTX
 +Gi0/4     MNGT               disabled     100          auto   auto 10/100/1000BaseTX
 +Gi0/5     MNGT               disabled     100          auto   auto 10/100/1000BaseTX
 +Gi0/6     MNGT               disabled     100          auto   auto 10/100/1000BaseTX
 +Gi0/7     MNGT               disabled     100          auto   auto 10/100/1000BaseTX
 +Gi0/8     MNGT               disabled     100          auto   auto 10/100/1000BaseTX
 +Gi0/9     MNGT               disabled     100          auto   auto 10/100/1000BaseTX
 +Gi0/10    MNGT               disabled     100          auto   auto 10/100/1000BaseTX
 +Gi0/11    MNGT               notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/12    MNGT               notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/13    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/14    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/15    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/16    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/17    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/18    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/19    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/20    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/21    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/22    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +Gi0/23    ENCtoMuxPri        connected    100        a-full a-1000 10/100/1000BaseTX
 +Gi0/24    ENCtoMuxPri        notconnect   100          auto   auto 10/100/1000BaseTX
 +</file>
 +\\ 
 +----
  
shutdown_cisco_interface.1705590078.txt.gz · Last modified: 2024/01/18 15:01 by walkeradmin