vlan实验

本文详细介绍了进行VLAN配置的实验过程,包括LSW、R1到R4等设备的代码配置及实验结果展示。
摘要由CSDN通过智能技术生成

实验

在这里插入图片描述
LSW代码如下:

Apr  7 2021 15:24:32-08:00 LSW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.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.
[LSW4-Vlanif50]int vlan60
[LSW4-Vlanif60] User interface con0 is available



Please Press ENTER.

<LSW4>sys
Enter system view, return user view with Ctrl+Z.
[LSW4]int vlan60
[LSW4-Vlanif60]ip address 192.168.60.254 24
[LSW4-Vlanif60]
Apr  7 2021 16:07:33-08:00 LSW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.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.
[LSW4-Vlanif60]
[LSW4-Vlanif60]q
[LSW4]int g0/0/1
[LSW4-GigabitEthernet0/0/1]q
[LSW4]vlan b	
[LSW4]vlan batch 10 20 30 40 50 60
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW4]
Apr  7 2021 16:13:33-08:00 LSW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 12, the
 change loop count is 0, and the maximum number of records is 4095.
[LSW4]int g0/0/1
[LSW4-GigabitEthernet0/0/1]p l t
[LSW4-GigabitEthernet0/0/1]
Apr  7 2021 16:13:53-08:00 LSW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 13, the
 change loop count is 0, and the maximum number of records is 4095.
[LSW4-GigabitEthernet0/0/1]p t a v a
[LSW4-GigabitEthernet0/0/1]
Apr  7 2021 16:13:58-08:00 LSW4 %%01IFNET/4/IF_STATE(l)[0]:Interface Vlanif10 ha
s turned into UP state.
Apr  7 2021 16:13:58-08:00 LSW4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol I
P on the interface Vlanif10 has entered the UP state.
Apr  7 2021 16:13:58-08:00 LSW4 %%01IFNET/4/IF_STATE(l)[2]:Interface Vlanif20 ha
s turned into UP state.
Apr  7 2021 16:13:58-08:00 LSW4 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol I
P on the interface Vlanif20 has entered the UP state.
Apr  7 2021 16:13:58-08:00 LSW4 %%01IFNET/4/IF_STATE(l)[4]:Interface Vlanif30 ha
s turned into UP state.
Apr  7 2021 16:13:58-08:00 LSW4 %%01IFNET/4/LINK_STATE(l)[5]:The line protocol I
P on the interface Vlanif30 has entered the UP state.
Apr  7 2021 16:13:58-08:00 LSW4 %%01IFNET/4/IF_STATE(l)[6]:Interface Vlanif40 ha
s turned into UP state.
Apr  7 2021 16:13:58-08:00 LSW4 %%01IFNET/4/LINK_STATE(l)[7]:The line protocol I
P on the interface Vlanif40 has entered the UP state.
Apr  7 2021 16:13:58-08:00 LSW4 %%01IFNET/4/IF_STATE(l)[8]:Interface Vlanif50 ha
s turned into UP state.
Apr  7 2021 16:13:58-08:00 LSW4 %%01IFNET/4/LINK_STATE(l)[9]:The line protocol I
P on the interface Vlanif50 has entered the UP state.
Apr  7 2021 16:13:58-08:00 LSW4 %%01IFNET/4/IF_STATE(l)[10]:Interface Vlanif60 h
as turned into UP state.
Apr  7 2021 16:13:58-08:00 LSW4 %%01IFNET/4/LINK_STATE(l)[11]:The line protocol 
IP on the interface Vlanif60 has entered the UP state.
[LSW4-GigabitEthernet0/0/1]
[LSW4-GigabitEthernet0/0/1]int 
Apr  7 2021 16:14:03-08:00 LSW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 14, the
 change loop count is 0, and the maximum number of records is 4095.g0/0/2
[LSW4-GigabitEthernet0/0/2]p l t
[LSW4-GigabitEthernet0/0/2]p t a v a
[LSW4-GigabitEthernet0/0/2]int 
Apr  7 2021 16:14:23-08:00 LSW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 16, the
 change loop count is 0, and the maximum number of records is 4095.g0/0/3
[LSW4-GigabitEthernet0/0/3]p l t
[LSW4-GigabitEthernet0/0/3]
Apr  7 2021 16:14:33-08:00 LSW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 17, the
 change loop count is 0, and the maximum number of records is 4095.
