Catalyst 系列交換機 (2960/3560/3750/3850/4500/6500/9000 等) 忘記 Enable Secret / Console / VTY 密碼,需繞過啟動配置重置。
switch: 或 rommon 1 >)。confreg 0x2142reset 或 boot。Switch>),輸入 enable 進入特權模式 (Switch#) — 無需密碼。copy startup-config running-configconfigure terminal。enable secret 新密碼config-register 0x2102line console 0password 新密碼loginexitline vty 0 4 (或 0 15)password 新密碼login (或 transport input ssh 僅允 SSH)exitcopy running-config startup-configreload → 確認 → 以新密碼登入。copy startup-config running-config 是合併而非覆蓋,原有介面 IP、VLAN、路由等配置保留,僅密碼被新設定覆蓋。write erase 或 erase startup-config,否則所有配置永久遺失!show running-config、show version 輸出。