HP Switch-Procurve指令集

show run
show vlan
setup ##設定機器基本資料
menu ##

show authentication ##顯示登入採用什麼方式

enable
configure
vlan 19 #建立vlan
name “xxxx” #命名 vlan
tag A12 #設定12 port為vlan 19

no vlan 19 #取消vlan 19

___________________________________________
###SSH###
password all #設定密碼
crypto key generate ssh rsa
show crypto host-public-key
ip ssh #enable
no ip ssh #disable
show ip ssh
pass manager user-name sam #add user and password
write memory
show authentication

___________________________________________
###LACP###

trunk A1 trk1 lacp
___________________________________________
###NTP###
timesync sntp
sntp server priority 1 192.168.7.2
sntp unicast
time timezone 480 #分鐘數
___________________________________________
###hppts###
crypto key generate cert rsa bits 1024
crypto host-cert generate self-signed
Validity start date [10/21/2012]: 10/21/2012
Validity end date [10/21/2013]: 10/21/2018
Common name [0.0.0.0]: 10.136.236.68
Organizational unit [Dept Name]: ICT
Organization [Company Name]: XXXX College
City or location [City]: XXXX
State name [State]: VIC
Country code [US]: AU
web-management ssl
no web-management plaintext #disable http service
___________________________________________
###telnet###
telnet-server #turn on service
no telnet-server
___________________________________________
###Radius###
radius-server host 192.168.6.2 key 53104031
aaa authentication login privilege-mode
aaa authentication telnet login radius local
aaa authentication telnet enable radius local
aaa authentication ssh login radius local
aaa authentication ssh enable radius local
aaa authentication web login radius local
aaa authentication web enable radius local
___________________________________________
## Tag vlan ###

interface 8
tagged vlan 1,10,100
___________________________________________
## management IP ###
vlan 1
ip address 172.17.1.16 255.255.255.0
ip default-gateway 172.17.1.1
___________________________________________

Posted in HP

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.