由淺入深玩轉(zhuǎn)華為WLAN——2 三層組網(wǎng)AP上線
轉(zhuǎn)載自微信公眾號(hào):網(wǎng)絡(luò)之路博客
一、實(shí)驗(yàn)?zāi)繕?biāo)
理解無(wú)線三層組網(wǎng)的特點(diǎn)
掌握三層組網(wǎng)AP上線的配置
掌握修改AP認(rèn)證方法的命令
二、實(shí)驗(yàn)拓?fù)?/strong>
(拓?fù)淅锩鍳W 201.1是寫錯(cuò)了,是101.1)
三、實(shí)驗(yàn)配置
1、基礎(chǔ)配置
AC基礎(chǔ)配置如下
#
vlan batch 101 to 102 800
#
interface Vlanif800
ip address 10.1.200.100 255.255.255.0
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 101 to 102 800
#
ip route-static 0.0.0.0 0.0.0.0 10.1.200.1
#
交換機(jī)配置如下
sysname SW1
#
vlan batch 101 to 102 800
#
interface Vlanif101
ip address 10.1.101.1 255.255.255.0
#
interface Vlanif102
ip address 10.1.102.1 255.255.255.0
#
interface Vlanif800
ip address 10.1.200.1 255.255.255.0
#
interface MEth0/0/1
interface GigabitEthernet0/0/1
port link-type access
port default vlan 101
stp edged-port enable
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 101
stp edged-port enable
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 102
stp edged-port enable
#
interface GigabitEthernet0/0/4
port link-type access
port default vlan 102
stp edged-port enable
#
interface GigabitEthernet0/0/5
port link-type trunk
port trunk allow-pass vlan 101 to 102 800
#
2、配置AP上線
修改AC的認(rèn)證方式
#
wlan
wlan ac source interface vlanif800
ap-auth-mode no-auth
#
配置交換機(jī)的DHCP選項(xiàng)
#
dhcp enable
#
interface Vlanif101
ip address 10.1.101.1 255.255.255.0
dhcp select interface
dhcp server option 43 sub-option 3 ascii 10.1.200.100
#
#
interface Vlanif102
ip address 10.1.102.1 255.255.255.0
dhcp select interface
dhcp server option 43 sub-option 3 ascii 10.1.200.100
#
因?yàn)楫?dāng)AP和AC不在同一網(wǎng)段時(shí),默認(rèn)AP無(wú)法找到控制器,此時(shí)在AP的網(wǎng)關(guān)交換機(jī)上做HCDP選項(xiàng)的配置,使用option 43告訴AP控制器的位置是10.1.200.100
四、檢查AP上線
在控制器上使用命令dis ap all ,如果看不到AP上線請(qǐng)重啟AP
[huawei-AC6005]dis ap all
All AP information(Normal-4,UnNormal-0):
——————————————————————————
AP AP AP Profile AP AP
/Region
ID Type MAC ID State Sysname
——————————————————————————
0 AP6010DN-AGN 00e0-fc03-1460 0/0 normal huawei-ap-0
1 AP6010DN-AGN 00e0-fc03-e500 0/0 normal ap-1
2 AP6010DN-AGN 00e0-fc03-c220 0/0 normal ap-2
3 AP6010DN-AGN 00e0-fc03-e000 0/0 normal ap-3
——————————————————————————
Total number: 4
五、擴(kuò)展學(xué)習(xí)
如何在AP上重啟AP及查看AP的CAPWAP信息
重啟AP可以在AP上進(jìn)行,命令如下,如果有認(rèn)證賬號(hào)admin 密碼admin@huawei.com
reboot
System will reboot! Continue ? [y/n]:y
Info: system is rebooting ,please wait…
等重啟結(jié)束后,可以在AP上校驗(yàn)CAPWAP的連接
dis capwap link state
——————————————————————————
LINK AP AP AP InIf FSM
ID IPAddr CPort DPort Index State
——————————————————————————
0 10.1.101.254 50736 50737 0 JOIN
——————————————————————————
dis capwap link state
——————————————————————————
LINK AP AP AP InIf FSM
ID IPAddr CPort DPort Index State
——————————————————————————
0 10.1.101.254 50736 50737 0 RUN
——————————————————————————
dis capwap link-detailed-info linkid 0
——————————————————————————
LinkID : 0
AP State : RUN
IP VERSION : 4
AP IPAddr : 10.1.101.254
AC IPAddr : 10.1.200.100
AP ControlPort: 50736
AP DataPort : 50737
AP Type : AP6010DN-AGN
AP Macaddress : 00e0-fc03-1460
AP Sn : 2102354483100842F558
AP DataFwdMode: 0
AP InIfIndex : 0
AP LastState : DATA_CHECK
AP SessionID : 3fce000-4ced6014-cfd89303-27c7e7fe
Sesstion timer : 0
DataCheckTimer timer : 0
EchoIntervalTimer timer : 17
ResetTimer timer : 0
KeepAliveTimer timer : 0
dtls state : 0
DiscoveryTimer timer : 20
RevertiveTimer timer : 0
Active LinkId : 0
Primary LinkId : 0
Config Flag : 0
Start ProtectLink : 0
Double Link Switch : 0
Discovery times : 0
TearDown times : 2
AC Num : 1
AC MAC : 00e0-fc03-44bc
——————————————————————————
查看AP的基礎(chǔ)信息
dis system-information
System Information
===============================================
Serial Number : 2102354483100842F558
System Time : 2058-08-12 17:12:04
System Up time : 0:04
System Name : huawei-ap-0
Country Code : CN
MAC Address : 00:e0:fc:03:14:60
Radio 2.4GHz MAC Address : 00:e0:fc:03:14:60
Radio 5GHz MAC Address : 00:e0:fc:03:14:70
IP Address : 10.1.101.254
Subnet Mask : 255.255.255.0
Default Gateway : 10.1.101.1
Management VLAN ID(AP) : 1
IP MODE : dhcp
Slot Status : Dual band(an/bgn)
AP Type : AP6010DN-AGN
Board Type : AP6010DN
Board Serial Number :
Board Bom Version : 0
Boot Rom Version : –
Software Version : V200R003C00
Hardware Version : H86D2TD1D200 VER.A
Telnet Access : Enable
User Name : admin
===============================================
! 提問與分享(想提高自己,從獨(dú)立思考與分享開始)
提問:如果事先不知道AP的MAC與SN該怎么辦呢?分享:實(shí)驗(yàn)可以通過模擬器直接完成,記得老版本選用分享的考試版本即可,最新版本是采用的V2R7命令行有差別。
實(shí)驗(yàn)源文件:
鏈接:https://pan.baidu.com/s/13jfXOjDTo4J_TzjW-qAllQ
提取碼:aclz
復(fù)制這段內(nèi)容后打開百度網(wǎng)盤手機(jī)App,操作更方便哦