技術の進歩目覚ましいWiFiの世界であっという間に一線を退いた Cisco Aironet AP1252AG、AP1262N を一時的に再利用しようと、コンソールから以前の設定を 初期化 して基本的なWiFiの設定を追加しました。
Aironet AP1252AGの初期化
まず1台目がこちらのCisco Aironet AP1252AG、金属筐体でかなり重いので、アンテナに荷重が掛からないように置かないと、重みでアンテナが損傷することも。
底面のコンソール端子にケーブルをつなぎ、Ubuntu 18.04母艦のシリアルターミナルに繋いで電源ON。
1 2 3 4 5 6 7 8 9 10 11 |
IOS Bootloader - Starting system. Xmodem file system is available. flashfs[0]: 151 files, 7 directories flashfs[0]: 0 orphaned files, 0 orphaned directories flashfs[0]: Total bytes: 31868928 flashfs[0]: Bytes used: 6408192 flashfs[0]: Bytes available: 25460736 flashfs[0]: flashfs fsck took 16 seconds. Reading cookie from flash parameter block...done. Base Ethernet MAC address: 00:07:7d:##:##:## Loading "flash:/c1250-k9w7-mx.124-10b.JDA3/c1250-k9w7-mx.124-10b.JDA3"...####### |
とシステムイメージを読み始めたところで ESC キーを押して中断させます。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
bad mzip file, unknown zip method Error loading "flash:/c1250-k9w7-mx.124-10b.JDA3/c1250-k9w7-mx.124-10b.JDA3" Interrupt within 5 seconds to abort boot process. Boot process failed... The system is unable to boot automatically. The BOOT environment variable needs to be set to a bootable image. C1250 Boot Loader (C1250-BOOT-M) Version 12.4(18a)JA1, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Compiled Fri 23-Jan-09 20:46 by prod_rel_team ap: |
flash: の中を確認して、
1 2 3 4 5 6 7 8 9 10 11 |
ap: dir flash: Directory of flash:/ 2 -rwx 3322 <date> config.txt 3 -rwx 27 <date> private-config 4 -rwx 303 <date> env_vars 5 drwx 512 <date> c1250-k9w7-mx.124-10b.JDA3 157 -rwx 4 <date> FOC152934FC 158 -rwx 2072 <date> private-multiple-fs 25460736 bytes available (6408192 bytes used) |
次の削除・リネームのファイル操作の後、再起動してみます。
- delete flash:private-multiple-fs
- delete flash:private-config
- rename flash:config.txt flash:config.old
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
ap: delete flash:private-multiple-fs Are you sure you want to delete "flash:private-multiple-fs" (y/n)?y File "flash:private-multiple-fs" deleted ap: delete flash:private-config Are you sure you want to delete "flash:private-config" (y/n)?y File "flash:private-config" deleted ap: rename flash:config.txt flash:config.old ap: dir flash: Directory of flash:/ 3 -rwx 303 <date> env_vars 5 drwx 512 <date> c1250-k9w7-mx.124-10b.JDA3 157 -rwx 4 <date> FOC152934FC 158 -rwx 3322 <date> config.old 25462272 bytes available (6406656 bytes used) ap: reset Are you sure you want to reset the system (y/n)?y System resetting... |
通常起動後、確認するとだいぶ以前の設定が消えたように思えたのですが、設定をよく確認するとネットワーク設定の一部が残っていました。
1 2 3 4 5 |
ip name-server 192.168.6.5 interface BVI1 ip address 192.168.6.202 255.255.255.0 ! |
電源プラグを抜いて、本体底面のコンソール端子隣にある MODE スイッチを押したまま、電源プラグを挿して起動させることで上記のうち、 BVI1 インターフェイスの固定IPアドレスは消えました。
最後まで残った ip name-server 設定は個別に削除して、ようやく初期状態まで戻すことができました。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
no service pad service timestamps debug datetime msec service timestamps log datetime msec service password-encryption ! hostname ap ! enable secret 5 $1$9wrH$NZ25ADlhb4POWRPdXQbv9. ! no aaa new-model ! ! power inline negotiation prestandard source ! ! username Cisco password 7 1531021F0725 ! bridge irb ! ! interface Dot11Radio0 no ip address no ip route-cache shutdown station-role root bridge-group 1 bridge-group 1 subscriber-loop-control bridge-group 1 block-unknown-source no bridge-group 1 source-learning no bridge-group 1 unicast-flooding bridge-group 1 spanning-disabled ! interface Dot11Radio1 no ip address no ip route-cache shutdown no dfs band block channel dfs station-role root bridge-group 1 bridge-group 1 subscriber-loop-control bridge-group 1 block-unknown-source no bridge-group 1 source-learning no bridge-group 1 unicast-flooding bridge-group 1 spanning-disabled ! interface GigabitEthernet0 no ip address no ip route-cache duplex auto speed auto bridge-group 1 no bridge-group 1 source-learning bridge-group 1 spanning-disabled ! interface BVI1 ip address dhcp client-id GigabitEthernet0 no ip route-cache ! ip http server no ip http secure-server ip http help-path http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag bridge 1 route ip ! ! ! line con 0 line vty 0 4 login local ! end |
Aironet AP1252AGの基本設定
初期化されたAP1252AGでは、LANポートは既にDHCPクライアントモードになっていたので、これをそのまま利用することにして、必要なWiFiプロファイルと機器の基本設定を以下の要領で発行しました。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
no logging console hostname AP1252AG clock timezone +0800 8 username admin secret ######## no username Cisco enable secret ######## dot11 ssid WIFI authentication open authentication key-management wpa version 2 wpa-psk ascii ######## guest-mode interface Dot11Radio0 encryption mode ciphers aes-ccm ssid WIFI channel least-congested 1 6 11 channel width 40-above power client max power local max no shutdown ! interface Dot11Radio1 encryption mode ciphers aes-ccm ssid WIFI channel width 40-above no shutdown ! line con 0 exec-timeout 0 0 length 0 line vty 0 4 exec-timeout 0 0 login local ! sntp server 118.143.17.82 sntp broadcast client end |
こうして組み上がった設定がこちらです。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
no service pad service timestamps debug datetime msec service timestamps log datetime msec service password-encryption ! hostname AP1252AG ! no logging console enable secret 5 ######################### ! no aaa new-model clock timezone +0800 8 ! ! ! dot11 ssid WIFI authentication open authentication key-management wpa version 2 guest-mode wpa-psk ascii 7 ################## ! power inline negotiation prestandard source ! ! username admin secret 5 ############################### ! bridge irb ! ! interface Dot11Radio0 no ip address no ip route-cache ! encryption mode ciphers aes-ccm ! ssid WIFI ! channel width 40-above channel least-congested 2412 2437 2462 station-role root bridge-group 1 bridge-group 1 subscriber-loop-control bridge-group 1 block-unknown-source no bridge-group 1 source-learning no bridge-group 1 unicast-flooding bridge-group 1 spanning-disabled ! interface Dot11Radio1 no ip address no ip route-cache ! encryption mode ciphers aes-ccm ! ssid WIFI ! no dfs band block channel width 40-above channel dfs station-role root bridge-group 1 bridge-group 1 subscriber-loop-control bridge-group 1 block-unknown-source no bridge-group 1 source-learning no bridge-group 1 unicast-flooding bridge-group 1 spanning-disabled ! interface GigabitEthernet0 no ip address no ip route-cache duplex auto speed auto bridge-group 1 no bridge-group 1 source-learning bridge-group 1 spanning-disabled ! interface BVI1 ip address dhcp client-id GigabitEthernet0 no ip route-cache ! ip http server no ip http secure-server ip http help-path http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag bridge 1 route ip ! ! ! line con 0 exec-timeout 0 0 length 0 line vty 0 4 exec-timeout 0 0 login local ! sntp server 118.143.17.82 sntp broadcast client |
試行錯誤の1台目の経験を踏まえ、次ページではAironet AP1262Nの初期化と基本設定へ進みます。
ページ : 1 2