Configuring HP ProCurve Switch
Reset switch to factory defaults
If I’m not using brand new switch, I normally like to reset it back to factory defaults before doing anything.
Use a pointy object (like paper clip) and press “Reset” and “Clear” buttons on the front of the switch at the same time.
Release “Reset” button. When “Self Test” LED start to blink, release “Clear” button too. Now the switch should do it test routines. After that it should be back on factory defaults.
Use a pointy object (like paper clip) and press “Reset” and “Clear” buttons on the front of the switch at the same time.
Release “Reset” button. When “Self Test” LED start to blink, release “Clear” button too. Now the switch should do it test routines. After that it should be back on factory defaults.
IP-Address
HP ProCurve Switch 2524# configure
HP ProCurve Switch 2524(config)# vlan 1
HP ProCurve Switch 2524(vlan-1)# ip address 10.0.0.1 255.255.255.0
HP ProCurve Switch 2524(vlan-1)# wr mem
HP ProCurve Switch 2524(vlan-1)# exit
HP ProCurve Switch 2524(config)# exit
HP ProCurve Switch 2524#
Configure VLANs
HP ProCurve Switch 2524# configure
HP ProCurve Switch 2524(config)# vlan 1
HP ProCurve Switch 2524(vlan-1)# name "Default"
HP ProCurve Switch 2524(vlan-1)# untag 2-6
HP ProCurve Switch 2524(vlan-1)# vlan 10
HP ProCurve Switch 2524(vlan-10)# name "First"
HP ProCurve Switch 2524(vlan-10)# untag 7-12
HP ProCurve Switch 2524(vlan-10)# vlan 20
HP ProCurve Switch 2524(vlan-20)# name "Second"
HP ProCurve Switch 2524(vlan-20)# untag 13-18
HP ProCurve Switch 2524(vlan-20)# exit
HP ProCurve Switch 2524(config)# exit
HP ProCurve Switch 2524#
Set up trunk ports
HP ProCurve Switch 2524# config
HP ProCurve Switch 2524(config)# trunk 23-24 trk1
HP ProCurve Switch 2524(config)# vlan 10
HP ProCurve Switch 2524(vlan-10)# tagged trk1
HP ProCurve Switch 2524(vlan-10)# vlan 20
HP ProCurve Switch 2524(vlan-20)# tagged trk1
HP ProCurve Switch 2524(vlan-20)# wr mem
HP ProCurve Switch 2524(vlan-20)# exit
HP ProCurve Switch 2524(config)# exit
HP ProCurve Switch 2524#
Disable all (but trunk) ports
HP ProCurve Switch 2524# configure
HP ProCurve Switch 2524(config)# int 2-22 disable
HP ProCurve Switch 2524(config)# wr mem
HP ProCurve Switch 2524(config)# exit
HP ProCurve Switch 2524#
Enable only necessary ports
HP ProCurve Switch 2524# configure
HP ProCurve Switch 2524(config)# int 2-4 enable
HP ProCurve Switch 2524(config)# int 13-15 enable
HP ProCurve Switch 2524(config)# wr mem
HP ProCurve Switch 2524(config)# exit
HP ProCurve Switch 2524#
Set up speed etc.
HP ProCurve Switch 2524# configure
HP ProCurve Switch 2524(config)# int 2-4 speed-duplex 100-full
HP ProCurve Switch 2524(config)# int 13-15 speed-duplex auto
HP ProCurve Switch 2524(config)# wr mem
HP ProCurve Switch 2524(config)# exit
HP ProCurve Switch 2524#
Set time and date
Time and date on hh:mm and mm:dd:yyyy format
HP ProCurve Switch 2524# configure
HP ProCurve Switch 2524(config)# time 10:05
Mon Jan 1 10:05:28 1990
HP ProCurve Switch 2524(config)# time 08/24/2010
Tue Aug 24 10:05:41 2010
HP ProCurve Switch 2524(config)# wr mem
HP ProCurve Switch 2524(config)# exit
HP ProCurve Switch 2524#
Set hostname
HP ProCurve Switch 2524# configure
HP ProCurve Switch 2524(config)# hostname "ServerRoom1"
ServerRoom1(config)# wr mem
ServerRoom1(config)# exit
ServerRoom1#
Backup settings
After running “sh run” copy/paste all between line which start with “hostname” to “ServerRoom1#” example to notepad and save that file.
ServerRoom1# sh run
ServerRoom1#
Restore settings from backup
All you have to do is copy/paste all (except the first “Running configuration:” line) to notepad on “Backup settings” part to “HP ProCurve Switch 2524#”.
If you have set operator and/or manager passwords, don’t copy/paste the lines which start with password.
If you have set operator and/or manager passwords, don’t copy/paste the lines which start with password.
HP ProCurve Switch 2524# configure
HP ProCurve Switch 2524(config)#
Set manager and operator password
ServerRoom1# configure
ServerRoom1(config)# password all
New password for Operator: ********
Please retype new password for Operator: ********
New password for Manager: ********
Please retype new password for Manager: ********
ServerRoom1(config)#
Update firmware using tftp server
If you are using windows machine and need tftp server software, you should try 3CDaemon. It’s free, portable, and it works like a dream =)
Download newest firmware from HP’s website: Software for switches.
For my switch HP ProCurve 2524gl, newest firmware was F.05.72. I downloaded 2300_2500-Software-F0572.zip package and extracted it to “2300_2500-Software-F0572” folder.
For my switch HP ProCurve 2524gl, newest firmware was F.05.72. I downloaded 2300_2500-Software-F0572.zip package and extracted it to “2300_2500-Software-F0572” folder.
Now I have directory “2300_2500-Software-F0572” with 2300_2500-RelNotes-F0572-59903102.pdf (Release Notes). I also have F_05_72.swi file and this .swi file is the firmware which you are going to use to update your switch.
ServerRoom1# configure
ServerRoom1(config)# copy tftp flash 10.0.0.100 F_05_72.swi
Device will be rebooted, do you want to continue [y/n]? y
00126K
After F_05.72.swi is copied to the switch, you should get this kind of line. When eve everything goes ok your switch will reboot itself:
Validating and Writing System Software to FLASH...
Update firmware using xmodem over serial connection
I normally use Microsoft Hyperterminal when I’m doing this because it’s pretty easy to use xmodem to upload files with hyperterminal
Download newest firmware from HP’s website: Software for switches For my switch HP ProCurve 2524gl newest firmware was F.05.72 so I downloaded 2300_2500-Software-F0572.zip package and extracted it to “2300_2500-Software-F0572”.
Now I have directory “2300_2500-Software-F0572” with 2300_2500-RelNotes-F0572-59903102.pdf (Release Notes) and F_05_72.swi file and this .swi file is the firmware which you are going to use to update your switch)
HP ProCurve Switch 2524# configure
HP ProCurve Switch 2524(config)# copy xmodem flash
The Primary OS Image will be deleted, continue [y/n]? y
Press 'Enter' and start XMODEM on your host...
After hitting ‘Enter’, start uploading using hyperterminal from menu: “Transfer” => “Send File…” then click “Browse…” and find that F_05_72.swi file and choose Xmodem (Not “1K Xmodem”) protocol. Then hit “Send” button. When everything is done you should see this kind of message and after that switch should boot:
Validating and Writing System Software to FLASH...
[note]This configuration was done with HP ProCurve 2524 (J4813A) but most of this command should work with other procurve switches too.[/note]
Để cấu hình được switch HP cũng giống như những switch chuyên nghiệp khác, ta cần dùng cáp console kết nối từ máy tính tới switch.
Đối với các máy tính không có cổng COM (Máy laptop hoặc 1 số máy bàn loại mới thường không có cổng COM), phải sử dụng 1 sợi cáp đổi từ cổng USB sang COM (có thể mua ở trên mạng) thì mới có thể console được vào switch.
- Sử dụng ứng dụng Putty để truy cập: có thể dowload ứng dụng qua link sau:http://www.putty.org/ click here để dowload.
- Để biết cổng com bao nhiêu ta vào management – my computer để xem.
- Giao diện khi kết nối putty vào:
Câu lệnh:
- câu lệnh ? để show ra các câu lệnh ta có thể dùng.
- Để vào mode config t trên switch hp dùng câu lệnh: system-view
- Tạo vlan:
- vlan 99
- name TEST
- quit
- Cấu hình IP cho vlan quản trị:
- interface Vlan-interface 99
- ip address 192.168.1.1 255.255.255.0
- undo shutdown ( tương đương câu lệnh no shutdown của cisco)
- quit
- Default-Gateway nếu switch chạy với vai trò là Coreswitch layer 3 nắm giữ các interface vlan và kết nối tới FIrewall hoặc router gateway internet.
- ip route-static 0.0.0.0 0.0.0.0 192.168.1.254 (ip của firewall switch kết nối đến)
- access port vào vlan:
- interface Ethernet 1/0/1
- port access vlan 99
- undo shutdown
- Trunk Port:
- Trunk (Port Trunk)
- ví dụ: trunk 5,6,7 ( port 5,6,7 se la port trunk)
- Trunk gợp 2 port vật lí thành 1:
- trunk (port trunk) (group trunk) ( giao thuc gop port)
- ví dụ: trunk 23-24 trk1 LACP
- Tag cho vlan đi qua Port trunk:
- vlan ID tagged trk1
- ví dụ: vlan 10 tagged trk1
Không có nhận xét nào:
Đăng nhận xét