设为首页 收藏本站
查看: 2856|回复: 0

[经验分享] 华为 eNSP 配置 wlan 中级

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2014-11-27 08:30:06 | 显示全部楼层 |阅读模式
  中级  wlan
1.实验拓扑:
使用ENSP模拟器(版本V100R002C00 1.2.00.350)
wKioL1R1UeOjq57nAAJ0bKye8Kk477.jpg

2.实验需求:
1: AP1和AP2 通过AC1  DCHP获得地址
2: AP1和AP2发出wlan

3.实验配置:

R1配置:
sy
[Huawei]int g0/0/2
[Huawei-GigabitEthernet0/0/2]ip add 192.168.1.1 30
[Huawei-GigabitEthernet0/0/2]int l0
[Huawei-LoopBack0]ip add 1.1.1.1 32
[Huawei-LoopBack0]q
[Huawei]ip route-static 192.168.101.0 255.255.255.0 192.168.1.2    给两条业务vlan  配静态
[Huawei]ip route-static 192.168.102.0 255.255.255.0 192.168.1.2



ac配置:
sy
[AC6605]sysname ac01
[ac01]vlan 200
[ac01-vlan200]int vlan 200
[ac01-Vlanif200]ip add 192.168.1.2 30
[ac01-Vlanif200]int g0/0/2
[ac01-GigabitEthernet0/0/2]port hybrid pvid vlan 200
[ac01-GigabitEthernet0/0/2]port hybrid untagged vlan 200
[ac01-GigabitEthernet0/0/2]p 192.168.1.1
  PING 192.168.1.1: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.1: bytes=56 Sequence=1 ttl=255 time=1350 ms
    Reply from 192.168.1.1: bytes=56 Sequence=2 ttl=255 time=390 ms
    Reply from 192.168.1.1: bytes=56 Sequence=3 ttl=255 time=400 ms
    Reply from 192.168.1.1: bytes=56 Sequence=4 ttl=255 time=380 ms
    Reply from 192.168.1.1: bytes=56 Sequence=5 ttl=255 time=380 ms

  --- 192.168.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 380/580/1350 ms

[ac01-GigabitEthernet0/0/2]q
[ac01]ip route-static 0.0.0.0 0 192.168.1.1   给R1指默认
[ac01]vlan b 100 101 102
[ac01]dhcp enable
[ac01]int vlan 100
[ac01-Vlanif100]ip add 192.168.100.1 24
[ac01-Vlanif100]dhcp select int

[ac01-Vlanif100]int vlan 101
[ac01-Vlanif101]ip add 192.168.101.1 24
[ac01-Vlanif101]dhcp select int
[ac01-Vlanif101]dhc server dns-list 8.8.8.8

[ac01-Vlanif101]int vlan 102
[ac01-Vlanif102]ip add 192.168.102.1 24
[ac01-Vlanif102]dhcp select int
[ac01-Vlanif102]dhc server dns-list 9.9.9.9
[ac01-Vlanif102]q

