1. 程式人生 > >小灰的網工日常之華三瘦轉胖AP,我與華三的又一段孽緣呀~~~

小灰的網工日常之華三瘦轉胖AP,我與華三的又一段孽緣呀~~~

http art done 資料 nis ask loaded 啟動過程 跳線

話說臨近國慶,項目前期眼看瞅著就要接近尾聲,用戶要在國慶前一天就要搬進新樓,享受空調WIFI美食, 某公司的采購周期是出了名的長,但無線AP,AC還沒到貨怎麽辦?領導坐不住了,急吼吼的問網工: 小灰啊,這款EWP-WA2610H-FIT 京東上有沒有現貨?“我查查,還真有” “好,沒有AC控制器能不能玩的轉?” “我來查一查,瘦AP轉胖AP是可以行的通的” (我感覺領導這話根本就不是問句啊...理論上可以啊,畢竟小灰以前見過瘦轉胖的目錄) “ 好,明天下午就能到貨,還剩一天半時間了。抓緊。” 領導另辟蹊徑,AP采購的事順利拿下,下面該我出馬了。 瘦轉胖AP容易,網上不有案例嗎? 不容易... 第一,剛買回來的瘦AP是沒有配置的!沒有配置的!沒有配置的!(重要的話說三遍 ) 要先通過AC將腳本配置傳輸到AP。怎麽辦?還好三期的AC WX3520H還能一用, (將一個樓層的交換機其余端口shutdown,釋放license的招兒我也想出了) 說幹就幹,把AC分配好網段給AP,AP順利拿到地址,再通過TFTP方式傳輸倒入胖版本不就搞定了嗎? ( 呵呵,年輕人想法還是簡單 ) 一看AP配置傻了,沒有TFTP命令!什麽,FTP也沒有?WTF 也不看看WX 3520H 是什麽貨?(采用H3C全新一代Comware V7網絡操作系統平臺(以下簡稱V7系統)) 倒入WA 2610H 那是V7版本啊?(so what?) WA2610H V7胖版本沒有開發出來!只有V5的, 所以沒有TFTP命令行倒入V5胖版本。 怎麽辦? 華三V7瘦AP轉V5胖AP。曲線救國。 部分重要腳本配置如下:

interface Ethernet1/0/2
port access vlan 1000
port-isolate enable ##端口隔離 2口,3口不能互相訪問

dis wlan ap name 模板名字(默認是AP的mac地址) verbose ##查看AP獲取的地址

AC:wlan ap-execute 模板名字 exec-console enable ##開啟telnet AP的權限

AP的默認password :h3capadmin

V7的H3C AC 3520H版本,下發給H3C EWP-WA2610H-FIT V7版本,
現在要把WA 2610H-FIT AP V7從瘦AP 切到 胖AP V5版 (H3C WA2610H 胖V7版本沒開發出來)

WA2610H

  1. 打開設備外殼,裏面有一個mini console 口 (有個迷你console口,good )

  2. 找到手機usb數據線(即一般手機數據傳輸充電線) console線就是原來安卓充電器用的那種傳輸線

  3. Usb端鏈接電腦,另一端鏈接 ap

  4. 在電腦上安裝驅動

http://www.h3c.com/cn/d_201302/774009_30005_40.htm

  1. 驅動安裝好後,電腦通信端口會生成一個com口

  2. 電腦通過crt登錄設備命令行

  3. 參考如下文檔將v7瘦版本切成v5胖版本

    參考案例:
    問題現象
    某局點現場一臺V7的WA4320H-ACN設備,由於現有的AC設備上的license數量不足,需要將AP切換為胖AP使用。了解現場工程師的需求後,我們立即查找相應的資料並查找解決方法。經過查找資料確認該型號的AP胖版本只有V5的版本,所以需要將V7的瘦版本降級為V5的胖版本。

    告警信息
    經過查找官網軟件版本後確認,該型號的AP僅有V5的胖版本
    原因分析
    該型號V7版本的瘦AP經過查閱資料確認,沒有可以使用的V7的相應的適配胖版本,和現場工程師協商建議其將該AP降級為V5的胖AP。

    解決辦法
    引導工程師做V7瘦版本降級V5胖版本的操作,操作過程如下:
    在AP的啟動過程中

