補覺鳴詩

學海無涯


  • 首頁

  • archive

  • 關於我

  • 搜尋

CISCO 基本設定 (ssh、spanning tree)

時間: 2018-04-30   |   分類: 網管   | 字數: 161 字 | 閱讀: 1分鐘 | 閱讀次數:

SSH 開啟前要完成 HOST neme 、 doman name 的設定

 

switch (config)#spanning-tree mode rapid-pvst

switch(config)# hostname test //命名主機名稱

test(config)# ip domain-name test.local //設定網域名稱

test(config)# crypto key generate rsa //產生金鑰
//金鑰預設是用 512 bit 指定 768 bit 以上才能啟用 ssh v2

test(config)# ip ssh version 2 ////使用 ssh v2

test(config)# username test privilege 15 password test //建立帳號並給予最高權限

Switch(config)# line vty 0 4
Switch(config-line)# transport input ssh //限制遠端登錄只能用 ssh
Switch(config-line)# login local //使用本機登錄

test(config)# service password-encryption //密碼加密

test(config)# enable secret test //設定 enable 的密碼

comments powered by Disqus >
Owan

Owan

愛貓如癡

131 日誌
29 分類
37 標籤
GitHub
© 2010 - 2022 補覺鳴詩
Powered by - Hugo v0.96.0 / Theme by - NexT
0%