交换技术---VLAN配置

陈鑫


一.拓扑信息

二.IP设置

三.交换机配置

LSW1

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys sw1
[sw1]
Mar 27 2023 21:28:34-08:00 sw1 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 c
hange loop count is 0, and the maximum number of records is 4095.
[sw1]vlan 2
[sw1-vlan2]
Mar 27 2023 21:29:05-08:00 sw1 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, the c
hange loop count is 0, and the maximum number of records is 4095.
[sw1-vlan2]quit
[sw1]int  g  0/0/1
[sw1-GigabitEthernet0/0/1]port  link	
[sw1-GigabitEthernet0/0/1]port  link-	
[sw1-GigabitEthernet0/0/1]port  link-flap	
[sw1-GigabitEthernet0/0/1]port  link-type  acc	
[sw1-GigabitEthernet0/0/1]port  link-type  access 
[sw1-GigabitEthernet0/0/1]port
Mar 27 2023 21:30:25-08:00 sw1 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, the c
hange loop count is 0, and the maximum number of records is 4095.  de	
[sw1-GigabitEthernet0/0/1]port  default va	
[sw1-GigabitEthernet0/0/1]port  default vla	
[sw1-GigabitEthernet0/0/1]port  default vlan  2
[sw1-GigabitEthernet0/0/1]
Mar 27 2023 21:30:55-08:00 sw1 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 c
hange loop count is 0, and the maximum number of records is 4095.
[sw1-GigabitEthernet0/0/1]vlan  3
[sw1-vlan3]
Mar 27 2023 21:31:55-08:00 sw1 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, the c
hange loop count is 0, and the maximum number of records is 4095.
[sw1-vlan3]quit
[sw1]int  g  0/0/2
[sw1-GigabitEthernet0/0/2]port  li	
[sw1-GigabitEthernet0/0/2]port  link-	
[sw1-GigabitEthernet0/0/2]port  link-flap	
[sw1-GigabitEthernet0/0/2]port  link-type  acc	
[sw1-GigabitEthernet0/0/2]port  link-type  access 
[sw1-GigabitEthernet0/0/2]por
Mar 27 2023 21:32:45-08:00 sw1 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, the c
hange loop count is 0, and the maximum number of records is 4095.t  de	
[sw1-GigabitEthernet0/0/2]port  default   vla	
[sw1-GigabitEthernet0/0/2]port  default   vlan   3
[sw1-GigabitEthernet0/0/2]
Mar 27 2023 21:33:05-08:00 sw1 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, the 
change loop count is 0, and the maximum number of records is 4095.
[sw1-GigabitEthernet0/0/2]int g  0/0/3
[sw1-GigabitEthernet0/0/3]port  lin	
[sw1-GigabitEthernet0/0/3]port  link-	
[sw1-GigabitEthernet0/0/3]port  link-flap	
[sw1-GigabitEthernet0/0/3]port  link-type  tru	
[sw1-GigabitEthernet0/0/3]port  link-type  trunk 
[sw1-GigabitEthernet0/0/3]por
Mar 27 2023 21:33:45-08:00 sw1 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, the 
change loop count is 0, and the maximum number of records is 4095.t 
                               ^
Error:Incomplete command found at '^' position.
[sw1-GigabitEthernet0/0/3]port  tru	
[sw1-GigabitEthernet0/0/3]port  trunk   all	
[sw1-GigabitEthernet0/0/3]port  trunk   allow-pass   vl	
[sw1-GigabitEthernet0/0/3]port  trunk   allow-pass   vlan   2 3

 LSW2

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys sw2
[sw2]
Mar 27 2023 21:31:16-08:00 sw2 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 c
hange loop count is 0, and the maximum number of records is 4095.
[sw2]vla	
[sw2]vlan   2
[sw2-vlan2]in
Mar 27 2023 21:34:46-08:00 sw2 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, the c
hange loop count is 0, and the maximum number of records is 4095.
           ^
Error: Unrecognized command found at '^' position.
[sw2-vlan2]int  g  0/0/1
[sw2-GigabitEthernet0/0/1]port  lin	
[sw2-GigabitEthernet0/0/1]port  link-	
[sw2-GigabitEthernet0/0/1]port  link-flap	
[sw2-GigabitEthernet0/0/1]port  link-type  acc	
[sw2-GigabitEthernet0/0/1]port  link-type  access 
[sw2-GigabitEthernet0/0/1]port
Mar 27 2023 21:35:36-08:00 sw2 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, the c
hange loop count is 0, and the maximum number of records is 4095. 
                               ^
Error:Incomplete command found at '^' position.
[sw2-GigabitEthernet0/0/1]port  de	
[sw2-GigabitEthernet0/0/1]port  default   vla	
[sw2-GigabitEthernet0/0/1]port  default   vlan  2
[sw2-GigabitEthernet0/0/1]
Mar 27 2023 21:36:16-08:00 sw2 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 c
hange loop count is 0, and the maximum number of records is 4095.
[sw2-GigabitEthernet0/0/1]quit
[sw2]vlan 3
[sw2-vlan3]in
Mar 27 2023 21:37:06-08:00 sw2 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, the c
hange loop count is 0, and the maximum number of records is 4095.t
           ^
Error: Unrecognized command found at '^' position.
[sw2-vlan3]int  g  0/0/2
[sw2-GigabitEthernet0/0/2]port  lin	
[sw2-GigabitEthernet0/0/2]port  link-	
[sw2-GigabitEthernet0/0/2]port  link-flap	
[sw2-GigabitEthernet0/0/2]port  link-type  acc	
[sw2-GigabitEthernet0/0/2]port  link-type  access 
[sw2-GigabitEthernet0/0/2]port  de	
[sw2-GigabitEthernet0/0/2]port  default 
Mar 27 2023 21:37:56-08:00 sw2 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, the c
hange loop count is 0, and the maximum number of records is 4095. 
[sw2-port-group-default]port default 
Mar 27 2023 21:38:06-08:00 sw2 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, the 
change loop count is 0, and the maximum number of records is 4095.vla	
[sw2-port-group-default]port default vlan 3
[sw2-port-group-default]quit
[sw2]int  g  0/0/3
[sw2-GigabitEthernet0/0/3]port  lin	
[sw2-GigabitEthernet0/0/3]port  link-	
[sw2-GigabitEthernet0/0/3]port  link-flap	
[sw2-GigabitEthernet0/0/3]port  link-type  tru	
[sw2-GigabitEthernet0/0/3]port  link-type  trunk 
[sw2-GigabitEthernet0/0/3]port  
Mar 27 2023 21:39:26-08:00 sw2 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, the 
change loop count is 0, and the maximum number of records is 4095.tr	
[sw2-GigabitEthernet0/0/3]port  trunk   a	
[sw2-GigabitEthernet0/0/3]port  trunk   allow-pass  vl	
[sw2-GigabitEthernet0/0/3]port  trunk   allow-pass  vlan   2 3

四.测验

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值