按下Ctrl+B進入AP的BOOTROM菜單


  • *
  • H3C WA2610H BootWare, Version 7.06 *
  • *

    Copyright (c) 2004-2017 New H3C Technologies Co., Ltd.

Compiled Date : May 15 2017
CPU Type : ATHEROS AR9531
CPU L1 Cache : 32KB
CPU Clock Speed : 650MHz
Memory Type : SDRAM
Memory Size : 128MB
Memory Speed : 450MHz
BootWare Size : 512KB
Flash Size : 16MB
PCB Version : Ver.A

BootWare Validating...
Press Ctrl+B to access EXTENDED-BOOTWARE MENU...

Password recovery capability is enabled.
Note: The current operating device is flash
Enter < Storage Device Operation > to select device.

==========================<EXTENDED-BOOTWARE MENU>==========================
|<1> Boot System |
|<2> Enter Serial SubMenu |
|<3> Enter Ethernet SubMenu |
|<4> File Control |
|<5> Restore to Factory Default Configuration |
|<6> Skip Current System Configuration |
|<7> BootWare Operation Menu |
|<8> Skip Authentication for Console Login |
|<9> Storage Device Operation |

============================================================================
Ctrl+Z: Access EXTENDED ASSISTANT MENU
Ctrl+F: Format File System
Enter your choice(0-9): 3

==========================<Enter Ethernet SubMenu>==========================
|Note:the operating device is flash |
|<1> Download Image Program To SDRAM And Run |
|<2> Update Main Image File |
|<3> Download Files(.) |
|<4> Modify Ethernet Parameter |
|<0> Exit To Main Menu

============================================================================
Enter your choice(0-4): 4

==========================<ETHERNET PARAMETER SET>==========================
Note: ‘.‘ = Clear field.
‘-‘ = Go to previous field.

============================================================================
Protocol (FTP or TFTP) :tftp
Load File Name :host
:wa4300s_fat.bin ###導入已經下好的V5胖版本
Target File Name :target
:wa4300s_fat.bin
Server IP Address :192.168.1.1 192.168.0.20 (電腦IP)
Local IP Address :192.168.1.253 192.168.0.30 (AP IP)
Subnet Mask :0.0.0.0 255.255.255.0
Gateway IP Address :0.0.0.0

==========================<Enter Ethernet SubMenu>==========================
|Note:the operating device is flash |
|<1> Download Image Program To SDRAM And Run |
|<2> Update Main Image File |
|<3> Download Files(.) |
|<4> Modify Ethernet Parameter |
|<0> Exit To Main Menu |

============================================================================
Enter your choice(0-4): 1
Loading.....................................................................
............................................................................
............................................................................
..Done.
11293696 bytes downloaded!
Extended BootWare Version is not equal,updating? [Y/N]Y ###此處開始boot版本替換,選Y
Updating Extended BootWare..........Done.
Basic BootWare Version is not equal,updating? [Y/N]Y ###選Y
Updating Basic BootWare..........Done.
BootWare updated,System is rebooting now.
System is starting...
Press Ctrl+D to access BASIC-BOOTWARE MENU
Booting Normal Extend BootWare....
The Extend BootWare is self-decompressing.........................Done!


  • *
  • H3C WA2610H BootWare, Version 1.07 *
  • *

    Copyright (c) 2004-2017 New H3C Technologies Co., Ltd.

Compiled Date : Jun 19 2017
CPU Type : ATHEROS AR9531
CPU L1 Cache : 32KB
CPU Clock Speed : 650MHz
Memory Type : SDRAM
Memory Size : 128MB
Memory Speed : 450MHz
BootWare Size : 512KB
Flash Size : 16MB
PCB Version : Ver.A