[ac01]int g0/0/1
[ac01-GigabitEthernet0/0/1]port link-type trunk
[ac01-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 to 102
[ac01-GigabitEthernet0/0/1]
[ac01-GigabitEthernet0/0/1]q
[ac01]wlan ac-global carrier id cmcc ac id 1
[ac01]wlan
[ac01-wlan-view]wlan ac source int vlan 100
[ac01-wlan-view]ap-auth-mode mac-auth
[ac01-wlan-view]ap id 1 type-id 19 mac 00e0-fc09-77d0
[ac01-wlan-ap-1]q
[ac01-wlan-view]wmm-profile id 1 name wmm
[ac01-wlan-wmm-prof-wmm]q
[ac01-wlan-view]radio-profile id 1 name r01
[ac01-wlan-radio-prof-r01]wmm-profile id 1
[ac01-wlan-radio-prof-r01]q
[ac01-wlan-view]traffic-profile id 1 name t01
[ac01-wlan-traffic-prof-t01]q
[ac01-wlan-view]security-profile id 1 name s01
[ac01-wlan-sec-prof-s01]q
[ac01-wlan-view]security-profile id 1 name s01
[ac01-wlan-sec-prof-s01]security-policy wpa2
[ac01-wlan-sec-prof-s01]wpa2 authentication-method psk pass-phrase cipher abc12345 encryption-method ccmp
[ac01-wlan-sec-prof-s01]q
[ac01-wlan-view]q
[ac01]int wlan-ess 1
[ac01-Wlan-Ess1]port hybrid pvid vlan 101
[ac01-Wlan-Ess1]port hybrid untagged vlan 101
[ac01-Wlan-Ess1]q
[ac01]wlan
[ac01-wlan-view]service-set id 1 name s01
[ac01-wlan-service-set-s01]wlan-ess 1
[ac01-wlan-service-set-s01]service-vlan 101
[ac01-wlan-service-set-s01]traffic-profile id 1
[ac01-wlan-service-set-s01]security-profile id 1
[ac01-wlan-service-set-s01]dis this          配好之后要查看5原素齐不齐
#
  wlan-ess 1
  traffic-profile id 1
  security-profile id 1
  service-vlan 101
#
return
[ac01-wlan-service-set-s01]ssid hw01
[ac01-wlan-service-set-s01]q
[ac01-wlan-view]ap 1 radio 0
[ac01-wlan-radio-1/0]radio-profile id 1
Warning: Modify the Radio type may cause some parameters of Radio resume default
value, are you sure to continue?[Y/N]:y
[ac01-wlan-radio-1/0]service-set id 1
[ac01-wlan-radio-1/0]q
[ac01-wlan-view]commit all
  Warning: Committing configuration may cause service interruption,continue?[Y/N]y
[ac01-wlan-view]q
[ac01]q
dis cu conf wlan  查看wlan配置命令
wlan
wlan ac source interface vlanif100
ap id 1 type-id 19 mac 00e0-fc09-77d0 sn 2102354483100867E35C
wmm-profile name wmm id 1
traffic-profile name t01 id 1
security-profile name s01 id 1
  security-policy wpa2
  wpa2 authentication-method psk pass-phrase cipher %@%@eODWA}a`UEy4:Q;$V9''UTdY%
@%@ encryption-method ccmp
service-set name s01 id 1
  wlan-ess 1
  ssid hw01
  traffic-profile id 1
  security-profile id 1
  service-vlan 101
radio-profile name r01 id 1
  wmm-profile id 1
ap 1 radio 0
  radio-profile id 1
  service-set id 1 wlan 1

#
return
sy
[ac01]wlan
[ac01-wlan-view]service-set id 1
[ac01-wlan-service-set-s01]user-isolate    配置 用户隔离
[ac01-wlan-service-set-s01]q
[ac01-wlan-view]commit ap 1
  Warning: Committing configuration may cause service interruption,continue?[Y/N]y

配置第二台AP
[ac01-wlan-view]ap-auth-mode mac-auth
[ac01-wlan-view]ap id 2 type-id 19 mac 00e0-fced-7f00
[ac01-wlan-ap-2]q
[ac01-wlan-view]q
[ac01]int Wlan-Ess 2
[ac01-Wlan-Ess2]port hybrid pvid vlan 102
[ac01-Wlan-Ess2]port hybrid untagged vlan 102
[ac01-Wlan-Ess2]q
[ac01]wlan
[ac01-wlan-view]service-set id 2 name s02
[ac01-wlan-service-set-s02]wlan-ess 2
[ac01-wlan-service-set-s02]ssid hw02
[ac01-wlan-service-set-s02]service-vlan 102
[ac01-wlan-service-set-s02]traffic-profile id 1
[ac01-wlan-service-set-s02]security-profile id 1
[ac01-wlan-service-set-s02]dis this
[ac01-wlan-service-set-s02]q
[ac01-wlan-view]ap 2 radio 0
[ac01-wlan-radio-2/0]radio-profile id 1
value, are you sure to continue?[Y/N]:y
[ac01-wlan-radio-2/0]service-set id 2
[ac01-wlan-radio-2/0]q
[ac01-wlan-view]commit all
  Warning: Committing configuration may cause service interruption,continue?[Y/N]y


做隧道  华为有BUG所以  要关了AP配好了再开

[ac01]wlan
[ac01-wlan-view]service-set id 1 name s01
[ac01-wlan-service-set-s01]dis this
#
  wlan-ess 1
  ssid hw01
  user-isolate
  traffic-profile id 1
  security-profile id 1
  service-vlan 101
#
return
[ac01-wlan-service-set-s01]forward-mode tunnel   做隧道
[ac01-wlan-radio-1/0]q
[ac01-wlan-view]commit all
  Warning: Committing configuration may cause service interruption,continue?[Y/N]y



sw1配置:
sy
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan b 100 to 102 200         同时添加  用户vlan和管理vlan
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1] port link-type trunk
[Huawei-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 to 102 200
[Huawei-GigabitEthernet0/0/1]q

[Huawei]interface Ethernet0/0/1
[Huawei-Ethernet0/0/1] port link-type trunk
[Huawei-Ethernet0/0/1] port trunk pvid vlan 100
[Huawei-Ethernet0/0/1] port trunk allow-pass vlan 100 to 101
[Huawei-Ethernet0/0/1]q

interface Ethernet0/0/1
port link-type trunk
port trunk pvid vlan 100
port trunk allow-pass vlan 100 to 101
[Huawei-Ethernet0/0/2]port link-type trunk
[Huawei-Ethernet0/0/2] port trunk pvid vlan 100           
[Huawei-Ethernet0/0/2]port trunk allow-pass vlan 100 102



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-33816-1-1.html 上篇帖子: 华为设备RIP协议原理及配置全集 下篇帖子: 华为设备基本和高级ACL配置实战 华为 wlan
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表