胖AP多SSID的配置实例命令行界面 2014/06/04 詹柱美 提示:本实训是让同学们学会对胖AP多SSID的命令行的基本配置。这里我们配置两个SSID,一个是使用开放认证,另一个是使用WPA2认证。实训拓扑如下所示:
说明: (1)SSID OPEN对应的VLAN是VLAN51,所以我们应该在交换机上创建VLAN51的DHCP地址池。同样,SSID WPA2是对应VLAN52,我们同样是在交换机上创建VLAN52的DHCP地址池。 (2)因为一个SSID对应一个VLAN,所以在交换机端,我们起中继模式。在AP端,我们需要起子接口与一个VLAN相对应。 (3)我们还需要在空中接口中起子接口,并且要与物理接口放到一个桥接组中。这样SSID才会被指派到一个VLAN,连接到有线网络。 一、交换机的配置: sw: interface FastEthernet0/13 //把该接口配置成中继模式 switchporttrunk encapsulation dot1q switchporttrunk native vlan 20 switchport modetrunk ip dhcp pool 51 //为了给无线客户分配IP地址 network10.0.51.0 255.255.255.0 default-router 10.0.51.254 ip dhcp pool 52 //为了给无线客户分配IP地址 network10.0.52.0 255.255.255.0 default-router 10.0.52.254 interface Vlan51 ip address10.0.51.254 255.255.255.0 interface Vlan52 ip address10.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 wpaversion 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已经配置完成。接下就可以测试了。如果配置正确的话,相信这时候你可以成功连接无线网络啦.
|