2013年11月18日 星期一

Controller Switch AP 設定套餐

Fat AP  換成Thin AP
直接在ap: format 在copy rcvk.tar  到AP上即可

或是檔名改成.default
PC IP就要改成10.0.0.2 (AP預設是10.0.0.1)

thin ap這樣就可以join controller
lwapp ap ip address 192.168.1.1 255.255.255.0
lwapp ap ip default-gateway 192.168.1.254
lwapp ap controller ip addr 123.123.123.123


POE-Switch 沒什麼特別設定

interface Vlan 123
 ip address 192.168.1.253 255.255.255.0
!
ip default-gateway 192.168.1.254
ip http server
ip http secure-server
!

controller set 是 set by set

controller 先接到一般switch 在接到POE switch 在接AP

RADIUS Server

controller->monitor->Application-> WLAN ID點進去可以看使用分析



2013年11月13日 星期三

AP885a.9217.0f84#lwapp ap ip address 192.168.4.6 255.255.255.0
You should configure Domain and Name Server from controller CLI/GUI.
AP885a.9217.0f84#lwapp ap ip default-gateway 192.168.4.254
AP885a.9217.0f84#lwapp ap controller ip addr 163.17.87.156
AP885a.9217.0f84#
Translating "CISCO-CAPWAP-CONTROLLER"...domain server (255.255.255.255)

*Mar  1 00:26:08.991: %CAPWAP-3-ERRORLOG: Could Not resolve CISCO-CAPWAP-CONTROLLER

2013年11月2日 星期六

趁還有點回憶趕緊記錄一下這次日本行

第一天晚上搭晚班飛機到大阪
從第二航廈搭接駁巴士到第一航廈,在搭電車到難波
在託著行李步行到飯店check in
放完行李後立馬逛半夜的道頓崛
先吃了豬肉丼在去吃一蘭拉麵,一蘭拉麵真的超好吃
 吃完後超飽超滿足的走回飯店
回飯店前去對面的超商逛逛
 逛完後就寢

隔天一早許久未見的國中同學出現,
check out後,把行李拉到車站置物櫃寄放
再一起到奈良看鹿,和一些寺廟 東大寺,春日神社
近距離看鹿還是頭一次,還可以摸摸拍拍照鹿很乖

春日神社裡面攤位穿著傳統服飾的店員也是有趣
還有水占卜...忘了是什麼
買了一支小鹿當紀念品,御首什麼的沒買..
東大寺也沒走進去看...有點趕時間,
沿途有許多外參觀的學生除了國小有制服外
高中男校傳統制服親眼看到也相當有趣,可惜沒拍照
最可愛的幼稚園制服團也沒有出現

然後午餐吃了特別的烏龍麵,外面用豆皮包著,相當特別也好吃
吃完後再吃個現做麻糬也是不錯好吃

然後搭車回難波,這時候才發現
原來近鐵五日卷電車直接入口的售票口蓋章就算啟用,看日期的

回難波後,第一件是就去買高級的pocky,還有好吃的水果蛋糕,
但是沒座位可以坐所以拿去道頓崛的星巴克點杯咖啡坐著吃
嗯好吃,吃完後摸摸旁邊蘋果攤的5s,真是滑順好用阿,看看包包的4s...啜泣

逛道頓崛啦
想說人潮其實也還好,但最後一天跑回來吃一蘭拉麵時人真的擠暴了
 第一個看到的就是星巴克,當然先看城市馬克杯,
不過看起來還好也就沒買,
接著就逛道頓崛主要商店街,除了簡單瀏覽一些藥粧店
接著去逛台灣沒有的H&M,跟ZARA差不多,也沒看到很喜歡的所以也沒亂買
一方面也怕第一天買太多去鈴鹿沒得買
走到尾的uniqlo,建築和店內裝潢還有商品擺設很有特色,不過也是沒看到喜歡的所以沒買..副牌的GU?感覺像高級的五分埔,網路說很好買,但看看也還好簡單看一看就結束.


