二层直连式AC组网

目录

创建拓扑

​编辑R1配置

 SW配置

AC配置


创建拓扑

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 101

ip 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地址,连接后再进行查看

  • 15
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值