[LSW4-GigabitEthernet0/0/3]p t a v a
[LSW4-GigabitEthernet0/0/3]
Apr  7 2021 16:14:43-08:00 LSW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 18, the
 change loop count is 0, and the maximum number of records is 4095.
[LSW4-GigabitEthernet0/0/3]q
[LSW4]int g0/0/4
[LSW4-GigabitEthernet0/0/4]ip address
                              ^
Error: Unrecognized command found at '^' position.
[LSW4-GigabitEthernet0/0/4]ip address 192.168.2.1 24
                              ^
Error: Unrecognized command found at '^' position.
[LSW4-GigabitEthernet0/0/4]ip add	
[LSW4-GigabitEthernet0/0/4]ip add	
[LSW4-GigabitEthernet0/0/4]q
[LSW4]int vlan1
[LSW4-Vlanif1]ip add	
[LSW4-Vlanif1]ip address 192.168.2.1 24
[LSW4-Vlanif1]
Apr  7 2021 16:32:32-08:00 LSW4 %%01IFNET/4/LINK_STATE(l)[12]:The line protocol 
IP on the interface Vlanif1 has entered the UP state.
Apr  7 2021 16:32:34-08:00 LSW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 19, the
 change loop count is 0, and the maximum number of records is 4095. User interface con0 is available



Please Press ENTER.

<LSW4>sys
Enter system view, return user view with Ctrl+Z.
[LSW4]int g0/0/4
[LSW4-GigabitEthernet0/0/4]p l a
[LSW4-GigabitEthernet0/0/4]
Apr  7 2021 16:46:34-08:00 LSW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 20, the
 change loop count is 0, and the maximum number of records is 4095.
[LSW4-GigabitEthernet0/0/4]p d v 70
Error: The VLAN does not exist.
[LSW4-GigabitEthernet0/0/4] User interface con0 is available



Please Press ENTER.

<LSW4>sys
Enter system view, return user view with Ctrl+Z.
[LSW4]ip route-s	
[LSW4]ip route-static 192.168.70.0 24 192.168.2.2
[LSW4]
Apr  7 2021 17:23:25-08:00 LSW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 21, the
 change loop count is 0, and the maximum number of records is 4095. User interface con0 is available



Please Press ENTER.

<LSW4>
<LSW4>sys
Enter system view, return user view with Ctrl+Z.
[LSW4]int vlan 70
Error: The VLAN does not exist.
[LSW4]vlan 70
[LSW4-vlan70]
Apr  7 2021 17:58:56-08:00 LSW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 22, the
 change loop count is 0, and the maximum number of records is 4095.
[LSW4-vlan70]int vlan 70
[LSW4-Vlanif70]
Apr  7 2021 17:59:03-08:00 LSW4 %%01IFNET/4/IF_STATE(l)[0]:Interface Vlanif70 ha
s turned into UP state.
[LSW4-Vlanif70]ip address 192.168.2.1 24
Error: The specified address conflicts with another address.
[LSW4-Vlanif70]int vlan 1
[LSW4-Vlanif1]undo ip address 192.168.2.1 24
[LSW4-Vlanif1]
Apr  7 2021 18:00:30-08:00 LSW4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol I
P on the interface Vlanif1 has entered the DOWN state.
[LSW4-Vlanif1]int v
Apr  7 2021 18:00:36-08:00 LSW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 23, the
 change loop count is 0, and the maximum number of records is 4095.lan70
[LSW4-Vlanif70]ip address 192.168.2.1 24
[LSW4-Vlanif70]
Apr  7 2021 18:00:48-08:00 LSW4 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol I
P on the interface Vlanif70 has entered the UP state.
[LSW4-Vlanif70]
Apr  7 2021 18:00:56-08:00 LSW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 24, the
 change loop count is 0, and the maximum number of records is 4095.
[LSW4-Vlanif70]
[LSW4-Vlanif70]q
[LSW4]dis vlan
The total number of vlans is : 8
--------------------------------------------------------------------------------
U: Up;         D: Down;         TG: Tagged;         UT: Untagged;
MP: Vlan-mapping;               ST: Vlan-stacking;
#: ProtocolTransparent-vlan;    *: Management-vlan;
--------------------------------------------------------------------------------

VID  Type    Ports                                                          
--------------------------------------------------------------------------------
1    common  UT:GE0/0/1(U)      GE0/0/2(U)      GE0/0/3(U)      GE0/0/4(U)      
                GE
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值