目录
创建拓扑
R1配置
sysname r1 #修改路由器名称
undo info-center enable #关闭命令提示
vlan batch 101 #创建vlan101
interface Vlanif101 #进入vlan101
ip address 10.23.101.2 255.255.255.0 #设置vlan101 的IP地址
interface Ethernet0/0/0 #进入E0/0/0口
port link-type trunk #设置接口模式为trunk
port trunk allow-pass vlan 101 #允许vln101通过
SW配置
vlan batch 100 to 101 创建vlan
interface GigabitEthernet0/0/1
port link-type trunk
port trunk pvid vlan 100 #设置Trunk类型接口的缺省VLAN
port trunk allow-pass vlan 100 to 101
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 100 to 101
AC配置
vlan batch 100 to 101 创建vlan
dhcp enable 开启dhcp服务
interface Vlanif100
ip address 10.23.100.1 255.255.255.0
dhcp select interface 设置为从接口地址池获取IP
interface Vlanif101
ip address 10.23.101.1 255.255.255.0
dhcp select interface 设置为从接口地址池获取IP
dhcp server excluded-ip-address 10.23.101.2 从地址池排除这个地址
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 101ip route-static 0.0.0.0 0.0.0.0 10.23.101.2 设置缺省路由
capwap source interface vlanif100 vlanif100" 被指定为CAPWAP通信的源接口配置WLAN
[AC6605]wlan #进入WLAN
[AC6605-wlan-view]security-profile name wlan-net#创建一个安全配置文件,名称为wlan-net
[AC6605-wlan-sec-prof-wlan-net]q
[AC6605-wlan-view]ssid-profile name wlan-net #创建一个名称为wlan-net的ssid模版
[AC6605-wlan-ssid-prof-wlan-net]ssid wlan-net #引用这个ssid模版
Info: This operation may take a few seconds, please wait.done.
[AC6605-wlan-ssid-prof-wlan-net]q
[AC6605-wlan-view]vap-profile name wlan-net #创建一个名称为wlan-net的VAP模版
[AC6605-wlan-vap-prof-wlan-net]security-profile wlan-net #吧创建好的安全模版引入
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]service-vlan vlan-id 101#设置服务vlan的id为101(ap获取到的IP地址)
Info: This operation may take a few seconds, please wait.done.
[AC6605-wlan-vap-prof-wlan-net]forward-mode direct-forward #设置为直接转发
[AC6605-wlan-vap-prof-wlan-net]q
[AC6605-wlan-view]ap-group name ap1 # 创建一个名为ap1的ap组
Info: This operation may take a few seconds. Please wait for a moment.done.
[AC6605-wlan-ap-group-ap1]vap-profile wlan-net wlan 1 radio all#定义第 1 台接入点的射频,标红的地方是上方创建VAP的名称
Info: This operation may take a few seconds, please wait...done.
[AC6605-wlan-ap-group-ap1]q
[AC6605-wlan-view]ap-id 0 ap-mac 00e0-fc61-6690 # 创建ap,为mac认证
[AC6605-wlan-ap-0]ap-name area1 #给安排一个名称
[AC6605-wlan-ap-0]ap-group ap1 # ap加入到ap组里
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.
[AC6605-wlan-ap-0]q
[AC6605-wlan-view]
到这里就创建完成了进行查看
在完成后ap会发送射频
在里面的pc都可以获取到业务vlan下发的IP地址,连接后再进行查看