IP复习第十天 vlan pvid

拓扑图

代码

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>

测试截图

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值