二层组网 直接转发 旁挂AC 看原理配

 

路由

<R>

Please check whether system data has been changed, and save data in time 

Configuration console time out, please press any key to log on 

<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 Ethernet0/0/0
#
interface Ethernet0/0/1
#
interface Ethernet0/0/2
#
interface Ethernet0/0/3
#
interface Ethernet0/0/4
#
interface Ethernet0/0/5
#
interface Ethernet0/0/6
#
interface Ethernet0/0/7
#
interface GigabitEthernet0/0/0
ip address 192.168.111.2 255.255.255.0
#
interface GigabitEthernet0/0/1
#
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
user-interface vty 16 20
#
wlan ac
#
return
<R>

出口路由只配置了LAN口IP及下指静态路由 

核心(互联)

<L3>
<L3>dis cur
#
sysname L3
#
undo info-center enable
#
vlan batch 100 to 102 111
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
dhcp enable
#
diffserv domain default
#
drop-profile default
#
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.................给AP本身的地址段
ip address 192.168.100.1 255.255.255.0
dhcp select interface
#
interface Vlanif101..................业务IP段1 即给客户端手机配置的IP段
ip address 192.168.101.1 255.255.255.0
dhcp select interface
#
interface Vlanif102.............业务IP段2
ip address 192.168.102.1 255.255.255.0
dhcp select interface
#
interface Vlanif111...........上联路由虚vlan接口
ip address 192.168.111.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
port link-type access
port default vlan 100
#
interface GigabitEthernet0/0/3................下联二层交换
port link-type trunk
port trunk allow-pass vlan 100 to 102
#
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
#
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
#
return
<L3>

 核心配置了

控制vlan100 

业务vlan101 102 

启用dhcp及基于接口的dhcp池在100 101 102

vlan111为上联虚接口

二层(接入)

<L2>dis cur
#
sysname L2
#
undo info-center enable
#
vlan batch 100 to 102
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
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 MEth0/0/1
#
interface Ethernet0/0/1...............上联核心物理接口
port link-type trunk
port trunk allow-pass vlan 100 to 102
#
interface Ethernet0/0/2..............接AP1 直接转发配置为trunk 并配置pvid=100为控制vlan

port link-type trunk
port trunk pvid vlan 100
port trunk allow-pass vlan 100 to 102
#
interface Ethernet0/0/3
port link-type trunk
port trunk pvid vlan 100
port trunk allow-pass vlan 100 to 102
#
interface Ethernet0/0/4
#
interface Ethernet0/0/5
#
interface Ethernet0/0/6
#
interface Ethernet0/0/7
#
interface Ethernet0/0/8
#
interface Ethernet0/0/9
#
interface Ethernet0/0/10
#
interface Ethernet0/0/11
#
interface Ethernet0/0/12
#
interface Ethernet0/0/13
#
interface Ethernet0/0/14
#
interface Ethernet0/0/15
#
interface Ethernet0/0/16
#
interface Ethernet0/0/17
#
interface Ethernet0/0/18
#
interface Ethernet0/0/19
#
interface Ethernet0/0/20
#
interface Ethernet0/0/21
#
interface Ethernet0/0/22
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return
<L2>

 

AC 

Please check whether system data has been changed, and save data in time

Configuration console time out, please press any key to log on

<AC6605>
<AC6605>dis cur
#
set memory-usage threshold 0
#
ssl renegotiation-rate 1
#
vlan batch 100
#
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$b`%@'>*vq2$a;Gd"Ha*jK<7U(Y^|x
2":$9uP`gn(N3U0H(4`4ZV$
local-user admin privilege level 15
local-user admin service-type http
#
interface Vlanif100
description must config IP can not only vlan
ip address 192.168.100.2 255.255.255.0
#
interface MEth0/0/1
undo negotiation auto
duplex half
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 100
#
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
#
ip route-static 0.0.0.0 0.0.0.0 192.168.100.1
#
capwap source interface vlanif100
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
protocol inbound all
user-interface vty 16 20
protocol inbound all
#
wlan
traffic-profile name default
security-profile name sec-1
security wpa-wpa2 psk pass-phrase %^%#t*kgTsx8+B,g+!Kx[936QO/*B$[ZzY'6:B061"b!
%^%# aes
security-profile name sec-2------security open
security-profile name default
security-profile name default-wds
security-profile name default-mesh
ssid-profile name ssid-1
ssid staff
ssid-profile name ssid-2
ssid guest
ssid-profile name default
vap-profile name vap-1~~~~~~~~~~~forwarding direct...
service-vlan vlan-id 101
ssid-profile ssid-1
security-profile sec-1
vap-profile name vap-2~~~~~~~~~~~forwarding direct...
service-vlan vlan-id 102
ssid-profile ssid-2
security-profile sec-2
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-group name ap-group1
radio 0
vap-profile vap-1 wlan 1
vap-profile vap-2 wlan 2
radio 1
vap-profile vap-1 wlan 1
vap-profile vap-2 wlan 2
ap-id 0 type-id 37 ap-mac 00e0-fcf2-1830 ap-sn 210235448310CF60751D
ap-group ap-group1
ap-id 1 type-id 37 ap-mac 00e0-fc2c-5510 ap-sn 210235448310D45F4F1C
ap-group ap-group1
provision-ap
#
dot1x-access-profile name dot1x_access_profile
#
mac-access-profile name mac_access_profile
#
return
<AC6605>

posted @ 2023-03-11 11:58  techNote  阅读(158)  评论(0编辑  收藏  举报