沒用過HP的Switch,指令跟Cisco完全不同,花了一些時間熟悉~
1.啟動Spanning-Tree,預設沒有開啟 (黑色粗體是我敲的指令)
<HP>system-view
System View: return to User View with Ctrl+Z.
[HP]stp enable
[HP]
%Apr 26 12:03:59:826 2000 HP MSTP/6/MSTP_ENABLE: STP is now enabled on the device.
%Apr 26 12:03:59:918 2000 HP MSTP/6/MSTP_FORWARDING: Instance 0's GigabitEthernet1/0/17 has been set to forwarding state.
%Apr 26 12:04:00:068 2000 HP MSTP/6/MSTP_DETECTED_TC: Instance 0's GigabitEthernet1/0/17 detected a topology change.
#Apr 26 12:04:00:208 2000 HP MSTP/1/PFWD: hwPortMstiStateForwarding: Instance 0's Port 0.9437200 has been set to forwarding state!
2.DHCP Snooping (黑色粗體是我敲的指令)
假設我的DHCP Server接在24 Port,其他Port不允許有DHCP Server
<HP>system-view
System View: return to User View with Ctrl+Z.
[HP]dhcp-snooping
DHCP Snooping is enabled.
[HP]interface GigabitEthernet 1/0/24
[HP-GigabitEthernet1/0/24]dhcp-snooping trust
若是沒有Port 設成dhcp-snooping trust,那麼這台Switch就沒有Client可以從DHCP Server拿到IP
DHCP Snooping 詳細說明可以看這裡
3.查看各介面的狀態
[HP]display interface brief
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Main IP Description
NULL0 UP UP(s) --
The brief information of interface(s) under bridge mode:
Link: ADM - administratively down; Stby - standby
Speed or Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface Link Speed Duplex Type PVID Description
GE1/0/1 DOWN auto A A 1
GE1/0/2 DOWN auto A A 1
GE1/0/3 DOWN auto A A 1
GE1/0/4 DOWN auto A A 1
GE1/0/5 DOWN auto A A 1
GE1/0/6 DOWN auto A A 1
GE1/0/7 DOWN auto A A 1
GE1/0/8 DOWN auto A A 1
GE1/0/9 DOWN auto A A 1
GE1/0/10 DOWN auto A A 1
GE1/0/11 DOWN auto A A 1
GE1/0/12 DOWN auto A A 1
GE1/0/13 UP 100M(a) F(a) A 1
GE1/0/14 DOWN auto A A 1
GE1/0/15 DOWN auto A A 1
GE1/0/16 DOWN auto A A 1
GE1/0/17 DOWN auto A A 1
GE1/0/18 DOWN auto A A 1
GE1/0/19 DOWN auto A A 1
GE1/0/20 DOWN auto A A 1
GE1/0/21 DOWN auto A A 1
GE1/0/22 DOWN auto A A 1
GE1/0/23 DOWN auto A A 1
GE1/0/24 UP 1G(a) F(a) A 1
GE1/0/25 DOWN auto A A 1
GE1/0/26 DOWN auto A A 1
GE1/0/27 DOWN auto A A 1
GE1/0/28 DOWN auto A A 1
DHCP starvation attack
留言
張貼留言