dslreports logo
site
 
    All Forums Hot Topics Gallery
spc

spacer




how-to block ads


Search Topic:
uniqs
5482
share rss forum feed


FLengineer
CCNA, CEH, MCSA
Premium
join:2007-06-26
Leesburg, FL

perform "no shut" on all interfaces

Is there a command that will do a "no shut" on all interfaces?

I have 23 Interfaces and when I copy a config file to running-config I end up with all interfaces shutdown. The config file doesn't have them shutdown.


carp
Rejected

join:2002-10-30
Interface range


FLengineer
CCNA, CEH, MCSA
Premium
join:2007-06-26
Leesburg, FL
I found that but what comes after interface range?

elnino

join:2006-08-27
Akron, OH
said by FLengineer:

I found that but what comes after interface range?
The range of interfaces you want to change. So int range fa0/1 - 23 should work.


MrTwister
Premium
join:2003-09-27
Hilliard, OH
reply to FLengineer
The others were correct with the "interface range"
command, the key thing to remember is the space
between the first interface number and the "-".
If you don't put that there, the command interpreter
will not read the command properly.

switch#interface range fa0/1 -23 <enter>    !(3550)
or
switch#interface range fa1/0/1 -23 <enter> !(65xx/3750)
or
switch#interface range gi1/0/1 -23 <enter> !(65xx/3750g)
switch#no shut <enter>
switch#exit or <ctrl-Z> <enter>
 

on the newer versions of IOS, if you are cutting/pasting
and you have a commands for a single interface or other
global comman, you should exit back one level out of
the interface level. If you don't, you'll get an error,
that may or may not allow the rest of the configurations
to be entered into the config.

HELLFIRE
Premium
join:2009-11-25
kudos:18
reply to FLengineer
quote:
when I copy a config file to running-config I end up with all interfaces shutdown.
Default interface status is shutdown. Just edit the config file with "no shut" on
all the interfaces that need to be up before you reload the config next time.

Regards


FLengineer
CCNA, CEH, MCSA
Premium
join:2007-06-26
Leesburg, FL
reply to FLengineer
Thank you guys. I'm going to HELLFIRE's solution because I have a mix of FE, Serial, and ATM interfaces.


Da Geek Kid

join:2003-10-11
::1
kudos:1
Reviews:
·Callcentric
the shutdown is not always the default... you can use the
default int f0/1
 

to the status of the f0/1's set up... it's always recommended to do so if you are reusing an interface.

you can also do

default int ran f0/1 - 48

to reset all the ports to default settings.