interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 100 // 和AC 相连的接口只允许管理vlan通过 # interface GigabitEthernet0/0/2 port link-type access port default vlan 105 # interface GigabitEthernet0/0/3 port link-type trunk port trunk allow-pass vlan 100 to 105 //允许业务vlanc通 # interface GigabitEthernet0/0/4 port link-type access port default vlan 102
ip route-static 0.0.0.0 0.0.0.0 10.1.105.2
Sw2配置
vlan batch 100 103 to 104
interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 100 to 105 # interface GigabitEthernet0/0/2 port link-type trunk port trunk pvid vlan 100 port trunk allow-pass vlan 100 to 105 # interface GigabitEthernet0/0/3 port link-type access port default vlan 104 stp edged-port enable # interface GigabitEthernet0/0/4 port link-type trunk port trunk pvid vlan 100 port trunk allow-pass vlan 100 to 105
interface Vlanif100 ip address 10.1.100.2 255.255.255.0 # interface GigabitEthernet0/0/1 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 100 //如果为隧道转发要加上业务vlan ID,业务vlan 要通过AC 转发
第一步 创建AP 组
wlan
ap-group apgoup01
第二步 创建管理模板并关联到AP 组
wlan regulatory-domain-profile name profile01 //创建域管理模板,名字叫profile01 country-code cn //国家代码选择中国
ap-group name apgroup01 regulatory-domain-profile profile01 //AP组的域管理模板是profile01 Warning: Modifying the country code will clear channel, power and antenna gain c onfigurations of the radio and reset the AP. Continue?[Y/N]:y
第四步:离线导入AP wlan ap auth-mode mac-auth //AP的认证模式为MAC认证 ap-id 1 ap-mac 00e0-fc94-4640 //AP的编号和MAC地址 ap-name AP1 //AP的名字为ds ap-group apgroup01 //AP属于AP组x ap-id 2 ap-mac 00e0-fc19-42c0 //AP的编号和MAC地址 ap-name AP2 //Ap的名字 ap-group apgroup01 //AP属于AP组x Warning: This operation may cause AP reset. If the country code changes, it will clear channel, power and antenna gain configurations of the radio, Whether to c ontinue? [Y/N]:y 思考:AP的MAC地址是怎么知道的? 读者可以通过在ap上使用命令“display interface Vlanif 1”查看当前ap的mac地址,然后再将mac地址进行绑定。