Skip to content

Note

不挑戰記憶力的技術筆記

Menu
Menu

[Cisco]c2960 basic config

Posted on 2010 年 11 月 25 日 by febr

> 進入管理模式
>enable

顯示設定
#show running-config

進入設定模式
#configure terminal

設定hostname
(config)#hostname 設備名稱

設定帳號密碼——-

(config)#enable password en密碼

(config)#line console 0
設定console密碼
(config-line)#password console密碼
讓密碼生效
(config-line)#login

可讓 5個使用者telnet同時登入(0~4)
(config-line)#line vty 0 4
設定telnet密碼
(config-line)#password telnet密碼
讓密碼生效
(config-line)#login

密碼加密;sh run看到的會是加密後
(config)#service password-encryption

設定管理IP——
(config)#int vlan 1
(config-if)#ip address 192.168.1.1 255.255.255.0
(config-if)#ip default-gateway 192.168.1.254

assign port 到vlan
指定5~10port(多個需使用range指令)
(config)#int range gi 1/0/5-10 

(config-if)#switchport mode access (trunk可給多個vlan, access為預設,只能給一個vlan)
將5~10port assign 給 vlan 123
(config-if)#switchport access vlan 123
使用者不需等待即可馬上使用網路

(config-if)#spanning-tree portfast
spanning-tree bpduguard enable

參考資料:http://chenerich.blogspot.com/2010/07/spanning-tree-portfast-global-or.html

防止 mac spoofing

(config)#mac address-table notification mac-move

鎖mac
(config)#mac address-table static 0000.0000.0000.0000 vlan 123 drop

設定arp
(config)#arp 192.168.1.1 0000.0000.0000.0000 arpa

存檔(未存檔重開機失效)
#write memory

發佈留言 取消回覆

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

近期文章

  • [AWS] S3 Object Initiate restore (復原回 Standard)
  • [Windows] 使用者快速登出的方法 Logout/ Logoff/Sign Out from Windows User Account
  • [Windows] Windows 11 安裝Server管理工具Install RSAT(Remote Server Administrator Tools)
  • Chrome出現:你的連線不是私人連線 Your connection is not private
  • [C#] 取得 Request URL 的方法

近期留言

    彙整

    分類

    • Ajax
    • Android
    • ASP
    • ASP.NET MVC
    • Azure
    • C#
    • Cisco
    • CSS
    • Delphi
    • Developer Tools
    • Framework
    • FreeBSD
    • Git
    • HTML5
    • javascript
    • jQuery
    • Juniper
    • Linux
    • Mac
    • PHP
    • Python
    • Server&OS
    • Software
    • SQL server
    • Sublime Text
    • Ubuntu
    • Visual Studio
    • Vmware
    • Web Design
    • Web Development
    • Windows
    • WordPress
    • 未分類
    • 未分類

    彙整

    分類

    • Ajax
    • Android
    • ASP
    • ASP.NET MVC
    • Azure
    • C#
    • Cisco
    • CSS
    • Delphi
    • Developer Tools
    • Framework
    • FreeBSD
    • Git
    • HTML5
    • javascript
    • jQuery
    • Juniper
    • Linux
    • Mac
    • PHP
    • Python
    • Server&OS
    • Software
    • SQL server
    • Sublime Text
    • Ubuntu
    • Visual Studio
    • Vmware
    • Web Design
    • Web Development
    • Windows
    • WordPress
    • 未分類
    • 未分類

    其他操作

    • 登入
    • 訂閱網站內容的資訊提供
    • 訂閱留言的資訊提供
    • WordPress.org 台灣繁體中文
    © 2025 Note | Powered by Superbs Personal Blog theme