首页 > 其他分享 >AC+AP(FIT)二层组网

AC+AP(FIT)二层组网

时间:2024-01-24 22:01:03浏览次数:27  
标签:AC wlan FIT AP vlan ap AC6605 SW1 net

AC+FITAP二层组网

1.AC旁挂式组网

思路:AC作为DHCP服务器位AP分配管理地址;SW1作为DHCP服务器为STA分配地址;AC采取隧道转发,所以交换机下面只需要透传VLAN100

先从下往上配置,联通网络再做其余配置

SW2配置

[SW2]vlan 100
[SW2-vlan100]q
[SW2]int g0/0/2
[SW2-GigabitEthernet0/0/2]port link-type access 
[SW2-GigabitEthernet0/0/2]port default vlan 100
[SW2-GigabitEthernet0/0/2]int g0/0/1
[SW2-GigabitEthernet0/0/1]port link-type hybrid 
[SW2-GigabitEthernet0/0/1]port hybrid tagged vlan 100
[SW2-GigabitEthernet0/0/1]dis this
#
interface GigabitEthernet0/0/1
 port hybrid tagged vlan 100
#
return
由于采取的时AC隧道转发,所以不需要透传VLAN101

SW1配置

创建并透传相应VLAN
[SW1]vlan batch 100 101 4000
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1]int g0/0/2
[SW1-GigabitEthernet0/0/2]port hybrid tagged vlan 100
[SW1-GigabitEthernet0/0/2]int g0/0/3
[SW1-GigabitEthernet0/0/3]port hybrid tagged vlan 100 101
[SW1-GigabitEthernet0/0/3]int g0/0/1
[SW1-GigabitEthernet0/0/1]port link-type access 	
[SW1-GigabitEthernet0/0/1]port default vlan 4000

做基于接口的DHCP
[SW1]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[SW1]int vlan 101
[SW1-Vlanif101]ip add 10.1.101.1 24 
[SW1-Vlanif101]dhcp select interface 
[SW1-Vlanif101]dis this
#
interface Vlanif101
 ip address 10.1.101.1 255.255.255.0
 dhcp select interface
#
return
[SW1-Vlanif101]

给VLAN4000添加IP地址
[SW1-Vlanif101]int vlan 4000
[SW1-Vlanif4000]ip add 172.16.1.2 30
[SW1-Vlanif4000]dis this
#
interface Vlanif4000
 ip address 172.16.1.2 255.255.255.252
#
return
[SW1-Vlanif4000]

AC配置

在AC上做基于接口的DHCP
[AC6605]int vlan 100
[AC6605-Vlanif100]dhcp select interface 
[AC6605-Vlanif100]dis this
#
interface Vlanif100
 ip address 10.1.100.1 255.255.255.0
 dhcp select interface
#
return
[AC6605-Vlanif100]

透传VLAN
AC6605]int g0/0/1
[AC6605-GigabitEthernet0/0/1]port hybrid tagged vlan 100 101

AR只是简单配置IP地址与LOOPBACK;向下指明细路由,不做赘述。效果如下

AC配置

创建域管理模板,并添加国家代码
[AC6605-wlan-view]regulatory-domain-profile name domain
[AC6605-wlan-regulate-domain-domain]country-code cn
Info: The current country code is same with the input country code.
[AC6605-wlan-regulate-domain-domain]dis this
#
return

创建AP组,并在AP组引用域管理模板
AC6605-wlan-view]ap-group name ap-group1
Info: This operation may take a few seconds. Please wait for a moment.done.
[AC6605-wlan-ap-group-ap-group1]regulatory-domain-profile doamin
Warning: Modifying the country code will clear channel, power and antenna gain c
onfigurations of the radio and reset the AP. Continue?[Y/N]:y
Error: The binding profile does not exist.
[AC6605-wlan-ap-group-ap-group1]

