华为AC+FIT AP组网配置

AC配置

vlan batch 100 to 101

dhcp enable

ip pool ap
 gateway-list 192.168.100.254 
 network 192.168.100.0 mask 255.255.255.0 

interface Vlanif100
 ip address 192.168.100.254 255.255.255.0
 dhcp select global

interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 100 to 101

#配置源接口CAPWAP隧道,该协议定义对AP进行管理、业务配置,即AC通过CAPWAP隧道来实现对AP的集中管理和控制。
capwap source interface vlanif100 

wlan
 #regulatory-domain-profile name default
  #country-code cn #默认国家码为中国,可不配
 security-profile name HCIA-WLAN
  security wpa-wpa2 psk pass-phrase HCIA-Datacom aes

 ssid-profile name HCIA-WLAN
  ssid HCIA-WLAN

 vap-profile name HCIA-WLAN
  service-vlan vlan-id 101 #配置VAP的业务VLAN
  ssid-profile HCIA-WLAN
  security-profile HCIA-WLAN
  #forward-mode direct-forward #配置VAP模板下的数据转发方式,默认是直接转发。可不配置

 ap-group name ap-group1
  #regulatory-domain-profile name default #引用默认管理模板
  vap-profile HCIA-WLAN wlan 1 radio all 
  #配置AP组引用VAP模板,AP上射频0、射频1、射频2 都使用VAP模板"HCIA-WLAN"的配置

 #添加AP设备 -- 离线导入AP
 #ap auth-mode mac-auth #配置AP认证模式为MAC地址认证,默认为MAC地址认证,可不用配置
 ap-id 0  ap-mac 00e0-fcae-5dc0 
  ap-name ap1
  ap-group ap-group1
 ap-id 1  ap-mac 00e0-fcaa-7c20 
  ap-name ap2
  ap-group ap-group1

SW1配置

vlan batch 100 to 101

dhcp enable

ip pool sta
 gateway-list 192.168.101.254
 network 192.168.101.0 mask 255.255.255.0
 dns-list 8.8.8.8 114.114.114.114

interface Vlanif101
 ip address 192.168.101.254 255.255.255.0
 dhcp select global

interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 100 to 101

interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 100 to 101

interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 100 to 101

#配置环回口IP进行测试网络连通性
interface LoopBack0
 ip address 10.0.1.1 255.255.255.255

SW2配置

vlan batch 100 to 101

interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 100 to 101

interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk pvid vlan 100
 port trunk allow-pass vlan 100 to 101

SW3配置

vlan batch 100 to 101

interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 100 to 101

interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk pvid vlan 100
 port trunk allow-pass vlan 100 to 101

AP1 MAC AP2 MAC

STA1

整体架构图

实验结果图

检查设备上线情况

查看 计入设备情况

查看VAP(虚拟AP)

  1. 当前组网下,若AC的GigabitEthernet0/0/1不允许VLAN101通过,对STA访问S1会有什么影响?为什么?若采用隧道转 发又是怎样的情况?

答 : 无 影 响 , 采 用 直 接 转 发 , 数 据 不 经 过 AC1 的 GigabitEthernet0/0/1 接 口 。 若 采 用 隧 道 转 发 , 则 需 要 GigabitEthernet0/0/1允许VLAN101通过,否则STA无法访问S1。

  1. 如果想让AP1和AP2下接入的STA属于不同的VLAN,在AC上需要做什么样的操作呢?

答:AP1和AP2使用不同的VAP模板,在对应的VAP模板下配置不同的service-VLAN参数

相关推荐
小冷爱学习!1 小时前
华为动态路由-OSPF-完全末梢区域
服务器·网络·华为
技术小齐2 小时前
网络运维学习笔记 016网工初级(HCIA-Datacom与CCNA-EI)PPP点对点协议和PPPoE以太网上的点对点协议(此处只讲华为)
运维·网络·学习
2501_904447742 小时前
华为发力中端,上半年nova14下半年nova15,大力普及原生鸿蒙
华为·智能手机·django·scikit-learn·pygame
MarkHD3 小时前
第十八天 WebView深度优化指南
华为·harmonyos
shimly1234564 小时前
tcpdump 用法示例
网络·测试工具·tcpdump
feiniao86515 小时前
2025年华为手机解锁BL的方法
华为·智能手机
xmweisi5 小时前
【华为】报文统计的技术NetStream
运维·服务器·网络·华为认证
VVVVWeiYee5 小时前
BGP配置华为——路径优选验证
运维·网络·华为·信息与通信
yourkin6666 小时前
TCP...
服务器·网络·tcp/ip
余多多_zZ8 小时前
鸿蒙初学者学习手册(HarmonyOSNext_API14)_组件截图(@ohos.arkui.componentSnapshot (组件截图) )
学习·华为·harmonyos·鸿蒙·鸿蒙系统