Check net params crc error, use the default value
BootWare Validating...
Press Ctrl+B to enter extended boot menu...
BootWare password: Not required. Please press Enter to continue.

Password recovery capability is enabled.
Note: The current operating device is flash
Enter < Storage Device Operation > to select device.

===========================<EXTEND-BOOTWARE MENU>===========================
|<1> Boot System |
|<2> Enter Serial SubMenu |
|<3> Enter Ethernet SubMenu |
|<4> File Control |
|<5> Restore to Factory Default Configuration |
|<6> Skip Current System Configuration |
|<7> BootWare Operation Menu |
|<8> Clear Super Password |
|<9> Storage Device Operation |

============================================================================
Ctrl+C: Display Copyright
Ctrl+F: Format File System ###執行Ctrl+F格式化操作
Enter your choice(0-9):
Warning:All files on flash will be lost! Are you sure to format? [Y/N]Y.....
............................................................................
..................
Format success. ###第一次TFTP傳文件後格式化

###如果這邊不停的格式化,然後重啟進入系統,AP就有可能玩壞了。進入到一種貌似是胖AP但console操控不了的局面,貌似就因此玩壞了一個AP..
所以說瘦AP切胖AP真是有風險的!

===========================<EXTEND-BOOTWARE MENU>===========================
|<1> Boot System |
|<2> Enter Serial SubMenu |
|<3> Enter Ethernet SubMenu |
|<4> File Control |
|<5> Restore to Factory Default Configuration |
|<6> Skip Current System Configuration |
|<7> BootWare Operation Menu |
|<8> Clear Super Password |
|<9> Storage Device Operation |

============================================================================
Ctrl+C: Display Copyright
Ctrl+F: Format File System
Enter your choice(0-9): 3

==========================<Enter Ethernet SubMenu>==========================
|Note:the operating device is flash |
|<1> Download Application Program To SDRAM And Run |
|<2> Update Main Application File |
|<3> Modify Ethernet Parameter |
|<0> Exit To Main Menu |

============================================================================
Enter your choice(0-3): 3

==========================<ETHERNET PARAMETER SET>==========================
|Note: ‘.‘ = Clear field. |
| ‘-‘ = Go to previous field. |
Ctrl+D = Quit.

Protocol (FTP or TFTP) :tftp
Load File Name :host
:wa4300s_fat.bin ###替換系統版本為胖版本
Target File Name :target
:wa4300s_fat.bin
Server IP Address :192.168.1.1 192.168.0.20
Local IP Address :192.168.1.253 192.168.0.30
Gateway IP Address :0.0.0.0

==========================<Enter Ethernet SubMenu>==========================
|Note:the operating device is flash |
|<1> Download Application Program To SDRAM And Run |
|<2> Update Main Application File |
|<3> Modify Ethernet Parameter |
|<0> Exit To Main Menu |

============================================================================
Enter your choice(0-3): 2 ### ###第二次TFTP傳輸後 Update Main Application File 升級主應用程序文件!
Loading.....................................................................
............................................................................
............................................................................
..Done!
11293696 bytes downloaded!
Updating File flash:/wa4300s_fat.bin........................................
............................................................................
...........................................................Done!

==========================<Enter Ethernet SubMenu>==========================
|Note:the operating device is flash |
|<1> Download Application Program To SDRAM And Run |
|<2> Update Main Application File |
|<3> Modify Ethernet Parameter |
|<0> Exit To Main Menu |

============================================================================
Enter your choice(0-3): 0

===========================<EXTEND-BOOTWARE MENU>===========================
|<1> Boot System |
|<2> Enter Serial SubMenu |
|<3> Enter Ethernet SubMenu |
|<4> File Control |
|<5> Restore to Factory Default Configuration |
|<6> Skip Current System Configuration |
|<7> BootWare Operation Menu |
|<8> Clear Super Password |
|<9> Storage Device Operation |

