Shutdown more than 1 interface with a command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2003 04:12 AM - edited 03-02-2019 08:46 AM
Hi All,
What is the IOS command in the 4506 to shutdown or enable more that one port with a single command?
I do not want to go into each interface configuration and give "shutdown command" for each port!
Thanks
Matteo
- Labels:
-
Other Networking
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2003 05:17 AM
You can use the interface range command
Here is an example from my lab switch
Switch#sh mod
Mod Ports Card Type Model Serial No.
----+-----+--------------------------------------+-----------------+-----------
1 2 1000BaseX (GBIC) Supervisor(active) WS-X4515 JAB062408TV
4 48 10/100BaseTX (RJ45) WS-X4148 JAB031108W1
M MAC addresses Hw Fw Sw Status
--+--------------------------------+---+------------+----------------+---------
1 000a.4173.f540 to 000a.4173.f541 0.4 12.1(12r)EW( 12.1(13)EW1, EAR Ok
4 0050.547b.0a30 to 0050.547b.0a5f 1.5 Ok
Switch#conf term
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface range ?
FastEthernet FastEthernet IEEE 802.3
GigabitEthernet GigabitEthernet IEEE 802.3z
Port-channel Ethernet Channel of interfaces
Vlan Catalyst Vlans
macro macro keyword
Switch(config)#interface range fastethernet 4/1 - 48
Switch(config-if-range)#shut
Switch(config-if-range)#no shut
Switch(config-if-range)#end
Switch#wr
Building configuration...
Compressed configuration from 2090 bytes to 854 bytes[OK]
Switch#
