您好,为什么我这个本地转发,手机可以连接到AP,但是无法获取地址,100是管理VLAN,200是业务VLAN
AC可以看到AP上线了,也可以看到手机上线了,但是手机无法获取到地址,麻烦看一下怎么回事
拓扑如下,配置见附件,
您好,为什么我这个本地转发,手机可以连接到AP,但是无法获取地址,100是管理VLAN,200是业务VLAN
AC可以看到AP上线了,也可以看到手机上线了,但是手机无法获取到地址,麻烦看一下怎么回事
拓扑如下,配置见附件,
(0)
可以看下给AP下发的MAP文件写的是否正确。
# apcfg.txt配置文件为:
system-view //进入系统视图
vlan 200 //创建业务vlan 200
quit //退出到当前视图
interface GigabitEthernet 1/0/1 //进入1/0/1配置视图
port link-type trunk //配置接口为trunk模式
port trunk permit vlan 200 //放通业务vlan 200
通过tftp服务器把apcfg.txt传到ac设备上
(0)
是正确的
那就需要看下AC的配置文件了,可以放在评论里面
AC的配置如下
#
version 7.1.064, Alpha 7165
#
sysname H3C
#
wlan global-configuration
#
xbar load-single
password-recovery enable
lpu-type f-series
#
vlan 1
#
vlan 100
#
vlan 200
#
vlan 254
#
dhcp server ip-pool vlan100
gateway-list 192.168.100.254
network 192.168.100.0 mask 255.255.255.0
#
dhcp server ip-pool vlan200
gateway-list 192.168.200.254
network 192.168.200.0 mask 255.255.255.0
#
wlan service-template 1
ssid HCIE
client forwarding-location ap vlan 200
service-template enable
#
interface NULL0
#
interface Vlan-interface100
ip address 192.168.100.253 255.255.255.0
#
interface Vlan-interface254
ip address 10.10.10.13 255.255.255.0
#
interface GigabitEthernet1/0/0
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 100 200
combo enable fiber
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 100 200
port trunk pvid vlan 100
combo enable fiber
#
interface GigabitEthernet1/0/2
port link-mode bridge
port access vlan 254
combo enable fiber
#
interface GigabitEthernet1/0/3
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/4
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/5
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/6
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/7
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/8
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/9
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/10
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/11
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/12
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/13
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/14
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/15
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/16
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/17
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/18
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/19
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/20
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/21
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/22
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/23
port link-mode bridge
combo enable fiber
#
interface Ten-GigabitEthernet1/0/24
port link-mode bridge
combo enable fiber
#
interface Ten-GigabitEthernet1/0/25
port link-mode bridge
combo enable fiber
#
interface Ten-GigabitEthernet1/0/26
port link-mode bridge
combo enable fiber
#
interface Ten-GigabitEthernet1/0/27
port link-mode bridge
combo enable fiber
#
scheduler logfile size 16
#
line class aux
user-role network-operator
#
line class console
user-role network-admin
#
line class tty
user-role network-operator
#
line class vty
user-role network-operator
#
line aux 0
user-role network-operator
#
line con 0
user-role network-admin
#
line vty 0 31
user-role network-operator
#
domain system
#
domain default enable system
#
role name level-0
description Predefined level-0 role
#
role name level-1
description Predefined level-1 role
#
role name level-2
description Predefined level-2 role
#
role name level-3
description Predefined level-3 role
#
role name level-4
description Predefined level-4 role
#
role name level-5
description Predefined level-5 role
#
role name level-6
description Predefined level-6 role
#
role name level-7
description Predefined level-7 role
#
role name level-8
description Predefined level-8 role
#
role name level-9
description Predefined level-9 role
#
role name level-10
description Predefined level-10 role
#
role name level-11
description Predefined level-11 role
#
role name level-12
description Predefined level-12 role
#
role name level-13
description Predefined level-13 role
#
role name level-14
description Predefined level-14 role
#
user-group system
#
local-user admin class manage
password hash $h$6$85dz86X61NsKzdhf$HWbpnDTF4tmqWvXNWqiqOkpn8AOwL1aCGzDe/o2/sU89k6A+stIiUS11PS5Huvq0F0NNryGwXcDB1TQjUPiFEQ==
service-type ssh http https
authorization-attribute user-role level-15
authorization-attribute user-role network-operator
#
ip http enable
ip https enable
#
wlan ap-group default-group
vlan 1
#
wlan virtual-ap-group default-virtualapgroup
#
wlan ap ap1 model WA6320-HCL
serial-id H3C_30-6B-20-AC-01-00
description APgroup
map-configuration flash:/apcfg.txt
vlan 1
radio 1
radio 2
radio enable
service-template 1 vlan 200
gigabitethernet 1
#
wlan ap ap3 model WA6320-HCL
serial-id H3C_30-77-B6-05-06-00
vlan 1
radio 1
radio 2
gigabitethernet 1
#
return
(0)
为什么在AC和交换机上,都有DHCP的配置,整个组网里,应该最好只一个设备保留一个DHCP地址池的配置,DHCP下发功能可以放在核心交换机上即可
交换机的配置 交换机的配置 vlan 100 # vlan 200 # stp global enable # dhcp server ip-pool vlan100 gateway-list 192.168.100.254 network 192.168.100.0 mask 255.255.255.0 # dhcp server ip-pool vlan200 gateway-list 192.168.200.254 network 192.168.200.0 mask 255.255.255.0 # interface NULL0 # interface Vlan-interface100 ip address 192.168.100.254 255.255.255.0 # interface Vlan-interface200 ip address 192.168.200.254 255.255.255.0 # interface FortyGigE1/0/53 port link-mode bridge # interface FortyGigE1/0/54 port link-mode bridge # interface GigabitEthernet1/0/1 port link-mode bridge port link-type trunk port trunk permit vlan 1 100 200 port trunk pvid vlan 100 combo enable fiber # interface GigabitEthernet1/0/2 port link-mode bridge port link-type trunk port trunk permit vlan 1 100 200 combo enable fiber # interface GigabitEthernet1/0/3 port link-mode bridge port access vlan 100 combo enable fiber
为什么在AC和交换机上,都有DHCP的配置,整个组网里,应该最好只一个设备保留一个DHCP地址池的配置,DHCP下发功能可以放在核心交换机上即可
要下发map文件
system-view //进入系统视图
vlan 200 //创建业务vlan 200
quit //退出到当前视图
interface GigabitEthernet 1/0/1 //进入1/0/1配置视图
port link-type trunk //配置接口为trunk模式
port trunk permit vlan 200 //放通业务vlan 200
通过tftp服务器把apcfg.txt传到ac设备上
(0)
# apcfg.txt配置文件为:
system-view //进入系统视图
vlan 200 //创建业务vlan 200
quit //退出到当前视图
interface GigabitEthernet 1/0/1 //进入1/0/1配置视图
port link-type trunk //配置接口为trunk模式
port trunk permit vlan 200 //放通业务vlan 200
通过tftp服务器把apcfg.txt传到ac设备上
---------------------------------------------------------------
上面这个GigabitEthernet 1/0/1
要登陆到AP上确认端口是否正确
若不是G1/0/1,需要更改正确的端口。
之后重新加载map文件,
实现本地转发终端可以获取业务vlan 200的ip地址
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
那就需要看下AC的配置文件了,可以放在评论里面