如图1所示,无线客户端通过FAT AP接入网络,IP Network内部服务器作为DHCP服务器为FAT AP分配地址。FAT AP作为DHCP server为无线客户端分配地址,且在无线客户端访问网络主机时进行网络地址转换。
图1 NAT配置组网图
![](https://www.h3c.com/cn/res/201902/19/20190219_3971078_image001_1152664_30005_0.png)
由于配置前设备的所有参数均采用出厂时的缺省配置,因此,配置时请先关闭或删除设备上缺省的无线服务“H3C”(本举例中关闭了无线服务“H3C”)。
3.3 配置步骤3.3.1 配置FAT AP
(1) 配置FAT AP的接口
# 创建VLAN 100及其对应的VLAN接口,并为该接口配置IP地址。Client将使用该VLAN接入无线网络。
<FAT AP> system-view
[FAT AP] vlan 100
[FAT AP-vlan100] quit
[FAT AP] interface vlan-interface 100
[FAT AP-Vlan-interface100] ip address 192.1.0.1 24
[FAT AP-Vlan-interface100] quit
# 配置上行接口Vlan-interface 1自动获得地址。
[FAT AP] interface vlan-interface 1
[FAT AP-Vlan-interface1] undo ip address
[FAT AP-Vlan-interface1] ip address dhcp-alloc
[FAT AP-Vlan-interface1] quit
(2) 配置无线服务模板
# 进入无线服务模板1,关闭默认的无线服务模板。
[FAT AP] wlan service-template 1
[FAT AP-wlan-st-1] undo service-template enable
[FAT AP-wlan-st-1] quit
# 创建服务模板service,并进入无线服务模板视图。
[FAT AP] wlan service-template service
# 配置SSID为service。
[FAT AP-wlan-st-service] ssid service
# 配置无线服务模板VLAN为100。
[FAT AP-wlan-st-service] vlan 100
# 开启无线服务模板。
[FAT AP-wlan-st-service] service-template enable
[FAT AP-wlan-st-service] quit
# 进入WLAN-Radio 1/0/1接口视图。
[FAT AP] interface wlan-radio 1/0/1
# 将无线服务模板service绑定到WLAN-Radio 1/0/1接口。
[FAT AP-WLAN-Radio1/0/1] service-template service
[FAT AP-WLAN-Radio1/0/1] quit
(3) 配置DHCP Server
# 配置DHCP地址池100,用于为Client分配IP地址。
[FAT AP] dhcp server ip-pool 100
[FAT AP-dhcp-pool-100] network 192.1.0.0 mask 255.255.255.0
[FAT AP-dhcp-pool-100] gateway-list 192.1.0.1
[FAT AP-dhcp-pool-100] quit
# 开启DHCP功能。
[FAT AP] dhcp enable
(4) 配置NAT
# 配置ACL 2000,仅允许无线客户端主动访问网络主机。
[FAT AP] acl basic 2000
[FAT AP-acl-ipv4-basic-2000] rule 0 permit source 192.1.0.0 0.0.0.255
[FAT AP-acl-ipv4-basic-2000] quit
# 在接口Vlan-interface 1上配置出方向动态地址转换,允许使用Vlan-interface 1的IPv4地址对匹配ACL 2000的报文进行源地址转换,并在转换过程中使用端口信息。
[FAT AP] interface vlan-interface 1
[FAT AP-Vlan-interface1] nat outbound 2000
[FAT AP-Vlan-interface1] quit
暂无评论