华为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参数

相关推荐
limengshi1383922 小时前
通信工程学习:什么是TFTP简单文件传输协议
网络·网络协议·学习·信息与通信
麻辣韭菜4 小时前
网络基础 【HTTP】
网络·c++·http
Deryck_德瑞克6 小时前
Java网络通信—TCP
java·网络·tcp/ip
GodK7776 小时前
IP 数据包分包组包
服务器·网络·tcp/ip
梁诚斌6 小时前
VSOMEIP代码阅读整理(1) - 网卡状态监听
运维·服务器·网络
ZachOn1y7 小时前
计算机网络:计算机网络概述 —— 描述计算机网络的参数
网络·tcp/ip·计算机网络·考研必备
我命由我123457 小时前
SSL 协议(HTTPS 协议的关键)
网络·经验分享·笔记·学习·https·ssl·学习方法
两点王爷8 小时前
使用WebClient 快速发起请求(不使用WebClientUtils工具类)
java·网络
wusam8 小时前
螺蛳壳里做道场:老破机搭建的私人数据中心---Centos下Docker学习03(网络及IP规划)
运维·服务器·网络·docker·容器
什么鬼昵称10 小时前
Pikachu-xxe-xxe漏洞
网络·安全·xxe