拓扑图
代码
The device is running!
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r1
[r1]dhcp se
[r1]dhcp en
[r1]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[r1]ip pool a
[r1]ip pool a
Info: It's successful to create an IP address pool.
[r1-ip-pool-a]netw
[r1-ip-pool-a]network 192.168.1.0 ma
[r1-ip-pool-a]network 192.168.1.0 mask 24
[r1-ip-pool-a]gat
[r1-ip-pool-a]gateway-list 192.168.1.254
[r1-ip-pool-a]dns
[r1-ip-pool-a]dns-list 8.8.8.8
[r1-ip-pool-a]q
[r1]ip pool b
Info: It's successful to create an IP address pool.
[r1-ip-pool-b]netw
[r1-ip-pool-b]network 192.168.2.0 ma
[r1-ip-pool-b]network 192.168.2.0 mask 24
[r1-ip-pool-b]gat
[r1-ip-pool-b]gateway-list 192.168.2.254
[r1-ip-pool-b]dns
[r1-ip-pool-b]dns-list 8.8.8.8
[r1-ip-pool-b]q
[r1]dhcp se
[r1]dhcp server g
[r1]dhcp sele
[r1]interf
[r1]interface g
[r1]interface GigabitEthernet 0/0/0
[r1-GigabitEthernet0/0/0]dhcp se
[r1-GigabitEthernet0/0/0]dhcp select g
[r1-GigabitEthernet0/0/0]dhcp select global
[r1-GigabitEthernet0/0/0]q
[r1]interf
[r1]interface g
[r1]interface GigabitEthernet 0/0/0.1
[r1-GigabitEthernet0/0/0.1]ip add
[r1-GigabitEthernet0/0/0.1]ip address 192.168.2.1
^
Error:Incomplete command found at '^' position.
[r1-GigabitEthernet0/0/0.1]ip address 192.168.2.1 24
[r1-GigabitEthernet0/0/0.1]dhcp se
[r1-GigabitEthernet0/0/0.1]dhcp select g
[r1-GigabitEthernet0/0/0.1]dhcp select global
[r1-GigabitEthernet0/0/0.1]do
[r1-GigabitEthernet0/0/0.1]dot1q ter
[r1-GigabitEthernet0/0/0.1]dot1q termination vid 3 4 5 6
^
Error:Too many parameters found at '^' position.
[r1-GigabitEthernet0/0/0.1]dot1q termination vid 3 to 6
^
Error:Too many parameters found at '^' position.
[r1-GigabitEthernet0/0/0.1]dot1q termination vid 3
Jul 19 2021 02:00:06-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0.1 has entered the UP state.
[r1-GigabitEthernet0/0/0.1]q
[r1]interf
[r1]interface g
[r1]interface GigabitEthernet 0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.1 24
Jul 19 2021 02:00:32-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r1-GigabitEthernet0/0/0]dot1q termination vid 2
^
Error: Unrecognized command found at '^' position.
[r1-GigabitEthernet0/0/0]q
[r1]interf
[r1]interface g
[r1]interface GigabitEthernet 0/0/0.1
[r1-GigabitEthernet0/0/0.1]dol
[r1-GigabitEthernet0/0/0.1]do
[r1-GigabitEthernet0/0/0.1]dot1q ter
[r1-GigabitEthernet0/0/0.1]dot1q termination vid 2
Error: Number of VLAN/QinQ has reached the limit on this interface.
[r1-GigabitEthernet0/0/0.1]undo do
[r1-GigabitEthernet0/0/0.1]undo dot1q ter
[r1-GigabitEthernet0/0/0.1]undo dot1q termination v
[r1-GigabitEthernet0/0/0.1]undo dot1q termination vid 2
Error: Failed to delete the VLAN because the VLAN does not exist or try to delet
e part of the VLAN section.
[r1-GigabitEthernet0/0/0.1]undo dot1q termination vid 3
Jul 19 2021 02:02:54-08:00 r1 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface GigabitEthernet0/0/0.1 has entered the DOWN state.
[r1-GigabitEthernet0/0/0.1]dot
[r1-GigabitEthernet0/0/0.1]dot1q ter
[r1-GigabitEthernet0/0/0.1]dot1q termination vid 2
Jul 19 2021 02:03:07-08:00 r1 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP
on the interface GigabitEthernet0/0/0.1 has entered the UP state.
[r1-GigabitEthernet0/0/0.1]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r1>
<r1>sa
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<r1>
测试截图