具体的服务器配置和设备配置关键核心代码和图片示例参照如下。
LSW5的配置代码:
<LSW5>dis curr
vlan batch 30 40 100 200
dhcp enable
interface Vlanif30
ip address 192.168.30.254 255.255.255.0
dhcp select relay
dhcp relay server-ip 192.168.100.250
interface Vlanif40
ip address 192.168.40.1 255.255.255.0
interface Vlanif100
ip address 192.168.100.1 255.255.255.0
interface Vlanif200
ip address 192.168.200.254 255.255.255.0
dhcp select relay
dhcp relay server-ip 192.168.100.250
interface MEth0/0/1
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/20
port link-type access
port default vlan 100
AC1的配置代码:
<AC1>dis curr
vlan batch 40
interface Vlanif40
ip address 192.168.40.254 255.255.255.0
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
ip route-static 0.0.0.0 0.0.0.0 192.168.40.1
capwap source ip-address 192.168.40.254
wlan
security-profile name wlan
ssid-profile name wlan
ssid fishyoung
ssid-profile name default
vap-profile name wlan
service-vlan vlan-id 30
ssid-profile wlan
security-profile wlan
regulatory-domain-profile name default
ap auth-mode no-auth
ap-group name wlan
radio 0
vap-profile wlan wlan 1
radio 1
vap-profile wlan wlan 1
ap-id 0 type-id 43 ap-mac f875-88c7-16e0 ap-sn 21500826412SH6904568
ap-group wlan
LSW1的配置代码:
<LSW1>dis curr
vlan batch 30 200
interface Ethernet0/0/1
port link-type trunk
port trunk pvid vlan 200
port trunk allow-pass vlan 30 200
interface Ethernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
DHCP服务器的配置:
对于AP分配的AC源地址需要注意一点的是,需要在二进制那儿填写03 代表 sub-option子选项3,后图片中的0E是十六进制代表IP地址一共有多少位数,包括点号( . )和逗号( , )此时的192.168.40.254一共14位,所以是0E,切记切记!!!!!