1、配置 AP 管理 vlan 100
步骤 1:AP2050配置静态IP地址10.1.100.66 和网关10.1.100.1,同时设置 AC 的地址为10.1.100.2,然后重启生效。
<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
Enter system view, return user view with Ctrl+Z.
[S5700]vlan 100
[S5700-vlan100]quit
[S5700]interface GigabitEthernet 0/0/2
Dec 15 2023 20:36:16-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 7, the
change loop count is 0, and the maximum number of records is 4095.
[S5700-GigabitEthernet0/0/2]port link-type trunk
[S5700-GigabitEthernet0/0/2]port trunk pvid vlan 100
[S5700-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[S5700-GigabitEthernet0/0/2]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
Dec 15 2023 20:39:17-08:00 S5700 %%01IFNET/4/IF_STATE(l)[55]:Interface Vlanif100
has turned into UP state.
[S5700-Vlanif100]ip address 10.1.100.1 24
Dec 15 2023 20:39:30-08:00 S5700 %%01IFNET/4/LINK_STATE(l)[56]:The line protocol
IP on the interface Vlanif100 has entered the UP state.
[S5700-Vlanif100]quit
<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 allow-pass vlan all
[AC6005-GigabitEthernet0/0/1]quit
[AC6005]interface vlan 100
[AC6005-Vlanif100]ip address 10.1.100.2 24
[AC6005-Vlanif100]quit
验证:在AP上ping通 10.1.100.1、10.1.100.2
[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=70 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=10 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/24/70 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=40 ms
Reply from 10.1.100.2: bytes=56 Sequence=2 ttl=255 time=40 ms
Reply from 10.1.100.2: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 10.1.100.2: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 10.1.100.2: bytes=56 Sequence=5 ttl=255 time=40 ms
--- 10.1.100.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/32/40 ms
Info: TELNET server has been enabled.
[AC6005]aaa
[AC6005-aaa]local-user huawei password cipher huawei123
Info: Add a new user.
[AC6005-aaa]local-user huawei service-type telnet
Info: The cipher password has been changed to an irreversible-cipher password.
Warning: The user access modes include Telnet, FTP, or HTTP, so security risks e
xist.
Info: After changing the rights (including the password, access type, FTP direct
ory, HTTP directory, and level) of a local user, the rights of users already onl
ine do not change. The change takes effect to users who go online after the chan
ge.
[AC6005-aaa]local-user huawei privilege level 15
Warning: This operation may affect online users, are you sure to change the user
privilege level ?[Y/N]y
[AC6005-aaa]quit
[AC6005]user-interface vty 0 4
[AC6005-ui-vty0-4]authentication-mode aaa
Warning: The level of the user-interface(s) will be the default level of AAA use
rs, please check whether it is correct.
[AC6005-ui-vty0-4]protocol inbound telnet
Warning: The inbound protocol include Telnet, so security risks exist.
<Huawei>telnet 10.1.100.2
Press CTRL_] to quit telnet mode
Trying 10.1.100.2 ...
Connected to 10.1.100.2 ...
Warning: Telnet is not a secure protocol, and it is recommended to use Stelnet.
Login authentication
Username:huawei
Password:
<AC6005>
显示登录成功。