Ниже вы найдете примеры того, как поднять или потушить интерфейс на CISCO свиче или роутере.
В интерфейсе командной строки CISCO, существует команда настройки интерфейса shutdown
, которая служит для выключения интерфейса, а также команда no shutdown
для его включения.
Я приведу примеры использования этих команд, а также покажу, как проверить состояние интерфейса с помощью команды show interfaces status
.
Дельный Совет: Нет ничего хуже, чем пытаться решить сетевой инцидент, когда проблемный интерфейс никак не подписан! Всегда задавайте описание интерфейса! Читать далее →
Команда «No Shutdown» — Включить Интерфейс
Чтобы включить интерфейс FastEthernet 0/1
на CISCO свиче или роутере, выполните:
# enable # configure terminal (config)# interface FastEthernet 0/1 (config-subif)# no shutdown (config-subif)# end # write
Чтобы узнать состояние интерфейса FastEthernet 0/1
, выполните команду show interfaces FastEthernet 0/1 status
:
# show interfaces FastEthernet 0/1 status Port Name Status Vlan Duplex Speed Type Fa0/1 connected 15 full 100 10/100BaseTX
Дельный Совет: Не дайте своей «циске» сгореть в муках! Проверьте ее температуру и состояние вентиляторов! Читать далее →
Команда «Shutdown» — Выключить Интерфейс
Чтобы выключить интерфейс FastEthernet 0/1
на CISCO свиче или роутере, выполните:
# enable # configure terminal (config)# interface FastEthernet 0/1 (config-subif)# shutdown (config-subif)# end # write
Чтобы узнать состояние интерфейса FastEthernet 0/1
, выполните команду show interfaces FastEthernet 0/1 status
:
# show interfaces FastEthernet 0/1 status Port Name Status Vlan Duplex Speed Type Fa0/1 disabled 15 full 100 10/100BaseTX
Ошибка в начале статьи во втором абзаце shutdown(выкл) and no shutdown(вкл)
Поправил. Спасибо.
Hello Roman:
How would you do this if the switch put in an enable prompt
and I dont know the password for the enable login prompt.
Thank you,
Kurt
Hi! What would happen if the port being shutdown is a aggregated port? Would the member ports also be shutdown?
Hi Guys,
these is my command in router, which is connected to the switch 2960-24TT, the both interface is gigabitEthernet 0/1, but after I type the no shutdown command, the interface still down, how to fix it, what is the problem? And also all the interface of pc connected to the switch are down.
RFINANCE>enable
RFINANCE#configure terminal
RFINANCE(config-if)#int g0/1
RFINANCE(config-if)#ip address 10.10.10.1 255.255.224.0
RFINANCE(config-if)#no shutdown
#show ip interface brie
:GigabitEthernet0/1 unassigned YES manual down down
Why???
Down/Down is a L1 problem
Possible reasons
Damaged cable
Wrong type of cable (Straight/Cross), without MDIX active
Hardcoded Duplex/Speed setting on one side (it may be a problem even if autonegotiation is enabled)
Device/port on the other side is shutdown
Simple yet effective, definitely needed to have the port on the other end up, thanks a bunch a noodes, toodles!
you don’t have gateway configured?
Hi,
I tried no shut in my interface but still it is in down status what i can do
PS: i am trying to configure Spanning Tree
How can I run this command for all the interfaces of a switch in one go ?
shutdown
No shutdown
Try interface range in conf mode.