2012年12月29日 星期六

Switch port-security


題:
(1) 32.10、20、30 接在一台 HUB 上,當有其他電腦再接上時 Switch 會將該 Port 關閉。
(2) 設定遠端管理登入 Switch


Switch>
Switch>enable
Switch#configure terminal
Switch(config)#interface fastEthernet 0/1                                                       (將安全性規則設在 fa0/1)
Switch(config-if)#switchport mode access 
Switch(config-if)#switchport port-security 
Switch(config-if)#switchport port-security maximum 3                                    (最多 3 台設備)
Switch(config-if)#switchport port-security mac-address 0030.A3A9.B8B2    (手動輸入MAC位置)
Switch(config-if)#switchport port-security mac-address 000B.BEC1.DB21 
Switch(config-if)#switchport port-security mac-address 0002.4ADD.57A9
Switch(config-if)#switchport port-security violation shutdown 
Switch(config-if)#exit
欲要讓 Switch 回復正常,需先將 Other 線拔除後 ,再將Port 輸入 shutdown ,再 no shutdown

補充: Switch(config-if)#switchport port-security mac-address sticky (可自動黏貼 MAC 位置,先上的先贏)

[ 設定管理位置 ] (可利用 telnet 到此Switch 做管理和設定)
Switch>
Switch>enable 
Switch#configure terminal
Switch(config)#interface vlan 1                                               (Switch 預設 All port 為 vlan1)
Switch(config-if)#ip address 192.192.32.100 255.255.255.0 (自訂一個 IP 給Switch )
Switch(config-if)#no shutdown 
Switch(config-if)#exit
Switch(config)#ip default-gateway 192.192.32.1                    (預設匝道)

Switch(config)#line vty 15                                                      (Switch 可同時登入的人數 15 )
Switch(config-line)#password cisco                                       (密碼自訂)
Switch(config-line)#login 
Switch(config-line)#exit
Switch(config)#enable secret 12345                                        (密碼自訂)

沒有留言:

張貼留言