配置AC源接口地址,非双栈场景,AC必须配置唯一的源地址或源接口,用于AC和AP间建立CAPWAP隧道通信
[AC6605]capwap source interface Vlanif 100

AP上线,这里选用MAC地址上线AP
[AC6605-wlan-view]ap auth-mode mac-auth    认证方式选择为MAC地址验证
[AC6605-wlan-view]ap-id 0 ap-mac 00e0-fc66-7640
[AC6605-wlan-ap-0]ap-name cookie    这里的名字就是为了便于自己认识
[AC6605-wlan-ap-0]ap-group ap-group1    将AP加入到ap-group1组中
Warning: This operation may cause AP reset. If the country code changes, it will
 clear channel, power and antenna gain configurations of the radio, Whether to c
ontinue? [Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment.. done.
查看AP是否上线,字段state为nor代表成功上线
[AC6605]dis ap all
Info: This operation may take a few seconds. Please wait for a moment.done.
Total AP information:
nor  : normal          [1]
--------------------------------------------------------------------------------
------------
ID   MAC            Name   Group     IP         Type            State STA Uptime
--------------------------------------------------------------------------------
------------
0    00e0-fc66-7640 cookie ap-group1 10.1.100.2 AP6050DN        nor   1   10M:32
S
--------------------------------------------------------------------------------
------------
Total: 1
[AC6605]

创建SSID,Security,vap模板;为了方便所有模板名称都为wlan-net
[AC6605-wlan-view]ssid-profile name wlan-net
[AC6605-wlan-ssid-prof-wlan-net]ssid wlan-net 
Info: This operation may take a few seconds, please wait.done.
[AC6605-wlan-ssid-prof-wlan-net]dis this
#
  ssid wlan-net
#
return

[AC6605-wlan-view]security-profile name wlan-net
[AC6605-wlan-sec-prof-wlan-net]security wpa-wpa2 psk pass-phrase a1234567 aes
[AC6605-wlan-sec-prof-wlan-net]dis this
#
  security wpa-wpa2 psk pass-phrase %^%#2x{)HVEjI.6uL{,o1IT&~E1'-)9aW'~[}OP&CrhK
%^%# aes
#
return

[AC6605-wlan-view]vap-profile name wlan-net
[AC6605-wlan-vap-prof-wlan-net]forward-mode tunnel 
Info: This operation may take a few seconds, please wait.done.
[AC6605-wlan-vap-prof-wlan-net]service-vlan vlan-id 101
Info: This operation may take a few seconds, please wait.done.
[AC6605-wlan-vap-prof-wlan-net]ssid-profile wlan-net 引用SSID模板
Info: This operation may take a few seconds, please wait.done.
[AC6605-wlan-vap-prof-wlan-net]security-profile wlan-net 引用security模板
Info: This operation may take a few seconds, please wait.done.
[AC6605-wlan-vap-prof-wlan-net]dis this
#
  forward-mode tunnel
  service-vlan vlan-id 101
  ssid-profile wlan-net
  security-profile wlan-net
#
return
在AP组里面,引用vap模板
[AC6605-wlan-view]ap-group name ap-group1
[AC6605-wlan-ap-group-ap-group1]vap-profile wlan-net wlan 1 radio all
Info: This operation may take a few seconds, please wait...done.
[AC6605-wlan-ap-group-ap-group1]q
[AC6605-wlan-view]dis vap all
Info: This operation may take a few seconds, please wait.
WID : WLAN ID            
-----------------------------------------------------------------------------
AP ID AP name RfID WID  BSSID          Status  Auth type     STA   SSID    
-----------------------------------------------------------------------------
0     cookie  0    1    00E0-FC66-7640 ON      WPA/WPA2-PSK  0     wlan-net
0     cookie  1    1    00E0-FC66-7650 ON      WPA/WPA2-PSK  0     wlan-net
-----------------------------------------------------------------------------
Total: 2
[AC6605-wlan-view]

效果图

2.AC直连组网

标签:AC,wlan,FIT,AP,vlan,ap,AC6605,SW1,net
From: https://www.cnblogs.com/colk/p/17985953

相关文章

  • Map集合做投票功能
    1publicstaticvoidmain(String[]args){2//学生选景点a,b,c,d四个景点,80个学生3String[]scene={"A","B","C","D"};4StringBuildersb=newStringBuilder();5Randomr=newRand......
  • Logback排除指定包/类/方法日志输出
    排除指定包/类/方法日志输出如下为logback.xml的配置<springProfilename="pro"><appendername="BUSINESS_API"class="ch.qos.logback.core.rolling.RollingFileAppender"><file>/data/log/${projectName}/api_${p......
  • Apiserver -- 停掉问题排查
    1.错误133环境中apiserver总是停掉,重启kubelet会让apiserver启动,但过一段时间就会停掉kubectlgetnodes#==>错误Theconnectiontotheserver192.168.0.133:6443wasrefused-didyouspecifytherighthostorport?2.排错过程#1.查询apiserver进程ps-e......
  • 高效Mac开发工具大揭秘:提升后端程序员的生产力秘籍
    一、前言作为一名后端开发者,选择正确的工具能显著提高我们的工作效率。在这篇文章中,我将分享我多年使用Mac进行开发所累积的心得,介绍一些我认为对后端程序员特别有帮助的Mac软件和插件。二、软件分类1)提升效率的Mac小工具1.1)ishot截图工具,为什么好用?对我来讲,我喜欢它的地方......
  • 支付宝:多线程事务怎么回滚?说用 @Transactional 可以回去等通知了!
    1,最近有一个大数据量插入的操作入库的业务场景,需要先做一些其他修改操作,然后在执行插入操作,由于插入数据可能会很多,用到多线程去拆分数据并行处理来提高响应时间,如果有一个线程执行失败,则全部回滚。2,在spring中可以使用@Transactional注解去控制事务,使出现异常时会进行回滚,在多线程......
  • Linux网络编程基础API
    目录socket地址API创建socket命名socket监听socket接收连接发起连接关闭连接数据读写带外标记地址信息函数socket选项网络信息APIsocket地址API主机字节序和网络字节序在Linux系统中,主机字节序(HostByteOrder)和网络字节序(NetworkByteOrder)是两个重要的概念。主机字节序......
  • 使用 For each 循环替换xelement操作中断
     使用Foreach循环替换xml元素xelement时,只能操作一个然后就中断了.是因为修改了枚举组自身,导致foreach中断.  解决方案: 在枚举组添加ToArray转换为数组或列表后再进行操作. ForEachbrAsXElementInSelectorXe.......
  • Oracle数据类型的简单学习之一
    Oracle数据类型的简单学习之一背景因为信创安可替代的发展有很多项目提到了数据库切换到国产数据库的要求.一般情况是要求从Oracle/SQLServer迁移到国产的:达梦/瀚高/人大金仓/南大通用等数据库.但是因为Oracle作为数据库领域No.1的存在他对SQL的规范标准支持的并不......
  • AWS ECS + CloudMap + Lambda workshop (一)
    第一篇:创建一个由ECS托管的nodejs服务一)创建拥有AdministratorAccess的IAMUser,在权限设置时,直接给予AdministratorAccess二)ECR服务注册代码仓库输入名称,完成Copy镜像库的URIXXXXXXXX.dkr.ecr.cn-northwest-1.amazonaws.com.cn/nodejs-test-app使用docker命令上传代......
  • Apipost自动化测试+Jenkins实现持续集成
    Apipost自动化测试支持「持续集成」功能,在安装了Apipost的服务器中输入命令,即可运行测试脚本。创建自动化测试脚本在创建好的测试用例中选择「持续集成」 点击新建,配置运行环境、循环次数、间隔停顿后点击保存会生成命令。 安装Apipost-clinpminstall-gapipost-cl......