逛完時間也差不多了,跟同學分開後,搭著5點半的近鐵特急前往名古屋
2個半小時的時間準時抵達,
看著準備好的地圖,距離飯店似乎也不遠,只有幾條街,所以就拉著行李走過去,錯了,其實很遠,還拉著行李.很坎

到飯店後,聯絡上要一起去F1的網友,就約出來一起吃飯,
第一次見網友還在日本真的很新鮮,吃了名古屋名產的雞翅.
吃完後就解散回飯店,


星期五一早約好再車站的全家商店等,
在一起搭車到賽道,
下車後自以為聰明的近鐵廣域卷可以搭接駁巴士,結果不含鈴鹿縣,
所以還是要買車票,一張380日幣,
抵達鈴鹿賽道一整個就很興奮...期待以久的這天終於到來
看到車之前,FP1已經開始,聽著那賽車的噪音真是無與倫比的開心
進到座位區沒什麼人,隨意走動拍照看看對面整排pit區

FP1結束後就是買東西時間,為了怕買不到,相當果決的買了2件polo和其他

FP2走過地下道,到對面的連續彎觀看,
看完後離開賽道前還跟車手人形立牌合照
晚餐飯店對面超商隨便吃


星期六一早在入口前一段路等車手出現,
FP3跟另一位版友走到賽道立體路段區觀看,
Qualify時坐在自己位置上觀看

看完後回名古屋,車站約吃飯,義式海鮮鍋粑飯,和打了蛋的pizza,大家聊天吃的很開心,結束後回飯店睡

星期天一早也是在路邊等車手,
接著到賽道內看車手繞場,
吃午餐
下午看正賽
看完後右邊開放衝到頒獎台 不過爆滿
再晚一些從地下道那邊一直走可以賽道走路.

走完後,離開賽道到車站人沒想像多
回名古屋後吃很強的親子丼 吃完後解散,是這一群人最後一次聚集在名古屋真是很難得的經歷和體驗.

隔天搭車回大阪
再去道頓崛吃一蘭拉麵,吃完後滿足的搭電車前往機場.
搭飛機回台灣.結束充實的日本行












2013年9月9日 星期一

讓指定IP mac 可通過 switch


Switch#sh run
Building configuration...

Current configuration : 4261 bytes
!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Switch
!
boot-start-marker
boot-end-marker
!
!
!
!
no aaa new-model
system mtu routing 1500
!
!
ip dhcp snooping vlan 10
ip dhcp snooping
!        
!
crypto pki trustpoint TP-self-signed-3926136960
 enrollment selfsigned
 subject-name cn=IOS-Self-Signed-Certificate-3926136960
 revocation-check none
 rsakeypair TP-self-signed-3926136960
!
!
crypto pki certificate chain TP-self-signed-3926136960
 certificate self-signed 01
  3082023F 308201A8 A0030201 02020101 300D0609 2A864886 F70D0101 04050030
 
  71073AB3 72A162DC 8CE8934D 696236D1 BCBA528B 3083F7BF B651115C 73278385 951A12
  quit
spanning-tree mode pvst
spanning-tree extend system-id
!
!
!
!
vlan internal allocation policy ascending
!
!
!
!
interface FastEthernet0
 no ip address
 shutdown
!
interface GigabitEthernet0/1
 ip verify source port-security
!
interface GigabitEthernet0/2
 ip verify source port-security
!
interface GigabitEthernet0/3
 spanning-tree portfast
 ip verify source port-security
!
interface GigabitEthernet0/4
 ip verify source port-security
!
interface GigabitEthernet0/5
 switchport access vlan 10
 spanning-tree portfast
 ip verify source port-security
!
interface GigabitEthernet0/6
 ip verify source port-security
!
interface GigabitEthernet0/7
 switchport access vlan 10
 ip arp inspection trust
 spanning-tree portfast
 ip verify source port-security
!
interface Vlan1
 no ip address
!
interface Vlan10
 ip address 192.168.1.1 255.255.255.0
