shutdown_cisco_interface
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
shutdown_cisco_interface [2024/01/18 15:02] – [Shutdown Interface] walkeradmin | shutdown_cisco_interface [2024/01/18 15:16] (current) – [Bring Up/Down more Interfaces] walkeradmin | ||
---|---|---|---|
Line 46: | Line 46: | ||
</ | </ | ||
Interface 23 is connected, the rest are not. | 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. | ||
+ | \\ | ||
+ | < | ||
+ | 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 | ||
+ | </ | ||
+ | \\ | ||
+ | Now if you repeat the following command: | ||
+ | \\ | ||
+ | \\ | ||
+ | sh interfaces status | ||
+ | \\ | ||
+ | You will see that the first interface is shown as // | ||
+ | \\ | ||
+ | < | ||
+ | Port Name | ||
+ | Gi0/1 | ||
+ | Gi0/2 | ||
+ | Gi0/3 | ||
+ | Gi0/4 | ||
+ | Gi0/5 | ||
+ | Gi0/6 | ||
+ | Gi0/7 | ||
+ | Gi0/8 | ||
+ | Gi0/9 | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | </ | ||
\\ | \\ | ||
---- | ---- | ||
+ | ==== Bring Up Interface ==== | ||
+ | To bring the interface back up, use the following: | ||
+ | \\ | ||
+ | < | ||
+ | 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 | ||
+ | </ | ||
+ | \\ | ||
+ | ---- | ||
+ | ==== Bring Up/Down more Interfaces ==== | ||
+ | When we select the interface to Shutdown/ | ||
+ | \\ | ||
+ | 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: | ||
+ | \\ | ||
+ | < | ||
+ | en (enter password) | ||
+ | conf t | ||
+ | int range gigabitEthernet 0/1-10 | ||
+ | no sh | ||
+ | end | ||
+ | </ | ||
+ | \\ | ||
+ | Now we can see the first 10 interfaces are down: | ||
+ | \\ | ||
+ | < | ||
+ | Port Name | ||
+ | Gi0/1 | ||
+ | Gi0/2 | ||
+ | Gi0/3 | ||
+ | Gi0/4 | ||
+ | Gi0/5 | ||
+ | Gi0/6 | ||
+ | Gi0/7 | ||
+ | Gi0/8 | ||
+ | Gi0/9 | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | Gi0/ | ||
+ | </ | ||
+ | \\ | ||
+ | ---- | ||
+ |
shutdown_cisco_interface.1705590138.txt.gz · Last modified: 2024/01/18 15:02 by walkeradmin