三层组网ac旁挂直接转发最简单的
旁挂AC
三层组网
直接转发
配置思路
(1)搭建环境
(2)交换机与路由之间正常配置网络畅通
(3)交换机与AC之间trunk连接
(4)AC配置 管理vlan100 并配置IP192.168.100.2/24
(5)交换机配置 管理vlan100 业务vlan101 上联路由vlan111 右联云至物理主机vlan112
交换机配置2个IP池 分别用于管理vlan100(要用exclude...和option 43) 标准的业务vlan101 上联vlan111配IP 右联物理主机vlan112配IP
(6)AC配置无线部分
ssid
security
vap
ap-group
...

 
配置清单
路由器
<R>dis cur
[V200R003C00]
#
 sysname R
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
 drop illegal-mac alarm
#
 wlan ac-global carrier id other ac id 0
#
 set cpu-usage threshold 80 restore 75
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http       
#
firewall zone Local
 priority 15
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2                     //下联三层
 ip address 192.168.111.2 255.255.255.0 
#
interface NULL0
#
ip route-static 192.168.0.0 255.255.0.0 192.168.111.1
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
 authentication-mode password
 user privilege level 15
 set authentication password cipher 123
user-interface vty 16 20
#
wlan ac                                   
#
return
<R>                        
三层交换
<L3>dis cur
#
sysname L3
#
vlan batch 100 to 101 111 to 112
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
dhcp enable
#
diffserv domain default
#
drop-profile default
#
ip pool mgt100                                                           //管理VLAN的地址池 分配 IP给AP以及走配置信息
 gateway-list 192.168.100.1
 network 192.168.100.0 mask 255.255.255.0
 excluded-ip-address 192.168.100.2                         //这个地址给AC的VLAN100 用来连接交换机 排除省得DHCP给AP
 option 43 sub-option 2 ip-address 192.168.100.2    //配置option 43字段 在此池分配IP给AP时 让AP知道自己的管理者为192.168.100.2
#
ip pool yewu101                                                       //业务地址池 用于分配给无线终端如手机或笔记本电脑
 gateway-list 192.168.101.1               
 network 192.168.101.0 mask 255.255.255.0
 dns-list 222.222.222.222
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
#
interface Vlanif100 
 ip address 192.168.100.1 255.255.255.0
 dhcp select global                                           //到全局地址池中dhcp管理地址
#
interface Vlanif101
 ip address 192.168.101.1 255.255.255.0
 dhcp select global                                         //到全局地址池中dhcp业务地址
#
interface Vlanif111                                        //上联路由
 ip address 192.168.111.1 255.255.255.0   
#
interface Vlanif112                                       //右联云联物理主机
 ip address 2.2.2.1 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 111
#
interface GigabitEthernet0/0/2              //接AC配置成trunk
 port link-type trunk
 port trunk allow-pass vlan 100
#
interface GigabitEthernet0/0/3             //接AP 配成trunk 允许100 101 及pvid=100  ap只认识无vlan tag的帧 vlan100的帧出交换机端口后会摘除vlan tag成无tag的帧 让ap识别从而让ap获取到dhcp下发的地址
 port link-type trunk
 port trunk pvid vlan 100
 port trunk allow-pass vlan 100 to 101
#
interface GigabitEthernet0/0/4         //右联云联物理主机
 port link-type access
 port default vlan 112
#
interface GigabitEthernet0/0/5            
#
interface GigabitEthernet0/0/6
#
interface GigabitEthernet0/0/7
#
interface GigabitEthernet0/0/8
#
interface GigabitEthernet0/0/9
#
interface GigabitEthernet0/0/10
#
interface GigabitEthernet0/0/11
#
interface GigabitEthernet0/0/12
#
interface GigabitEthernet0/0/13
#
interface GigabitEthernet0/0/14
#
interface GigabitEthernet0/0/15
#
interface GigabitEthernet0/0/16
#
interface GigabitEthernet0/0/17           
#
interface GigabitEthernet0/0/18
#
interface GigabitEthernet0/0/19
#
interface GigabitEthernet0/0/20
#
interface GigabitEthernet0/0/21
#
interface GigabitEthernet0/0/22
#
interface GigabitEthernet0/0/23
#
interface GigabitEthernet0/0/24
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 192.168.111.2
#
user-interface con 0
user-interface vty 0 4
 user privilege level 15
 set authentication password simple 123
#                                         
return
AC控制器
<AC6605>dis cur
#
 set memory-usage threshold 0