!
ip classless
!
ip http server
ip http secure-server
!
ip source binding A820.6600.5AE1 vlan 10 192.168.1.2 interface Gi0/7
!
!
!
line con 0
 logging synchronous
line vty 0 4
 login
line vty 5 15
 login
!
end

Switch#

CiscoAP 新增SSID & 認證 & 設定

建立SSID名稱

config t
dot11 ssid xxxx
authentication (認證方式 open 或key-management)
guest-mode(有這指令就會廣播ssid,不廣播就不用輸入)



int Dot11radio0
ssid xxxx ?


int bvi1    <設定IP在這邊設定>
ip add



如果AP 或Switch 在開機時都要需要輸入boot才能開機,
輸入下面這行就能搞定
set MANUAL_BOOT no

參考設定
教學
cisco認證設定



 =======

ap#config t 
ap(config)#dot11 ssid   name123  
ap(config-ssid)#authentication open 
ap(config-ssid)#guest-mode


ap(config)#inter dot11Radio 0
ap(config-if)#encryption mode ciphers tkip 
ap(config-if)#ssid name123
ap(config)#dot11 ssid name123
ap(config-ssid)#authentication open
ap(config-ssid)#authentication key-management wpa
ap(config-ssid)#wpa-psk ascii pwd123
ap(config-if)#no shutdown


動指定IP:
ap(config-if)#int bvi 1 
ap(config-if)#ip addr 192.168.1.2 255.255.255.0



 ====

Current configuration : 1449 bytes
!
! Last configuration change at 23:21:51 UTC Fri Mar 1 2002
version 15.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname ap
!
!
logging rate-limit console 9
enable secret 5 $1$7euO$b7eCua8awdOZ1X4Ehb9ov0
!
no aaa new-model
no ip routing
no ip cef
!
!
!
!
dot11 syslog
!
dot11 ssid ffff
   authentication open
   authentication key-management wpa
   wpa-psk ascii 7 ssshtht
!
!
dot11 guest
!
!
!
username Cisco password 7 fasdf
!
!
bridge irb
!
!
!
interface Dot11Radio0
 no ip address
 no ip route-cache
 !
 encryption mode ciphers tkip
 !
 ssid ffff
 !
 antenna gain 0
 station-role root
 bridge-group 1
 bridge-group 1 subscriber-loop-control
 bridge-group 1 spanning-disabled
 bridge-group 1 block-unknown-source
 no bridge-group 1 source-learning
 no bridge-group 1 unicast-flooding
!
interface GigabitEthernet0
 no ip address
 no ip route-cache
 duplex auto
 speed auto
 bridge-group 1
 bridge-group 1 spanning-disabled
 no bridge-group 1 source-learning
!
interface BVI1
 ip address 192.168.1.10 255.255.255.0
 no ip route-cache
 ipv6 address dhcp
 ipv6 address autoconfig
 ipv6 enable
!
ip forward-protocol nd
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
 transport input all
!
end

ap#                    







Cisco AP 從Lightweight 轉到 Autonomous 模式

搞好久= =

debug capwap con cli
conf t
boot manual
 


reload



set IP_ADDR 192.168.0.2
set NETMASK 255.255.255.0
set DEFAULT_ROUTER 192.168.0.1
tftp_init
ether_init
flash_init
tar -xtract tftp://<TFTP_svr>/<Path_to_tar> flash:
set BOOT flash:/<image_directory>/<image_name>
set MANUAL_BOOT = no
set
boot



設定好後,把網路線插進G0,設定固定IP,等BVI1抓到IP 後,
就可以用網頁打開進去設定.



 reference
http://networkengineering.stackexchange.com/questions/1550/converting-ap-from-capwap-to-autonomous-bvi1-interface-gets-reverted-back-to-d


https://supportforums.cisco.com/docs/DOC-18268#Set_up_the_TFTP_Server

2013年8月26日 星期一

6500 module test

Router#hw-MODule module 1 reset
sh diagnostic result module 1 test all
sh diagnostic events    
sh hw-module subslot all