胖AP多SSID的配置实例

胖AP多SSID的配置实例

2014/06/04  詹柱美

提示:本实训是让同学们学会对胖APSSID的基本配置。这里我们配置两个SSID,一个是使用开放认证,另一个是使用WPA2认证。实训拓扑如下所示:

 wKiom1Og8lThgAYCAAEK9_fN5lE342.jpg

说明:

1SSID OPEN对应的VLANVLAN51,所以我们应该在交换机上创建VLAN51DHCP地址池。同样,SSID WPA2是对应VLAN52,我们同样是在交换机上创建VLAN52DHCP地址池。

2)因为一个SSID对应一个VLAN,所以在交换机端,我们起中继模式。在AP端,我们需要起子接口与一个VLAN相对应。

3)我们还需要在空中接口中起子接口,并且要与物理接口放到一个桥接组中。这样SSID才会被指派到一个VLAN,连接到有线网络。

一、交换机的配置:

sw:

interface FastEthernet0/13 //把该接口配置成中继模式

 switchport trunk encapsulation dot1q

 switchport trunk native vlan 20

 switchport mode trunk

 

ip dhcp pool 51  //为了给无线客户分配IP地址

   network 10.0.51.0 255.255.255.0

   default-router 10.0.51.254 

 

ip dhcp pool 52   //为了给无线客户分配IP地址

   network 10.0.52.0 255.255.255.0

   default-router 10.0.52.254 

 

interface Vlan51  

 ip address 10.0.51.254 255.255.255.0

 

interface Vlan52

 ip address 10.0.52.254 255.255.255.0

 

 

二、AP的配置:

1)创建两个SSID

ap(config)#dot11 ssid OPEN

ap(config-ssid)#vlan 51

ap(config-ssid)#authentication open

ap(config-ssid)#mbssid guest-mode

ap(config-ssid)#exit

 

ap(config)#dot11 ssid WPA2

ap(config-ssid)#vlan 52

ap(config-ssid)#authentication open

ap(config-ssid)#authentication key-management wpa version 2

ap(config-ssid)#wpa-psk ascii 12345678

ap(config-ssid)#mbssid guest-mode

ap(config-ssid)#exit

(2)把创建好的SSID在空中接口中调用:

ap(config)#interface dot11Radio 0

ap(config-if)#mbssid

ap(config-if)#ssid OPEN

ap(config-if)#encryption vlan 52 mode ciphers aes-ccm

ap(config-if)#ssid WPA2

ap(config-if)#no shutdown

ap(config-if)#exit

(3)创建空中接口的子接口:

ap(config)#interface dot11Radio 0.51

ap(config-subif)#encapsulation dot1Q 51

ap(config-subif)#bridge-group 51 

ap(config-subif)#no shutdown

ap(config-subif)#exit

 

ap(config)#interface dot11Radio 0.52

ap(config-subif)#encapsulation dot1Q 52

ap(config-subif)#bridge-group 52

ap(config-subif)#no shutdown

ap(config-subif)#exit

 

(4)打开物理接口,也创建相应的子接口:

ap(config)#interface gigabitEthernet 0

ap(config-if)#no shutdown

 

ap(config)#interface gigabitEthernet 0.51

ap(config-subif)#encapsulation dot1Q 51

ap(config-subif)#bridge-group 51

ap(config-subif)#no shutdown

ap(config-subif)#exit

 

ap(config)#interface gigabitEthernet 0.52

ap(config-subif)#encapsulation dot1Q 52

ap(config-subif)#bridge-group 52

ap(config-subif)#no shutdown

ap(config-subif)#exit

 

 

到此,AP的两SSID已经配置完成。接下就可以测试了。如果配置正确的话,相信这时候你可以成功连接无线网络啦.

 

 

 

 

 


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章