首页 > 其他分享 >二层无线覆盖

二层无线覆盖

时间:2024-12-11 11:03:49浏览次数:6  
标签:AC 二层 覆盖 vlan GigabitEthernet0 port interface sw1 无线

1.配置路由器

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

[Huawei]sys

[R1]interface GigabitEthernet 0/0/0

[r1-GigabitEthernet0/0/0]ip address 10.10.11.1 30

[r1-GigabitEthernet0/0/0]quit

[r1]ip route-static 0.0.0.0 0 10.10.11.2

2.交换机sw1配置

<huawei>sys

Enter system view, return user view with Ctrl+Z.

[huawei]sys sw1

[sw1]

[sw1]vlan batch 10 20 300

Info: This operation may take a few seconds. Please wait for a moment...done.

[sw1]interface GigabitEthernet 0/0/3

[sw1-GigabitEthernet0/0/3]port link-type accress

[sw1-GigabitEthernet0/0/3]port default vlan 10

[sw1-GigabitEthernet0/0/3]interface GigabitEthernet 0/0/4

[sw1-GigabitEthernet0/0/4]port link-type accress

[sw1-GigabitEthernet0/0/4]port default vlan 20

[sw1-GigabitEthernet0/0/4]interface GigabitEthernet 0/0/2

[sw1-GigabitEthernet0/0/2]port link-type trunk

[sw1-GigabitEthernet0/0/2]port trunk pvid vlan 100

[sw1-GigabitEthernet0/0/2]port trunk allow-pass vlan all

[sw1-GigabitEthernet0/0/2]interface GigabitEthernet 0/0/1

[sw1-GigabitEthernet0/0/1]port link-type trunk

[sw1-GigabitEthernet0/0/1]port trunk pvid vlan 100

[sw1-GigabitEthernet0/0/1]port trunk allow-pass vlan all

3.配置AC

<AC>sys

[AC]vlan batch 3 88 100

Info: This operation may take a few seconds. Please wait for a moment...done.

[AC]interface GigabitEthernet 0/0/3

[AC-GigabitEthernet0/0/3]port link-type accress

[AC-GigabitEthernet0/0/3]port default vlan 3

[AC-GigabitEthernet0/0/3]quite

[AC]interface vlanif 3

[AC-Vlanif3]ip address 192.168.142.100 24

[AC-Vlanif3]quite

[AC]interface GigabitEthernet 0/0/1

[AC-GigabitEthernet0/0/1]port link-type trunk

[AC-GigabitEthernet0/0/1]port trunk pvid vlan 88

[AC-GigabitEthernet0/0/1]port trunk allow-pass vlan all

[AC-GigabitEthernet0/0/1]quit

[AC]interface vlanif 88

[AC-Vlanif88]ip address 10.10.11.2 30

[AC-Vlanif88]quite

[AC]interface GigabitEthernet 0/0/2

[AC-GigabitEthernet0/0/2]port link-type trunk

[AC-GigabitEthernet0/0/2]port trunk pvid vlan 100

[AC-GigabitEthernet0/0/2]port trunk allow-pass vlan all

[AC-GigabitEthernet0/0/2]quit

[AC]interface vlanif 100

[AC-Vlanif100]ip address 192.168.100.1 24

[AC-Vlanif100]quite

[AC]vlan batch 10 20

Info: This operation may take a few seconds. Please wait for a moment...done.

[AC]interface vlanif 10

[AC-Vlanif10]ip address 192.168.10.254 24

[AC-Vlanif10]interface vlanif 20

[AC-Vlanif20]ip address 192.168.20.254 24

[AC-Vlanif20]quit

[AC]http server enable

This operation will take several minutes, please wait... Info: Succeeded in starting the HTTP server

4.在web浏览器搜索192.168.142.100

点高级,继续访问

   huawei AC 的默认用户名为admin,默认密码为admin@huawei.com。第一次登录需要按照系统提示修改密码修改后重新登陆即可。

修改密码后登录即可

                                               (1)首先先点击配置

点击下一步,勾选vlanif100

点击下一步,点击新建打开DHCP状态,地址类型选接口地址池,接口选择选vlanif100,点击确定

点击下一步,在AC源地址选vlanif100,然后再点击添加AP,在top图中的AP配置里面查看源地址,输入进去大小写都可以,点击确认。

                                                点击下一步,点击完成。

点击AP,点新建。

按照图片来配置,配置完即可

                                      配置完成返回通配图就会出现:

STA1ping 主机和路由器

标签:AC,二层,覆盖,vlan,GigabitEthernet0,port,interface,sw1,无线
From: https://blog.csdn.net/2401_87639035/article/details/144370493

相关文章