============================================================================
Ctrl+C: Display Copyright
Ctrl+F: Format File System
Enter your choice(0-9): 0
System is starting...
Press Ctrl+D to access BASIC-BOOTWARE MENU
Booting Normal Extend BootWare....
The Extend BootWare is self-decompressing.........................Done!


  • *
  • H3C WA2610H BootWare, Version 1.07 *
  • *

    Copyright (c) 2004-2017 New H3C Technologies Co., Ltd.

Compiled Date : Jun 19 2017
CPU Type : ATHEROS AR9531
CPU L1 Cache : 32KB
CPU Clock Speed : 650MHz
Memory Type : SDRAM
Memory Size : 128MB
Memory Speed : 450MHz
BootWare Size : 512KB
Flash Size : 16MB
PCB Version : Ver.A

BootWare Validating...
Press Ctrl+B to enter extended boot menu...
Starting to get the main application file--flash:/wa4300s_fat.bin!..........
............................................................................
............................................................................
..........
The App file is self-decompressing..........................................
............................................................................
............................................................................
............................................................................
............................................................................
............................................................................
............................................................................
............................................................................
............................................................................
............................................................................
............................................................................
............................................................................
............................................................................
............................................................................
............................................................................
............................................................................
............................................................................
............................................................................
...........................................................Done!
System application is starting...
Startup configuration file does not exist.
User interface con0 is available.

Press ENTER to get started.
<WA2610H>
#Jan 1 00:00:26:418 2009 WA2610H SHELL/4/LOGIN:
Trap 1.3.6.1.4.1.25506.2.2.1.1.3.0.1<hh3cLogIn>: login from Console
%Jan 1 00:00:26:418 2009 WA2610H SHELL/5/SHELL_LOGIN: Console logged in from con0.
<WA2610H>
<WA2610H>
<WA2610H>
<WA2610H>dis ip int bri
<WA2610H>dis ip int brief
down: administratively down
(s): spoofing (l): loopback
Interface Physical Protocol IP Address Description
Vlan1 up up 192.168.0.50 --
<WA2610H>sys
System View: return to User View with Ctrl+Z.
[WA2610H]qu
<WA2610H>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.......
Configuration is saved to device successfully.
<WA2610H>y
^
% Unrecognized command found at ‘^‘ position.
<WA2610H>
<WA2610H>sys
System View: return to User View with Ctrl+Z.
[WA2610H]int vlan 1
[WA2610H-Vlan-interface1]ip add 192.168.0.118 24
[WA2610H-Vlan-interface1]qu
[WA2610H]qu
<WA2610H>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):
flash:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait........
%Jan 1 00:00:57:227 2009 WA2610H WMAC/6/WMAC_CHANNEL_CHANGE: Channel change for APID 1, RadioId 1 from channel 0 to channel 11...
Configuration is saved to device successfully.
<WA2610H>
<WA2610H>


順利拿到胖AP就沒有坑了嗎?
NO WAY .
配置胖AP,先打開無線任務,接入任務,新建SSID等功能子項,註意,密碼千萬要輸正確咯。
綁定射頻,開啟後 發現,安卓手機能用,蘋果手機用不了!
為啥?是不是加密方式有問題,
原來是DHCP池沒有配DNS,蘋果手機跟國產手機不通,沒有DNS就認為網絡不能用~
以上的坑印象最深,還有就是跳線會接觸不良導致傳輸時斷時續,剛開始AP獲取IP時端口頻繁UP,DOWN是正常的,要有耐心...

這次調AP確實遇到了坑,也怪我無線經驗太少,加上又是時間緊張,飯沒吃,覺沒睡了,現在回想也是酸爽...還好順利完成任務,回想起來那些坑倒是意猶未盡吶!

小灰的網工日常之華三瘦轉胖AP,我與華三的又一段孽緣呀~~~