Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
shutdown_cisco_interface [2024/01/18 15:01] – [Shutdown Interface] walkeradmin | shutdown_cisco_interface [2024/01/18 15:11] – [Bring Up/Down more Interfaces] walkeradmin |
---|
Gi0/24 ENCtoMuxPri notconnect 100 auto auto 10/100/1000BaseTX | Gi0/24 ENCtoMuxPri notconnect 100 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 shutsdown 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> |