[Huawei]int Eth-Trunk 0
[Huawei-Eth-Trunk0]int gi0/0/3
[Huawei-GigabitEthernet0/0/3]eth-trunk 0
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-GigabitEthernet0/0/3]int g0/0/4
[Huawei-GigabitEthernet0/0/4]eth 0
[sw1]vlan 2
[sw1]int eth0
[sw1-Eth-Trunk0]p l t
[sw1-Eth-Trunk0]port trunk allow-pass vlan all
[sw1]int g0/0/5
[sw1-GigabitEthernet0/0/5]p l t
[sw1-GigabitEthernet0/0/5]port trunk allow-pass vlan all
[sw1-GigabitEthernet0/0/6]p l t
[sw1-GigabitEthernet0/0/6]p t a vlan all
[sw1]stp enable
[sw1]stp mode mstp
[sw1]stp region-configuration
[sw1-mst-region]region-name huawei
[sw1-mst-region]instance 1 vlan 1
[sw1-mst-region]instance 2 vlan 2
[sw1-mst-region]active region-configuration
[sw1]display stp br
MSTID Port Role STP State Protection
0 GigabitEthernet0/0/1 DESI FORWARDING NONE
0 GigabitEthernet0/0/5 DESI FORWARDING NONE
0 GigabitEthernet0/0/6 ROOT FORWARDING NONE
0 Eth-Trunk0 ALTE DISCARDING NONE
1 GigabitEthernet0/0/1 DESI FORWARDING NONE
1 GigabitEthernet0/0/5 DESI FORWARDING NONE
1 GigabitEthernet0/0/6 ROOT FORWARDING NONE
1 Eth-Trunk0 ALTE DISCARDING NONE
2 GigabitEthernet0/0/5 DESI FORWARDING NONE
2 GigabitEthernet0/0/6 ROOT FORWARDING NONE
2 Eth-Trunk0 DESI FORWARDING NONE
[sw1]stp instance 1 root primary
[sw1]stp instance 2 root secondary
[sw1]display stp br
MSTID Port Role STP State Protection
0 GigabitEthernet0/0/1 DESI FORWARDING NONE
0 GigabitEthernet0/0/5 DESI FORWARDING NONE
0 GigabitEthernet0/0/6 ROOT FORWARDING NONE
0 Eth-Trunk0 ALTE DISCARDING NONE
1 GigabitEthernet0/0/1 DESI FORWARDING NONE
1 GigabitEthernet0/0/5 DESI FORWARDING NONE
1 GigabitEthernet0/0/6 DESI FORWARDING NONE
1 Eth-Trunk0 DESI FORWARDING NONE
2 GigabitEthernet0/0/5 DESI FORWARDING NONE
2 GigabitEthernet0/0/6 DESI FORWARDING NONE
2 Eth-Trunk0 ROOT FORWARDING NONE
[sw1]int vlan 1
[sw1-Vlanif1]ip add 172.16.1.254 24
[sw1-Vlanif2]ip add 172.16.2.254 24
[sw1-Vlanif2]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 1
Interface IP Address/Mask Physical Protocol
MEth0/0/1 unassigned down down
NULL0 unassigned up up(s)
Vlanif1 172.16.1.254/24 up up
Vlanif2 172.16.2.254/24 up up
[sw1-Vlanif2]display vlan summary
static vlan:
Total 2 static vlan.
1 to 2
dynamic vlan:
Total 0 dynamic vlan.
reserved vlan:
Total 0 reserved vlan.
[sw1]ping 172.16.2.253
PING 172.16.2.253: 56 data bytes, press CTRL_C to break
Reply from 172.16.2.253: bytes=56 Sequence=1 ttl=255 time=60 ms
Reply from 172.16.2.253: bytes=56 Sequence=2 ttl=255 time=40 ms
Reply from 172.16.2.253: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 172.16.2.253: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 172.16.2.253: bytes=56 Sequence=5 ttl=255 time=50 ms
--- 172.16.2.253 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/38/60 ms
[sw1]int vlan 1
[sw1-Vlanif1]vrrp vrid 1 virtual-ip 172.16.1.100
[sw1-Vlanif1]vrrp vrid 1 priority 101
[sw1-Vlanif1]vrrp vrid 1 track int g0/0/1 reduced 10
[sw1]int vlan 2
[sw1-Vlanif2]vrrp vrid 1 virtual-ip 172.16.2.100
[sw1]dhcp enable
[sw1]ip pool v1
Info:It's successful to create an IP address pool.
[sw1-ip-pool-v1]network 172.16.1.0 mask 24
[sw1-ip-pool-v1]gateway-list 172.16.1.100
[sw1-ip-pool-v1]dns-list 114.114.114.114
[sw1-ip-pool-v1]ip pool v2
[sw1-ip-pool-v2]network 172.16
Jan 19 2021 12:55:12-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 29, the
change loop count is 0, and the maximum number of records is 4095..2.0 mask 24
Jan 19 2021 12:55:16-08:00 sw1 %%01PHY/1/PHY(l)[25]: GigabitEthernet0/0/5: ch
ange status to down
[sw1-ip-pool-v2]
Jan 19 2021 12:55:17-08:00 sw1 %%01PHY/1/PHY(l)[26]: GigabitEthernet0/0/5: ch
ange status to up
[sw1-ip-pool-v2]
[sw1-ip-pool-v2]
Jan 19 2021 12:55:22-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 30, the
change loop count is 0, and the maximum number of records is 4095.
[sw1-ip-pool-v2]ga
[sw1-ip-pool-v2]gateway-list 172.16.2.100
[sw1-ip-pool-v2]dn
[sw1-ip-pool-v2]dns-list 114.114.114.114
[sw1-ip-pool-v2]int vlan 1
[sw1-Vlanif1]dhcp select global
[sw1-Vlanif1]int
Jan 19 2021 12:57:12-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 34, the
change loop count is 0, and the maximum number of records is 4095.vlan 2
[sw1-Vlanif2]dhcp select global
[sw1]dis vlan
The total number of vlans is : 2
----------------------------------------------------------------------------
HCIP------三层架构
于 2021-01-19 17:10:12 首次发布