华为AC+AP的无线配置(实验小结)

实验思路

我需要配置vlan 10 20 30 40,其中我想让vlan10为管理vlan,然后vlan20 30为业务vlan,将vlan20分配给AP1,vlan30分配给AP3,我通过dhcp的形式下发vlan10 20 30的地址,其中vlan40我将设置为access口,与上联链路进行连接,然后实现全网互通

SW2:

vlan batch 10 20 30
#

interface Ethernet0/0/1

 port link-type trunk

 port trunk allow-pass vlan 2 to 4094

#

interface Ethernet0/0/2

 port link-type trunk

 port trunk pvid vlan 10

 port trunk allow-pass vlan 10 20

#

interface Ethernet0/0/3

 port link-type trunk

 port trunk pvid vlan 10

 port trunk allow-pass vlan 10 30

#

SW1:

vlan batch 10 20 30 40

dhcp enable



#

interface Vlanif10

 ip address 10.1.1.2 255.255.255.0

#

interface Vlanif20

 ip address 20.1.1.1 255.255.255.0

 dhcp select interface

#

interface Vlanif30

 ip address 30.1.1.1 255.255.255.0

 dhcp select interface

#

interface Vlanif40

 ip address 40.1.1.1 255.255.255.0

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

 port link-type trunk

 port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/2

 port link-type access

 port default vlan 40

#

interface GigabitEthernet0/0/3

 port link-type trunk

 port trunk allow-pass vlan 2 to 4094

#

R1:

#

interface GigabitEthernet0/0/0

 ip address 40.1.1.2 255.255.255.0

#

AC:

vlan batch 10 20 30

#

interface Vlanif10

 ip address 10.1.1.1 255.255.255.0

 dhcp select interface

#

interface GigabitEthernet0/0/1

 port link-type trunk

 port trunk allow-pass vlan 2 to 4094

#



好了,我们配置完这些我们再去ap看一看能不能获取到ip地址

第一次没有获取到,我又获取了一下,就可以了

好了,我们两个AP都可以获取到ip地址了,接下来让我们配置WLAN吧

capwap source interface vlanif10 

这个可是关键,不要忘记配哦

咱们先配置AP1的吧,我这里取名叫a,密码我才用wpa-wpa2的形式密码设置为12345678

ssid-profile name a

  ssid a

security-profile name a

  security wpa-wpa2 psk pass-phrase 12345678 aes

vap-profile name a

  service-vlan vlan-id 20

  ssid-profile a

  security-profile a

ap-group name a

  radio 0

   vap-profile a wlan 1

ap-id 0 ap-mac 00e0-fcb8-44b0

  ap-group a

AP2的我取名为b

ssid-profile name b

  ssid b

security-profile name b

 security-profile name default

 security-profile name default-wds

 security-profile name default-mesh

vap-profile name b

  service-vlan vlan-id 30

  ssid-profile b

  security-profile b

ap-group name b

  radio 1

   vap-profile b wlan 2

ap-id 1 ap-mac 00e0-fc39-1f40

  ap-group b

这时候我们就配置完了wlan部分了,紧着这没一会就会出圈了,然后我们就可以利用无线设备进行获取了,如果不知道mac地址怎么获取的话,可以试一试dis arp

此时我们进入笔记本电脑尝试ping AC的地址跟R1的40.1.1.2地址都是ping不通的,这时候我们可以在AC跟R1上都配置一条静态这样就可以ping通啦

AC:

ip route-static 0.0.0.0 0.0.0.0 10.1.1.2

R1:

ip route-static 0.0.0.0 0.0.0.0 40.1.1.1

这次我再去尝试ping就可以ping通了

  • 7
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Ting-G

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值