#
ssl renegotiation-rate 1 
#
vlan batch 100                  //只此vlan100与交换机连接
#
authentication-profile name default_authen_profile
authentication-profile name dot1x_authen_profile
authentication-profile name mac_authen_profile
authentication-profile name portal_authen_profile
authentication-profile name macportal_authen_profile
#
diffserv domain default
#
radius-server template default
#
pki realm default
 rsa local-key-pair default
 enrollment self-signed
#
ike proposal default
 encryption-algorithm aes-256 
 dh group14 
 authentication-algorithm sha2-256        
 authentication-method pre-share
 integrity-algorithm hmac-sha2-256 
 prf hmac-sha2-256 
#
free-rule-template name default_free_rule
#
portal-access-profile name portal_access_profile
#
aaa
 authentication-scheme default
 authentication-scheme radius
  authentication-mode radius
 authorization-scheme default
 accounting-scheme default
 domain default
  authentication-scheme radius
  radius-server default
 domain default_admin
  authentication-scheme default
 local-user admin password irreversible-cipher $1a$%_^(=Et@IT$7e\e@QSav3zZ2z)H2RU>SO\R2!%QFBfw,r@5C>x&$
 local-user admin privilege level 15
 local-user admin service-type http
#
interface Vlanif100                                             //联交换机 必用100.2 用于和AP进行管理数据收发
 ip address 192.168.100.2 255.255.255.0
#
interface MEth0/0/1
 undo negotiation auto
 duplex half
#
interface GigabitEthernet0/0/1             //trunk方式 联 交换机 对端为交换机的trunk接口,普通默认trunk 只走100管理vlan帧即可
 port link-type trunk
 port trunk allow-pass vlan 100
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
interface GigabitEthernet0/0/4
#
interface GigabitEthernet0/0/5
#
interface GigabitEthernet0/0/6
#
interface GigabitEthernet0/0/7
#
interface GigabitEthernet0/0/8
#                                         
interface GigabitEthernet0/0/9
#
interface GigabitEthernet0/0/10
#
interface GigabitEthernet0/0/11
#
interface GigabitEthernet0/0/12
#
interface GigabitEthernet0/0/13
#
interface GigabitEthernet0/0/14
#
interface GigabitEthernet0/0/15
#
interface GigabitEthernet0/0/16
#
interface GigabitEthernet0/0/17
#
interface GigabitEthernet0/0/18
#
interface GigabitEthernet0/0/19
#
interface GigabitEthernet0/0/20
#                                         
interface GigabitEthernet0/0/21
 undo negotiation auto
 duplex half
#
interface GigabitEthernet0/0/22
 undo negotiation auto
 duplex half
#
interface GigabitEthernet0/0/23
 undo negotiation auto
 duplex half
#
interface GigabitEthernet0/0/24
 undo negotiation auto
 duplex half
#
interface XGigabitEthernet0/0/1
#
interface XGigabitEthernet0/0/2
#
interface NULL0
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent                               
#
ssh server secure-algorithms cipher aes256_ctr aes128_ctr
ssh server key-exchange dh_group14_sha1
ssh client secure-algorithms cipher aes256_ctr aes128_ctr
ssh client secure-algorithms hmac sha2_256
ssh client key-exchange dh_group14_sha1
#
capwap source interface vlanif100           //创建capwap隧道  管理数据走这个隧道
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
 authentication-mode password
 user privilege level 15
 set authentication password cipher admin888
 protocol inbound all
user-interface vty 16 20
 protocol inbound all
#
wlan                                                        //无线配置开始
 traffic-profile name default
 security-profile name sec-1
  security wpa2 psk pass-phrase 12345678a aes
 security-profile name default            
 security-profile name default-wds
 security-profile name default-mesh
 ssid-profile name ssid-1
  ssid wifi001
 ssid-profile name default
 vap-profile name vap-1
forward-mode direct-forward 
  service-vlan vlan-id 101
  ssid-profile ssid-1
  security-profile sec-1
 vap-profile name default
 wds-profile name default
 mesh-handover-profile name default
 mesh-profile name default
 regulatory-domain-profile name default
 air-scan-profile name default
 rrm-profile name default
 radio-2g-profile name default
 radio-5g-profile name default
 wids-spoof-profile name default
 wids-profile name default
 wireless-access-specification
 ap-system-profile name default
 port-link-profile name default
 wired-port-profile name default          
 serial-profile name preset-enjoyor-toeap 
 ap auth-mode no-auth
 ap-group name default                                        //用默认的AP组default
  radio 0
   vap-profile vap-1 wlan 1
 ap-id 0 type-id 47 ap-mac 00e0-fc27-7e10 ap-sn 210235448310C0193D24         //AP配置成无认证后自动出来的
 provision-ap
#
dot1x-access-profile name dot1x_access_profile
#
mac-access-profile name mac_access_profile
#
return
 
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号