H3C: 通过DNS发现方式建立CAPWAP隧道配置举例(通过DNS方式注册AP、AP上线)
H3C: 通过DNS发现方式建立CAPWAP隧道配置举例(通过DNS方式注册AP、AP上线)
http://www.h3c.com/cn/d_202006/1300930_30005_0.htm#_Toc41927212
1. 组网需求
DHCP server、DNS server、AP和AC通过交换机连接。在AP上配置DNS客户端功能,AP会通过动态域名解析功能,将AC域名abc解析为IP地址;DNS server的IP地址是1.1.1.4/24,域名服务器上存在abc域,且abc域中包含域名“h3c.abc”和AC的IP地址2.1.1.1/24的对应关系。
2. 组网图
图1-5 通过DNS发现方式建立CAPWAP隧道组网图
3. 配置步骤
(1) 配置DHCP server
# 使能DHCP服务,配置DHCP地址池1,配置AC域名后缀为abc。
<DHCP server> system-view
[DHCP server] dhcp enable
[DHCP server] dhcp server ip-pool 1
[DHCP server-dhcp-pool-1] network 1.1.1.0 mask 255.255.255.0
[DHCP server-dhcp-pool-1] domain-name abc
[DHCP server-dhcp-pool-1] dns-list 1.1.1.4
[DHCP server-dhcp-pool-1] gateway-list 1.1.1.2
[DHCP server-dhcp-pool-1] quit
[DHCP server] quit
(2) 配置DNS server
在DNS server上配置域名“h3c.abc”和AC的IP地址2.1.1.1/24的映射关系。(略)
(3) 配置AC
# 配置AC的VLAN-interface 1的IP地址为2.1.1.1/24。
<AC> system-view
[AC] interface vlan-interface 1
[AC-Vlan-interface1] ip address 2.1.1.1 24
[AC-Vlan-interface1] quit
# 配置缺省路由,指定下一跳为2.1.1.2。
[AC] ip route-static 0.0.0.0 0 2.1.1.2
# 创建ap1,并配置序列号为210235A1BSC123000050。
[AC] wlan ap ap1 model WA4320i-ACN
[AC-wlan-ap-ap1] serial-id 210235A1BSC123000050
[AC-wlan-ap-ap1] quit
# AP启动后,AP会从DHCP server自动获取IP地址1.1.1.1,同时获取AC的域名后缀abc和DNS服务器地址1.1.1.4,AP将从自身获取到的主机名h3c和DHCP服务器返回的域名后缀合在一起形成完整的AC域名h3c.abc,AP通过DNS server进行AC域名解析。解析成功后,AP拥有了自动分配的本地IPv4地址和需要建立CAPWAP隧道连接的AC的IP地址2.1.1.1,开始发现AC的过程并建立CAPWAP隧道。
4. 验证配置
# 查看AP的详细信息,可以看到AP与AC成功建立CAPWAP隧道连接并进入Run状态,发现方式为DNS方式。
[AC] display wlan ap name ap1 verbose AP name : ap1 AP ID : 1 AP group name : default-group State : Run Backup Type : Master Online time : 0 days 1 hours 25 minutes 12 seconds System up time : 0 days 2 hours 22 minutes 12 seconds Model : WA4320i-ACN Region code : CN Region code lock : Disable Serial ID : 210235A1BSC123000050 MAC address : 0AFB-423B-893C IP address : 1.1.1.1 UDP control port number : 26147 UDP data port number : 26147 H/W version : Ver.C S/W version : E2321 Boot version : 1.01 USB state : N/A Power level : N/A Power info : N/A Description : wtp1 Priority : 4 Echo interval : 10 seconds Echo count : 3 counts Keepalive interval : 10 seconds Discovery-response wait-time : 2 seconds Statistics report interval : 50 seconds Fragment size (data) : 1500 Fragment size (control) : 1450 MAC type : Local MAC & Split MAC Tunnel mode : Local Bridging & 802.3 Frame & Native Frame CAPWAP data-tunnel status : Up Discovery type : DNS Retransmission count : 3 Retransmission interval : 5 seconds Firmware upgrade : Enabled Sent control packets : 1 Received control packets : 1 Echo requests : 147 Lost echo responses : 0 Average echo delay : 3 Last reboot reason : User soft reboot Latest IP address : 10.1.0.2 Current AC IP : N/A Tunnel down reason : Request wait timer expired Connection count : 1 Backup Ipv4 : Not configured Backup Ipv6 : Not configured Ctrl-tunnel encryption : Disabled Ctrl-tunnel encryption state : Not encrypted Tunnel encryption : Disabled Data tunnel encryption : Disabled Data-tunnel encryption state : Not encrypted LED mode : Normal Remote configuration : Enabled Radio 1: Basic BSSID : 7848-59f6-3940 State : Up Type : 802.11ac Antenna type : internal Client dot11ac-only : Disabled Client dot11n-only : Disabled Channel bandwidth : 20/40/80MHz Operating bandwidth : 20/40/80MHz Secondary channel mode : SCB Short GI for 20MHz : Supported Short GI for 40MHz : Supported Short GI for 80MHz : Supported Short GI for 160MHz : Not supported MIMO : Not Config Green-Energy-Management : Disabled A-MSDU : Enabled A-MPDU : Enabled LDPC : Not Supported STBC : Supported Operational VHT-MCS Set: Mandatory : Not configured Supported : NSS1 0,1,2,3,4,5,6,7,8,9 NSS2 0,1,2,3,4,5,6,7,8,9 Multicast : Not configured Operational HT MCS Set: Mandatory : Not configured Supported : 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 Multicast : Not configured Channel : 44(auto) Channel usage(%) : 15 Max power : 20 dBm Operational rate: Mandatory : 6, 12, 24 Mbps Multicast : Auto Supported : 9, 18, 36, 48, 54 Mbps Disabled : Not configured Distance : 1 km ANI : Enabled Fragmentation threshold : 2346 bytes Beacon interval : 100 TU Protection threshold : 2346 bytes Long retry threshold : 4 Short retry threshold : 7 Frame aging time in cache : 2000 ms Noise floor : -102 dBm Smart antenna : Enabled Smart antenna policy : Auto Protection mode : rts-cts MU-TxBF : Enabled SU-TxBF : Enabled Continuous mode : N/A HT protection mode : No protection Radio 2: Basic BSSID : 7848-59f6-3950 State : Down Type : 802.11b Antenna type : internal Client dot11n-only : Disabled Chnnel bandwidth : 20MHz Operating bandwidth : 20MHz Secondary channel mode : SCN Short GI for 20MHz : Supported Short GI for 40MHz : Supported A-MSDU : Enabled A-MPDU : Enabled LDPC : Not Supported STBC : Supported Operational HT MCS Set: Mandatory : Not configured Supported : 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 Multicast : Not configured Channel : 5(auto) Channel usage(%) : 0 Max power : 20 dBm Preamble type : Short Operational rate: Mandatory : 1, 2, 5.5, 11 Mbps Multicast : Auto Supported : 6, 9, 12, 18, 24, 36, 48, 54 Mbps Disabled : Not configured Distance : 1 km ANI : Enabled Fragmentation threshold : 2346 bytes Beacon interval : 100 TU Protection threshold : 2346 bytes Long retry threshold : 4 Short retry threshold : 7 Frame aging time in cache : 2000 ms Noise floor : 0 dBm Smart antenna : Enabled Smart antenna policy : Auto Protection mode : rts-cts Continuous mode : N/A HT protection mode : No protection
2、本资源基本为原创,部分来源其他付费资源平台或互联网收集,如有侵权请联系及时处理。
3、本站大部分文章的截图来源实验测试环境,请不要在生产环境中随意模仿,以免带来灾难性后果。
转载请保留出处: www.zh-cjh.com珠海陈坚浩博客 » H3C: 通过DNS发现方式建立CAPWAP隧道配置举例(通过DNS方式注册AP、AP上线)
作者: cjh
手机扫一扫,手机上查看此文章: |
一切源于价值!
其他 模板文件不存在: ./template/plugins/comment/pc/index.htm