HP L2 Switche základní instalace
Z Hujer.Net
HP L2 Switche základní instalace
<HP>system-view System View: return to User View with Ctrl+Z.
Nepovine příkazy pro cisco aliass :-]
command-alias enable command-alias mapping display sh command-alias mapping save wr command-alias mapping undo no command-alias mapping quit exit command-alias mapping system-view conf command-alias mapping super en
Nastavení IP adresy z DHCP:
[HP]interface Vlan-interface 1 [HP-Vlan-interface1] %Apr 26 12:04:33:342 2000 HP IFNET/3/LINK_UPDOWN: Vlan-interface1 link status is UP. %Apr 26 12:04:33:472 2000 HP IFNET/5/LINEPROTO_UPDOWN: Line protocol on the interface Vlan-interface1 is UP. [HP-Vlan-interface1]ip add [HP-Vlan-interface1]ip address d [HP-Vlan-interface1]ip address dhcp-alloc
TEST
[HP-Vlan-interface1]ping 172.20.2.10 PING 172.20.2.10: 56 data bytes, press CTRL_C to break Reply from 172.20.2.10: bytes=56 Sequence=1 ttl=251 time=36 ms Reply from 172.20.2.10: bytes=56 Sequence=2 ttl=251 time=5 ms Reply from 172.20.2.10: bytes=56 Sequence=3 ttl=251 time=8 ms Reply from 172.20.2.10: bytes=56 Sequence=4 ttl=251 time=6 ms Reply from 172.20.2.10: bytes=56 Sequence=5 ttl=251 time=5 ms --- 172.20.2.10 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 5/12/36 ms <HP>dir Directory of flash:/ 0 -rw- 14586920 Sep 02 2013 09:28:03 a5120si-cmw520-r1513p62.bin 1 drw- - Apr 26 2000 12:00:07 logfile 97920 KB total (82262 KB free)
aktualizac SW ftp serveru
<HP>ftp 172.20.2.10 Trying 172.20.2.10 ... Press CTRL+K to abort Connected to 172.20.2.10. 220 INFO FTP server ready User(172.20.2.10:(none)):ftp 331 Password required for ftp Password:@ 230 User ftp logged in [ftp] cd pub/hp [ftp]dir 227 Entering Passive Mode (172,20,2,10,164,40). 150 Opening data connection -rw-rw---- 1 root root 14595896 Jul 28 16:07 A5120SI-CMW520-R1513P89.bin -rw-rw---- 1 root root 3311 Apr 9 16:34 lab-gw.key
Pozor nutno zapnou binární režim
[ftp]bi 200 Type set to I [ftp]get A5120SI-CMW520-R1513P89.bin 227 Entering Passive Mode (172,20,2,10,143,254). 150 Opening BINARY mode data connection for /A5120SI-CMW520-R1513P89.bin (14595896 bytes) 226 BINARY transfer complete FTP: 14595896 byte(s) received in 77.905 second(s), 187.00K byte(s)/sec. [ftp]bye 221 Closing <HP>dir Directory of flash:/ 0 -rw- 14595896 Apr 26 2000 12:07:53 a5120si-cmw520-r1513p89.bin 1 -rw- 14586920 Sep 02 2013 09:28:03 a5120si-cmw520-r1513p62.bin 2 drw- - Apr 26 2000 12:00:07 logfile 97920 KB total (68006 KB free)
update bootrom
<HP>bootrom update file a5120si-cmw520-r1513p89.bin slot 1 This command will update bootrom file on the specified board(s), Continue? [Y/N]:y Now updating bootrom, please wait... BootRom file updating finished!
primární boot image
<HP>boot-loader file a5120si-cmw520-r1513p89.bin slot 1 main This command will set the boot file of the specified board. Continue? [Y/N]:y The specified file will be used as the main boot file at the next reboot on slot 1!
sekundární boot image
<HP>boot-loader file a5120si-cmw520-r1513p62.bin slot 1 backup This command will set the boot file of the specified board. Continue? [Y/N]:y The specified file will be used as the backup boot file at the next reboot on slot 1!
Kontrola
<HP>display boot Slot 1 Current boot app is: flash:/A5120SI-CMW520-R1513P62.bin Next main boot app is: flash:/a5120si-cmw520-r1513p81.bin Next backup boot app is: flash:/a5120si-cmw520-r1513p62.bin
Nastavení membra ve stacku:
<HP>system-view [HP]irf member 1 renumber 2 Warning: Renumbering the switch number may result in configuration change or loss. Continue?[Y/N]y
první uložení konfigurace:
<HP>save The current configuration will be written to the device. Are you sure? [Y/N]:y Please input the file name(*.cfg)[flash:/startup.cfg] (To leave the existing filename unchanged, press the enter key): Validating file. Please wait.... Saved the current configuration to mainboard device successfully. Configuration is saved to device successfully.
staženi nové konfigurace z TFTP serveru
<HP>tftp 172.20.21.11 get ras-sw40-confg File will be transferred in binary mode Downloading file from remote TFTP server, please wait.../ TFTP: 13786 bytes received in 0 second(s) File downloaded successfully. <HP>dir Directory of flash:/ 0 -rw- 2656 Apr 26 2000 12:12:36 startup.cfg 1 -rw- 13786 Apr 26 2000 12:11:20 ras-sw40-confg 2 -rw- 14595896 Apr 26 2000 12:07:53 a5120si-cmw520-r1513p81.bin 3 -rw- 14586920 Sep 02 2013 09:28:03 a5120si-cmw520-r1513p62.bin 4 drw- - Apr 26 2000 12:00:07 logfile 97920 KB total (67978 KB free)
Aktivace stažené konfigurace
<HP>copy ras-sw40-confg startup.cfg Copy flash:/ras-sw40-confg to flash:/startup.cfg?[Y/N]:y The file flash:/startup.cfg exists. Overwrite it?[Y/N]:y . %Copy file flash:/ras-sw40-confg to flash:/startup.cfg...Done.
Restart z novou konfiguraci
<HP>reboot Start to check configuration with next startup configuration file, please wait.........DONE! This command will reboot the device. Current configuration will be lost, save current configuration? [Y/N]:n This command will reboot the device. Continue? [Y/N]:y #Apr 26 12:13:47:911 2000 HP DEVM/1/REBOOT: Reboot device by command. %Apr 26 12:13:48:000 2000 HP DEVM/5/SYSTEM_REBOOT: System is rebooting now.
Hotovo