lsw3相关配置:
[Huawei]vlan batch 2 3 20 30
[Huawei]interface g 0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type access
[Huawei-GigabitEthernet0/0/1]port default vlan 2
[Huawei]int g 0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type access
[Huawei-GigabitEthernet0/0/2]port default vlan 3
[Huawei]int g 0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type trunk
[Huawei-GigabitEthernet0/0/3]port trunk allow-pass vlan 2 3 20 30
[Huawei-GigabitEthernet0/0/3]int g 0/0/4
[Huawei-GigabitEthernet0/0/4]po li t
[Huawei-GigabitEthernet0/0/4]po t all v 2 3 20 30
[Huawei-GigabitEthernet0/0/1]stp edged-port enable
Huawei]stp enable
[Huawei]stp mode mstp
[Huawei-mst-region]dis this
#
stp region-configuration
region-name aa
revision-level 100
instance 1 vlan 2 to 3
instance 2 vlan 20 30
active region-configuration
#
lsw4相关配置:
[Huawei]vlan batch 2 3 20 30
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]po li a
[Huawei-GigabitEthernet0/0/1]po de v 20
[Huawei-GigabitEthernet0/0/1]int g 0/0/2
[Huawei-GigabitEthernet0/0/2]po li a
[Huawei-GigabitEthernet0/0/2]po de v 30
[Huawei-GigabitEthernet0/0/3]po li t
[Huawei-GigabitEthernet0/0/3]po t all v 2 3 20 30
[Huawei-GigabitEthernet0/0/3]int g 0/0/4
[Huawei-GigabitEthernet0/0/4]po li t
[Huawei-GigabitEthernet0/0/4]po t all v 2 3 20 30
lsw1相关配置:
[Huawei]int Eth-Trunk 0
[Huawei-Eth-Trunk0]trunkport GigabitEthernet 0/0/1 to 0/0/2
[Huawei-Eth-Trunk0]port link-type trunk
[Huawei-Eth-Trunk0]port trunk allow-pass
[Huawei-Eth-Trunk0]port trunk allow-pass vlan 2 3 20 30
[Huawei-Eth-Trunk0]int g 0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type trunk
[Huawei-GigabitEthernet0/0/3]port trunk allow-pass vlan 2 3 20 30
[Huawei-GigabitEthernet0/0/3]int g 0/0/4
[Huawei-GigabitEthernet0/0/4]port link-type trunk
[Huawei-GigabitEthernet0/0/4]port trunk allow-pass vlan 2 3 20 30
[Huawei]display interface brief
[Huawei]display vlan
[Huawei]stp instance 1 root primary
[Huawei]stp instance 2 root secondary
[Huawei]interface Eth-Trunk 0
[Huawei-Eth-Trunk0]q
[Huawei]int g 0/0/3
[Huawei-GigabitEthernet0/0/3]stp ro
[Huawei-GigabitEthernet0/0/3]stp root-protection
[Huawei]interface Vlanif 2
[Huawei-Vlanif2]ip address 10.0.2.1 24
[Huawei-Vlanif2]vrrp vrid 1 virtual-ip 10.0.2.254
[Huawei-Vlanif2]vrrp vrid 1 priority 120
[Huawei-Vlanif2]vrrp vrid 1 preempt-mode timer delay 20
[Huawei-Vlanif2]vrrp vrid 1 track interface GigabitEthernet 0/0/5 reduced 30
[Huawei]interface Vlanif 3
[Huawei-Vlanif3]ip address 10.0.3.1 24
[Huawei-Vlanif3]vrrp vrid 1 virtual-ip 10.0.3.254
[Huawei-Vlanif3]vrrp vrid 1 priority 120
[Huawei-Vlanif3]vrrp vrid 1 priority
[Huawei-Vlanif3]vrrp vrid 1 preempt-mode t
[Huawei-Vlanif3]vrrp vrid 1 preempt-mode timer d
[Huawei-Vlanif3]vrrp vrid 1 preempt-mode timer delay 20
[Huawei]interface Vlanif 20
[Huawei-Vlanif20]
Apr 5 2025 22:27:16-08:00 Huawei %%01IFNET/4/IF_STATE(l)[6]:Interface Vlanif20
has turned into UP state.ip ad
[Huawei-Vlanif20]ip address 10.0.20.1 24
[Huawei-Vlanif20]
Apr 5 2025 22:27:28-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[7]:The line protocol
IP on the interface Vlanif20 has entered the UP state.v
[Huawei-Vlanif20]vrrp
Apr 5 2025 22:27:31-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 29, t
he change loop count is 0, and the maximum number of records is 4095.v
[Huawei-Vlanif20]vrrp v
[Huawei-Vlanif20]vrrp vrid 1 v
[Huawei-Vlanif20]vrrp vrid 1 virtual-ip 10.0.20.254
[Huawei-Vlanif20]q
[Huawei]
Apr 5 2025 22:28:00-08:00 Huawei %%01VRRP/4/STATEWARNINGEXTEND(l)[8]:Virtual Ro
uter state BACKUP changed to MASTER, because of protocol timer expired. (Interfa
ce=Vlanif20, VrId=1, InetType=IPv4)
Apr 5 2025 22:28:01-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 30, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei]int
[Huawei]interface v
[Huawei]interface Vlanif 30
[Huawei-Vlanif30]
Apr 5 2025 22:28:12-08:00 Huawei %%01IFNET/4/IF_STATE(l)[9]:Interface Vlanif30
has turned into UP state.
[Huawei-Vlanif30]ip ad
[Huawei-Vlanif30]ip address 10.0.30.1 24
[Huawei-Vlanif30]
Apr 5 2025 22:28:38-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[10]:The line protoco
l IP on the interface Vlanif30 has entered the UP state.v
[Huawei-Vlanif30]vrrp
Apr 5 2025 22:28:41-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 31, t
he change loop count is 0, and the maximum number of records is 4095.v
[Huawei-Vlanif30]vrrp v
[Huawei-Vlanif30]vrrp vrid 1 v
[Huawei-Vlanif30]vrrp vrid 1 virtual-ip 10.0.30.254
ip pool vlan2
gateway-list 10.0.2.254
network 10.0.2.0 mask 255.255.255.0
dns-list 8.8.8.8
[Huawei]int g
[Huawei]int GigabitEthernet 0/0/5
[Huawei-GigabitEthernet0/0/5]po
[Huawei-GigabitEthernet0/0/5]port li
[Huawei-GigabitEthernet0/0/5]port link-
[Huawei-GigabitEthernet0/0/5]port link-flap
[Huawei-GigabitEthernet0/0/5]port link-typea
[Huawei-GigabitEthernet0/0/5]port link-type a
[Huawei-GigabitEthernet0/0/5]port link-type access
[Huawei-GigabitEthernet0/0/5]
Apr 5 2025 23:06:51-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 42, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei-GigabitEthernet0/0/5]po
[Huawei-GigabitEthernet0/0/5]port de
[Huawei-GigabitEthernet0/0/5]port default v
[Huawei-GigabitEthernet0/0/5]port default vlan 11
Error: The VLAN does not exist.
[Huawei-GigabitEthernet0/0/5]q
[Huawei]v
[Huawei]vlan 11
[Huawei-vlan11]q
[Huawei]int GigabitEthernet 0/0/5
[Huawei-GigabitEthernet0/0/5]int GigabitEthernet 0/0/5
Apr 5 2025 23:07:52-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 43, t
he change loop count is 0, and the maximum n
[Huawei-GigabitEthernet0/0/5]port default vlan 11
[Huawei-GigabitEthernet0/0/5]
Apr 5 2025 23:08:02-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 44, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei-GigabitEthernet0/0/5]q
[Huawei]in
[Huawei]info-center
[Huawei]interface v
[Huawei]interface Vlanif 11
[Huawei-Vlanif11]
Apr 5 2025 23:08:21-08:00 Huawei %%01IFNET/4/IF_STATE(l)[1]:Interface Vlanif11
has turned into UP state.
[Huawei-Vlanif11]ip ad
[Huawei-Vlanif11]ip address 10.0.11.1 30
[Huawei-Vlanif11]
Apr 5 2025 23:08:44-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[2]:The line protocol
IP on the interface Vlanif11 has entered the UP state.
[Huawei-Vlanif11]
Apr 5 2025 23:08:52-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 45, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei-Vlanif11]q
[Huawei]ospf 1
[Huawei-ospf-1]ar
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]
Apr 5 2025 23:13:42-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 47, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei-ospf-1-area-0.0.0.0]ne
[Huawei-ospf-1-area-0.0.0.0]network 10.0.2.1 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]network 10.0.2.1 0.0
Apr 5 2025 23:14:32-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 48, t
he change loop count is 0, and the maximum number of records is 4
[Huawei-ospf-1-area-0.0.0.0]network 10.0.3.1 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]
Apr 5 2025 23:14:52-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 49, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei-ospf-1-area-0.0.0.0]network 10.0.11.1 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]network 10.0.11.1 0.0.0.0
Apr 5 2025 23:15:12-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 50, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei-ospf-1-area-0.0.0.0]network 10.0.20.1 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]network 10.0.30.1 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]
Apr 5 2025 23:15:32-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 52, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei-ospf-1-area-0.0.0.0]q
[Huawei-ospf-1]silent-interface v
[Huawei-ospf-1]silent-interface Vlanif 2
[Huawei-ospf-1]silent-interface Vlanif 20
[Huawei-ospf-1]
Apr 5 2025 23:23:43-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 48, t
he change loop count is 0, and the maximum number of records is 4095.silent-inte
rface Vlanif 3
[Huawei-ospf-1]silent-interface Vlanif 30
[Huawei-ospf-1]
lsw2相关配置:
[Huawei]interface Eth-Trunk 0
[Huawei-Eth-Trunk0]trunkport g 0/0/1 to 0/0/2
[Huawei]vlan batch 2 3 20 30
[Huawei]interface Eth-Trunk 0
[Huawei-Eth-Trunk0]po li t
[Huawei-Eth-Trunk0]po t all v 2 3 20 30
[Huawei]int g 0/0/3
[Huawei-GigabitEthernet0/0/3]po li t
[Huawei-GigabitEthernet0/0/3]po t all v 2 3 20 30
[Huawei]stp instance 1 root secondary
[Huawei]stp instance 2 root primary
[Huawei]interface Vlanif 2
[Huawei-Vlanif2]
Apr 5 2025 22:30:09-08:00 Huawei %%01IFNET/4/IF_STATE(l)[0]:Interface Vlanif2 h
as turned into UP state.
[Huawei-Vlanif2]ip ad
[Huawei-Vlanif2]ip address 10.0.2.2 24
[Huawei-Vlanif2]
Apr 5 2025 22:30:29-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
IP on the interface Vlanif2 has entered the UP state.
[Huawei-Vlanif2]
Apr 5 2025 22:30:31-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 13, t
he change loop count is 0, and the maximum number of records is 4095.v
[Huawei-Vlanif2]vrrp v
[Huawei-Vlanif2]vrrp vrid 1 v
[Huawei-Vlanif2]vrrp vrid 1 virtual-ip 10.0.2.254
[Huawei]interface Vlanif 3
[Huawei-Vlanif3]
Apr 5 2025 22:32:11-08:00 Huawei %%01IFNET/4/IF_STATE(l)[2]:Interface Vlanif3 h
as turned into UP state.
[Huawei-Vlanif3]ip ad
[Huawei-Vlanif3]ip address 10.0.3.2 24
[Huawei-Vlanif3]
Apr 5 2025 22:32:47-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[3]:The line protocol
IP on the interface Vlanif3 has entered the UP state.
[Huawei-Vlanif3]v
[Huawei-Vlanif3]vrrp v
[Huawei-Vlanif3]vrrp vrid
Apr 5 2025 22:32:52-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 15, t
he change loop count is 0, and the maximum number of records is 4095.1
[Huawei-Vlanif3]vrrp vrid 1 v
[Huawei-Vlanif3]vrrp vrid 1 virtual-ip 10.0.3.254
[Huawei]interface Vlanif 20
[Huawei-Vlanif20]
Apr 5 2025 22:33:37-08:00 Huawei %%01IFNET/4/IF_STATE(l)[4]:Interface Vlanif20
has turned into UP state.
[Huawei-Vlanif20]ip ad
[Huawei-Vlanif20]ip address 10.0.20.2 24
[Huawei-Vlanif20]
Apr 5 2025 22:33:49-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[5]:The line protocol
IP on the interface Vlanif20 has entered the UP state.vv
Apr 5 2025 22:33:52-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 17, t
he change loop count is 0, and the maximum number of records is 409
[Huawei-Vlanif20]v
[Huawei-Vlanif20]vrrp v
[Huawei-Vlanif20]vrrp vrid 1 v
[Huawei-Vlanif20]vrrp vrid 1 virtual-ip 10.0.20.254
[Huawei-Vlanif20]
Apr 5 2025 22:34:32-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 18, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei-Vlanif20]v
[Huawei-Vlanif20]vrrp v
[Huawei-Vlanif20]vrrp vrid 1 p
[Huawei-Vlanif20]vrrp vrid 1 pr
vrrp vrid 1 priority 120
vrrp vrid 1 preempt-mode timer delay 20
vrrp vrid 1 track interface GigabitEthernet 0/0/5 reduced 30
ip pool vlan2
gateway-list 10.0.2.254
network 10.0.2.0 mask 255.255.255.0
dns-list 8.8.8.8
[Huawei]vlan 12
[Huawei-vlan12]q
[Huawei]int g 0/0/
Apr 5 2025 23:10:02-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 36, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei]int g 0/0/5
[Huawei-GigabitEthernet0/0/5]po li a
[Huawei-GigabitEthernet0/0/5]po de
Apr 5 2025 23:10:22-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 37, t
he change loop count is 0, and the maximum number of records is 4095. v 12
[Huawei-GigabitEthernet0/0/5]q
[Huawei]
Apr 5 2025 23:10:32-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 38, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei]int
[Huawei]interface v
[Huawei]interface Vlanif 12
[Huawei-Vlanif12]
Apr 5 2025 23:10:44-08:00 Huawei %%01IFNET/4/IF_STATE(l)[11]:Interface Vlanif12
has turned into UP state.
[Huawei-Vlanif12]ip ad
[Huawei-Vlanif12]ip address 10.0.12.1 30
[Huawei-Vlanif12]
Apr 5 2025 23:10:56-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[12]:The line protoco
l IP on the interface Vlanif12 has entered the UP state.
[Huawei-Vlanif12]q
[Huawei-ospf-1]silent-interface v
[Huawei-ospf-1]silent-interface Vlanif 2
[Huawei-ospf-1]silent-interface Vlanif 20
[Huawei-ospf-1]
Apr 5 2025 23:23:43-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 48, t
he change loop count is 0, and the maximum number of records is 4095.silent-inte
rface Vlanif 3
[Huawei-ospf-1]silent-interface Vlanif 30
[Huawei-ospf-1]
ar1相关配置:
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip ad
[Huawei-GigabitEthernet0/0/1]ip address 10.0.11.2 30
Apr 5 2025 23:12:07-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei-GigabitEthernet0/0/1]int g 0/0/2
[Huawei-GigabitEthernet0/0/2]ip ad
[Huawei-GigabitEthernet0/0/2]ip address 10.0.12.2 30
Apr 5 2025 23:12:27-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
IP on the interface GigabitEthernet0/0/2 has entered the UP state.
[Huawei-GigabitEthernet0/0/2]q
ospf 1
area 0.0.0.0
network 10.0.11.2 0.0.0.0
network 10.0.12.2 0.0.0.0
[Huawei]interface g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad
[Huawei-GigabitEthernet0/0/0]ip address 202.1.1.1 30、
[Huawei]ip route-static 0.0.0.0 0 202.1.1.2
[Huawei]interface g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad
[Huawei-GigabitEthernet0/0/0]ip address 202.1.1.1 30
Apr 5 2025 23:34:32-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]q
[Huawei]ip r
[Huawei]ip rd-filter
[Huawei]ip relay
[Huawei]ip route-
[Huawei]ip route-static 0.0.0.0 0 202.1.1.2
[Huawei]ospf 1
[Huawei-ospf-1]de
[Huawei-ospf-1]default-
[Huawei-ospf-1]default-route-advertise
[Huawei-ospf-1]q
[Huawei]acl 2000
[Huawei-acl-basic-2000]r
[Huawei-acl-basic-2000]reset
[Huawei-acl-basic-2000]return
[Huawei-acl-basic-2000]rule p
[Huawei-acl-basic-2000]rule permit s
[Huawei-acl-basic-2000]rule permit source 10.0.0.0 0.0.255.255
[Huawei-acl-basic-2000]q
[Huawei]int
[Huawei]interface g 0/0/0
[Huawei-GigabitEthernet0/0/0]ne
[Huawei-GigabitEthernet0/0/0]net
^
Error: Unrecognized command found at '^' position.
[Huawei-GigabitEthernet0/0/0]net
[Huawei-GigabitEthernet0/0/0]nat
[Huawei-GigabitEthernet0/0/0]nat o
[Huawei-GigabitEthernet0/0/0]nat outbound 2000
[Huawei-GigabitEthernet0/0/0]
lsp相关配置:
[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad
[Huawei-GigabitEthernet0/0/0]ip address 202.1.1.2 30
Apr 5 2025 23:35:19-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]in
[Huawei-GigabitEthernet0/0/0]q
[Huawei]int
[Huawei]interface lo
[Huawei]interface LoopBack 0
[Huawei-LoopBack0]ip ad
[Huawei-LoopBack0]ip address 100.100.100.100 32
[Huawei-LoopBack0]q
[Huawei]