<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]ap-address mode static
Info: The configuration takes effect after the AP is restarted.
[Huawei]ap-address static ip-address 10.1.100.66 24 10.1.100.1
Info: The configuration takes effect after the AP is restarted.
[Huawei]ap-address static ac-list 10.1.100.2
Info: The configuration takes effect after the AP is restarted.
[Huawei]quit
<Huawei>reboot
System will reboot! Continue ? [y/n]:y
Info: system is rebooting ,please wait...
<Huawei>display ap-address-info
==============================================================
Active AP Address Info
AP Mode : static
Ip Address : 10.1.100.66
Ip Version : 4
Mask : 255.255.255.0
Gateway : 10.1.100.1
AC 0 ip : 10.1.100.2
AC 1 ip : -
AC 2 ip : -
AC 3 ip : -
--------------------------------------------------------------
Reboot Active AP Address Info
AP Mode : static
Ip Address : 10.1.100.66
Ip Version : 4
Mask : 255.255.255.0
Gateway : 10.1.100.1
AC 0 ip : 10.1.100.2
AC 1 ip : -
AC 2 ip : -
AC 3 ip : -
==============================================================
步骤 2:配置AP2静态IP地址10.1.100.88 和网关 10.1.100.1,设置 AC 的地址为 10. 1.100.2,重启生效,使用 display ap-address-info 查看配置是否生效。
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]ap-address mode static
Info: The configuration takes effect after the AP is restarted.
[Huawei]ap-address static ip-address 10.1.100.88 24 10.1.100.1
Info: The configuration takes effect after the AP is restarted.
[Huawei]ap-address static ac-list 10.1.100.2
Info: The configuration takes effect after the AP is restarted.
[Huawei]quit
<Huawei>reboot
System will reboot! Continue ? [y/n]:y
Info: system is rebooting ,please wait...
<Huawei>display ap-address-info
==============================================================
Active AP Address Info
AP Mode : static
Ip Address : 10.1.100.88
Ip Version : 4
Mask : 255.255.255.0
Gateway : 10.1.100.1
AC 0 ip : 10.1.100.2
AC 1 ip : -
AC 2 ip : -
AC 3 ip : -
--------------------------------------------------------------
Reboot Active AP Address Info
AP Mode : static
Ip Address : 10.1.100.88
Ip Version : 4
Mask : 255.255.255.0
Gateway : 10.1.100.1
AC 0 ip : 10.1.100.2
AC 1 ip : -
AC 2 ip : -
AC 3 ip : -
==============================================================
步骤 3: 配置AC,创建 vlan100,并设置 G0/0/1 和 G0/0/2 为trunk,设置 G0/0/1 和 G0/0/2 的 pvid为vlan100, 设置 G0/0/3 为trunk,并设置vlan100 虚接口 IP 地址为 10.1.100.2。
<AC6005>system-view
Enter system view, return user view with Ctrl+Z.
[AC6005]vlan 100
Info: This operation may take a few seconds. Please wait for a moment...done.
[AC6005-vlan100]quit
[AC6005]interface GigabitEthernet 0/0/1
[AC6005-GigabitEthernet0/0/1]port link-type trunk
[AC6005-GigabitEthernet0/0/1]port trunk pvid vlan 100
[AC6005-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[AC6005-GigabitEthernet0/0/1]quit
[AC6005]interface GigabitEthernet 0/0/2
[AC6005-GigabitEthernet0/0/2]port link-type trunk
[AC6005-GigabitEthernet0/0/2]port trunk pvid vlan 100
[AC6005-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[AC6005-GigabitEthernet0/0/2]quit
[AC6005]interface GigabitEthernet 0/0/3
[AC6005-GigabitEthernet0/0/3]port link-type trunk
[AC6005-GigabitEthernet0/0/3]port trunk allow-pass vlan all
[AC6005-GigabitEthernet0/0/3]quit
[AC6005]interface vlanif 100
[AC6005-Vlanif100]ip address 10.1.100.2 24
[AC6005-Vlanif100]quit
[AC6005]
步骤 4: 配置S5700 ,创建vlan100,配置 G0/0/1 为 trunk, 配置vlanif100:10.1.100.1。
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname S5700
Dec 15 2023 23:28:09-08:00 S5700 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.
25.191.3.1 configurations have been changed. The current change number is 4, the
change loop count is 0, and the maximum number of records is 4095.
[S5700]vlan 100
[S5700-vlan100]quit
[S5700]interface GigabitEthernet 0/0/1
[S5700-GigabitEthernet0/0/1]port link-type trunk
[S5700-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[S5700-GigabitEthernet0/0/1]quit
[S5700]interface Vlanif 100
[S5700-Vlanif100]ip address 10.1.100.1 24
[S5700-Vlanif100]
Dec 15 2023 23:29:51-08:00 S5700 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
IP on the interface Vlanif100 has entered the UP state.
<Huawei>ping 10.1.100.1
PING 10.1.100.1: 56 data bytes, press CTRL_C to break
Reply from 10.1.100.1: bytes=56 Sequence=1 ttl=255 time=80 ms
Reply from 10.1.100.1: bytes=56 Sequence=2 ttl=255 time=10 ms
Reply from 10.1.100.1: bytes=56 Sequence=3 ttl=255 time=10 ms
Reply from 10.1.100.1: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 10.1.100.1: bytes=56 Sequence=5 ttl=255 time=20 ms
--- 10.1.100.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 10/28/80 ms
<Huawei>ping 10.1.100.2
PING 10.1.100.2: 56 data bytes, press CTRL_C to break
Reply from 10.1.100.2: bytes=56 Sequence=1 ttl=255 time=1 ms
Reply from 10.1.100.2: bytes=56 Sequence=2 ttl=255 time=10 ms
Reply from 10.1.100.2: bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 10.1.100.2: bytes=56 Sequence=4 ttl=255 time=10 ms
Reply from 10.1.100.2: bytes=56 Sequence=5 ttl=255 time=1 ms
--- 10.1.100.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/4/10 ms
Info: The operation may take a few seconds. Please wait for a moment.done.
[AC6005]vlan 101
[AC6005]ip pool vlan101pool
Info: It is successful to create an IP address pool.
[AC6005-ip-pool-vlan101pool]network 10.1.101.0 mask 24
[AC6005-ip-pool-vlan101pool]gateway-list 10.1.101.1
[AC6005-ip-pool-vlan101pool]excluded-ip-address 10.1.101.1 10.1.101.10
Info: Some of addresses not be excluded are not idle or not in the pool.
[AC6005-ip-pool-vlan101pool]quit
[AC6005]interface Vlanif 101
[AC6005-Vlanif101]ip address 10.1.101.2 24
[AC6005-Vlanif101]dhcp select global
[AC6005-Vlanif101]quit
[S5700-vlan101]quit
Dec 15 2023 23:53:10-08:00 S5700 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.
25.191.3.1 configurations have been changed. The current change number is 10, th
e change loop count is 0, and the maximum number of records is 4095.
[S5700]interface Vlanif 101
[S5700-Vlanif101]ip address 10.1.101.1 24
[S5700-Vlanif101]quit
[AC6005-wlan-view]regulatory-domain-profile name domain1
[AC6005-wlan-regulate-domain-domain1]country-code cn
Info: The current country code is same with the input country code.
[AC6005-wlan-regulate-domain-domain1]quit
[AC6005-wlan-view]ap-group name ap-group1
Info: This operation may take a few seconds. Please wait for a moment.done.
[AC6005-wlan-ap-group-ap-group1]regulatory-domain-profile domain1
Warning: Modifying the country code will clear channel, power and antenna gain c
onfigurations of the radio and reset the AP. Continue?[Y/N]:y
[AC6005-wlan-ap-group-ap-group1]quit
[AC6005-wlan-view]ap auth-mode no-auth
Warning: It is insecure to configure none authentication mode.
[AC6005-wlan-ap-0]ap-group ap-group1
Warning: This operation may cause AP reset. If the country code changes, it will
clear channel, power and antenna gain configurations of the radio, Whether to c
ontinue? [Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment.. done.
[AC6005-wlan-ap-0]quit
[AC6005-wlan-view]ap-id 1
[AC6005-wlan-ap-1]ap-group ap-group1
Warning: This operation may cause AP reset. If the country code changes, it will
clear channel, power and antenna gain configurations of the radio, Whether to c
ontinue? [Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment.. done.
Info: This operation may take a few seconds. Please wait for a moment.done.
Total AP information:
nor : normal [2]
--------------------------------------------------------------------------------
--------------------
ID MAC Name Group IP Type State S
TA Uptime
--------------------------------------------------------------------------------
--------------------
0 00e0-fc30-1950 00e0-fc30-1950 ap-group1 10.1.100.88 AP2050DN nor 0
1M:14S
1 00e0-fcd7-5760 00e0-fcd7-5760 ap-group1 10.1.100.66 AP2050DN nor 0
53S
--------------------------------------------------------------------------------
--------------------
Total: 2
[AC6005-wlan-view]security-profile name security-1
[AC6005-wlan-sec-prof-security-1]security open
[AC6005-wlan-sec-prof-security-1]quit
[AC6005-wlan-view]ssid-profile name ssid-1
[AC6005-wlan-ssid-prof-ssid-1]ssid huawei
Info: This operation may take a few seconds, please wait.done.
[AC6005-wlan-ssid-prof-ssid-1]quit
[AC6005-wlan-view]vap-profile name huawei-vap
[AC6005-wlan-vap-prof-huawei-vap]forward-mode direct-forward
[AC6005-wlan-vap-prof-huawei-vap]service-vlan vlan-id 101
Info: This operation may take a few seconds, please wait.done.
[AC6005-wlan-vap-prof-huawei-vap]security-profile security-1
Info: This operation may take a few seconds, please wait.done.
[AC6005-wlan-vap-prof-huawei-vap]ssid-profile ssid-1
Info: This operation may take a few seconds, please wait.done.
[AC6005-wlan-vap-prof-huawei-vap]quit
[AC6005]wlan
[AC6005-wlan-view]ap-group name ap-group1
[AC6005-wlan-ap-group-ap-group1]vap-profile huawei-vap wlan 1 radio all
Info: This operation may take a few seconds, please wait...done.
最终结果: