vlan的用法

<Huawei>
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]v    
[Huawei]vlan ba    
[Huawei]vlan batch 2 3 4
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]
Nov 24 2022 22:15:45-08:00 Huawei 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, th
e change loop count is 0, and the maximum number of records is 4095.  
[Huawei]interface e0/0/2  
[Huawei-Ethernet0/0/2]port link-type access 
[Huawei-Ethernet0/0/2]
Nov 24 2022 22:16:55-08:00 Huawei 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 5, th
e change loop count is 0, and the maximum number of records is 4095. 
[Huawei-Ethernet0/0/2]port default vlan 2
[Huawei-Ethernet0/0/2]
Nov 24 2022 22:17:25-08:00 Huawei 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 6, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei-Ethernet0/0/2]qu    
[Huawei-Ethernet0/0/3]port link-type access 
[Huawei-Ethernet0/0/3]
Nov 24 2022 22:18:05-08:00 Huawei 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, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei-Ethernet0/0/3]port default vlan 3
[Huawei-Ethernet0/0/3]
Nov 24 2022 22:18:15-08:00 Huawei 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 8, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei-Ethernet0/0/3]qu
[Huawei]in    
[Huawei]info-center    
[Huawei]interface e0/0/4
Nov 24 2022 22:18:31-08:00 Huawei %%01PHY/1/PHY(l)[0]:    Ethernet0/0/2: change 
status to downc    
[Huawei-Ethernet0/0/4]port link-type access 
Nov 24 2022 22:18:32-08:00 Huawei %%01PHY/1/PHY(l)[1]:    Ethernet0/0/2: change 
status to up
[Huawei-Ethernet0/0/4]
Nov 24 2022 22:18:35-08:00 Huawei 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 9, th
e change loop count is 0, and the maximum number of records is 4095.po    
[Huawei-Ethernet0/0/4]port link-type access   
[Huawei-Ethernet0/0/4]port default vlan 4
[Huawei-Ethernet0/0/4]
Nov 24 2022 22:19:15-08:00 Huawei 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, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei-Ethernet0/0/4]qu
[Huawei]in    
[Huawei]info-center    
[Huawei]interface e0/0/1
[Huawei-Ethernet0/0/1]port link-type trunk  
[Huawei-Ethernet0/0/1]port trunk allow-pass vlan 
Nov 24 2022 22:20:05-08:00 Huawei 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 11, t
he change loop count is 0, and the maximum number of records is 4095.
                                                 ^
Error:Incomplete command found at '^' position. 
[Huawei-Ethernet0/0/1]port trunk allow-pass vlan all 
[Huawei-Ethernet0/0/1]
Nov 24 2022 22:20:25-08:00 Huawei 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 12, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei-Ethernet0/0/1]
Nov 24 2022 22:20:42-08:00 Huawei %%01PHY/1/PHY(l)[2]:    Ethernet0/0/3: change 
status to up
Nov 24 2022 22:22:18-08:00 Huawei %%01PHY/1/PHY(l)[3]:    Ethernet0/0/4: change 
status to down
Nov 24 2022 22:22:19-08:00 Huawei %%01PHY/1/PHY(l)[4]:    Ethernet0/0/4: change 
status to up
Nov 24 2022 22:23:27-08:00 Huawei %%01PHY/1/PHY(l)[5]:    Ethernet0/0/4: change 
status to up
Nov 24 2022 22:29:31-08:00 Huawei %%01PHY/1/PHY(l)[6]:    Ethernet0/0/4: change 
status to down
Nov 24 2022 22:29:32-08:00 Huawei %%01PHY/1/PHY(l)[7]:    Ethernet0/0/4: change 
status to up

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]interface g0/0/0.1
[Huawei-GigabitEthernet0/0/0.1]do    
[Huawei-GigabitEthernet0/0/0.1]dot1q te    
[Huawei-GigabitEthernet0/0/0.1]dot1q termination vid 2
[Huawei-GigabitEthernet0/0/0.1]ip add    
[Huawei-GigabitEthernet0/0/0.1]ip address 12.1.1.1 24
Nov 24 2022 22:22:20-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
 IP on the interface GigabitEthernet0/0/0.1 has entered the UP state. 
[Huawei-GigabitEthernet0/0/0.1]qu
[Huawei]in    
[Huawei]info-center
[Huawei]interface g0/0/0.2
[Huawei-GigabitEthernet0/0/0.2]do    
[Huawei-GigabitEthernet0/0/0.2]dot1q te    
[Huawei-GigabitEthernet0/0/0.2]dot1q termination vid 3
[Huawei-GigabitEthernet0/0/0.2]ip add    
[Huawei-GigabitEthernet0/0/0.2]ip address 34.1.1.1 24
Nov 24 2022 22:22:55-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
 IP on the interface GigabitEthernet0/0/0.2 has entered the UP state. 
[Huawei-GigabitEthernet0/0/0.2]qu
[Huawei]in    
[Huawei]info-center
[Huawei]interface g0/0/0.3
[Huawei-GigabitEthernet0/0/0.3]do    
[Huawei-GigabitEthernet0/0/0.3]dot1q 
[Huawei-GigabitEthernet0/0/0.3]dot1q te    
[Huawei-GigabitEthernet0/0/0.3]dot1q termination vid    
[Huawei-GigabitEthernet0/0/0.3]dot1q termination vid 4
[Huawei-GigabitEthernet0/0/0.3]ip add    
[Huawei-GigabitEthernet0/0/0.3]ip address 23.1.1.1 24
Nov 24 2022 22:23:29-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[2]:The line protocol
 IP on the interface GigabitEthernet0/0/0.3 has entered the UP state. 
[Huawei-GigabitEthernet0/0/0.3]qu
[Huawei]dh    
[Huawei]dhcp en    
[Huawei]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[Huawei]ip p    
[Huawei]ip policy-based-route
[Huawei]ip pool
[Huawei]ip policy-based-route
[Huawei]ip pool 1
Info: It's successful to create an IP address pool.
[Huawei-ip-pool-1]ne    
[Huawei-ip-pool-1]netbios-type
[Huawei-ip-pool-1]network 12.1.1.0 ma    
[Huawei-ip-pool-1]network 12.1.1.0 mask 24
[Huawei-ip-pool-1]ga    
[Huawei-ip-pool-1]gateway-list 12.1.1.1
[Huawei-ip-pool-1]dn    
[Huawei-ip-pool-1]dns-list 8.8.8.8
[Huawei-ip-pool-1]qu
[Huawei]in    
[Huawei]info-center
[Huawei]interface g0/0/0.1
[Huawei-GigabitEthernet0/0/0.1]dh    
[Huawei-GigabitEthernet0/0/0.1]dhcp se    
[Huawei-GigabitEthernet0/0/0.1]dhcp select g    
[Huawei-GigabitEthernet0/0/0.1]dhcp select global 
[Huawei-GigabitEthernet0/0/0.1]qu
[Huawei]ip po    
[Huawei]ip policy-based-route
[Huawei]ip pool 2
Info: It's successful to create an IP address pool.
[Huawei-ip-pool-2]net     
[Huawei-ip-pool-2]network 34.1.1.0 mask 24
[Huawei-ip-pool-2]gateway-list 34.1.1.1
[Huawei-ip-pool-2]dns-list 8.8.8.8
[Huawei-ip-pool-2]qu
[Huawei]in    
[Huawei]info-center
[Huawei]interface g0/0/0.2
[Huawei-GigabitEthernet0/0/0.2]dhcp select global 
[Huawei-GigabitEthernet0/0/0.2]qu
[Huawei]ip poo    
[Huawei]ip pool 3
Info: It's successful to create an IP address pool.   
[Huawei-ip-pool-3]network 23.1.1.0 mask 24
[Huawei-ip-pool-3]gateway-list 23.1.1.1
[Huawei-ip-pool-3]dns-list 8.8.8.8
[Huawei-ip-pool-3]qu
[Huawei]interface g0/0/0.3
[Huawei-GigabitEthernet0/0/0.3]dhcp select global 
[Huawei-GigabitEthernet0/0/0.3]qu
[Huawei]







 

 

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值