华为AC+FIT AP组网配置

本文详细描述了在一个网络环境中,如何配置AC设备的VLAN、DHCP服务、CAPWAP隧道,以及如何为AP和STA设置SSID、VLAN划分和访问策略。特别关注了GigabitEthernet接口的VLAN策略对AP通信的影响。
摘要由CSDN通过智能技术生成

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。

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

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

  • 8
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值