实验
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