考试需求
需求1)在SW3/SW4/SW5/SW6划入到相应的vlan中(5point)
需求2)为确保网络安全性,禁止从LSW3/LSW4/LSW5/LSW6交换机收到BPDU,
一旦收到端口立即自动关闭(5point)
需求3)为确保网络快速收敛,确保PC1/PC2/PC3/PC4
PC5的电脑直接立即转发,无需经过Listening-learning等状态(5point)
需求4)SW1/SW2/SW3/SW4/SW5/SW6运行MSTP协议,确保SW1为vlan10/vlan20的根
vlan30、vlan40的备份根,SW2与SW1相反,并且配置实例1=vlan10,实例2=vlan20
,实例3=vlan30,实例4=vlan40(30-point)
需求5)SW1/SW2运行VRRP协议,确保SW1为vlan10/vlan20的master设备,vlan30/
VLAN 40的backup设备,SW2与SW1相反(25point)
需求6)运SW1/SW2/SW7/SW8/AR1运行OSPF,并且划入到区域0(30point)
需求7)在PC1/PC2上进行路径跟踪,在PC3/PC4/PC5进行路径跟踪
实验配置:
Sw3:
<Huawei>sys
[Huawei]sys LSW3
[LSW3]un in en
[LSW3]vlan ba 10 20 30 40
[LSW3]stp bpdu-protection
[LSW3]stp re
[LSW3-mst-region]in 1 vlan 10
[LSW3-mst-region]in 2 vlan 20
[LSW3-mst-region]in 3 vlan 30
[LSW3-mst-region]in 4 vlan 40
[LSW3-mst-region]re huawei
[LSW3-mst-region]ac re
[LSW3-mst-region]qu
[LSW3]inte e0/0/3
[LSW3-Ethernet0/0/3]po link ac
[LSW3-Ethernet0/0/3]po de vlan 10
[LSW3-Ethernet0/0/3]s e e
[LSW3-Ethernet0/0/3]inte e0/0/1
[LSW3-Ethernet0/0/1]po link tr
[LSW3-Ethernet0/0/1]po tr al vlan 10
[LSW3-Ethernet0/0/1]inte e0/0/2
[LSW3-Ethernet0/0/2]po link tr
[LSW3-Ethernet0/0/2]po tr al vlan 10
[LSW3-Ethernet0/0/2]
Sw4:
<Huawei>sys
[Huawei]sys LSW4
[LSW4]un in en
[LSW4]vlan ba 10 20 30 40
[LSW4]stp bpdu-protection
[LSW4]stp re
[LSW4-mst-region]in 1 vlan 10
[LSW4-mst-region]in 2 vlan 20
[LSW4-mst-region]in 3 vlan 30
[LSW4-mst-region]in 4 vlan 40
[LSW4-mst-region]re huawei
[LSW4-mst-region]ac re
[LSW4-mst-region]qu
[LSW4]inte e0/0/3
[LSW4-Ethernet0/0/3]po link ac
[LSW4-Ethernet0/0/3]po de vlan 20
[LSW4-Ethernet0/0/3]s e e
[LSW4-Ethernet0/0/3]inte e0/0/1
[LSW4-Ethernet0/0/1]po link tr
[LSW4-Ethernet0/0/1]po tr al vlan 20
[LSW4-Ethernet0/0/1]inte e0/0/2
[LSW4-Ethernet0/0/2]po link tr
[LSW4-Ethernet0/0/2]po tr al vlan 20
[LSW4-Ethernet0/0/2]
Sw5:
<Huawei>sys
[Huawei]sys LSW5
[LSW5]un in en
[LSW5]vlan ba 10 20 30 40
[LSW5]stp bpdu-protection
[LSW5]stp re
[LSW5-mst-region]in 1 vlan 10
[LSW5-mst-region]in 2 vlan 20
[LSW5-mst-region]in 3 vlan 30
[LSW5-mst-region]in 4 vlan 40
[LSW5-mst-region]re huawei
[LSW5-mst-region]ac re
[LSW5-mst-region]qu
[LSW5]inte e0/0/3
[LSW5-Ethernet0/0/3]po link ac
[LSW5-Ethernet0/0/3]po de vlan 30
[LSW5-Ethernet0/0/3]s e e
[LSW5-Ethernet0/0/3]inte e0/0/1
[LSW5-Ethernet0/0/1]po link tr
[LSW5-Ethernet0/0/1]po tr al vlan 30
[LSW5-Ethernet0/0/1]inte e0/0/2
[LSW5-Ethernet0/0/2]po link tr
[LSW5-Ethernet0/0/2]po tr al vlan 30
[LSW5-Ethernet0/0/2]
Sw6:
<Huawei>sys
[Huawei]sys LSW6
[LSW6]un in en
[LSW6]vlan ba 10 20 30 40
[LSW6]stp bpdu-protection
[LSW6]stp re
[LSW6-mst-region]in 1 vlan 10
[LSW6-mst-region]in 2 vlan 20
[LSW6-mst-region]in 3 vlan 30
[LSW6-mst-region]in 4 vlan 40
[LSW6-mst-region]re huawei
[LSW6-mst-region]ac re
[LSW6-mst-region]qu
[LSW6]inte e0/0/3
[LSW6-Ethernet0/0/3]po link ac
[LSW6-Ethernet0/0/3]po de vlan 40
[LSW6-Ethernet0/0/3]s e e
[LSW6-Ethernet0/0/3]inte e0/0/4
[LSW6-Ethernet0/0/4]po link ac
[LSW6-Ethernet0/0/4]po de vlan 10
[LSW6-Ethernet0/0/4]s e e
[LSW6-Ethernet0/0/4]inte e0/0/1
[LSW6-Ethernet0/0/1]po link tr
[LSW6-Ethernet0/0/1]po tr al vlan 10 40
[LSW6-Ethernet0/0/1]inte e0/0/2
[LSW6-Ethernet0/0/2]po link tr
[LSW6-Ethernet0/0/2]po tr al vlan 10 40
[LSW6-Ethernet0/0/2]
Sw1:
[Huawei]sys LSW1
[LSW1]un in en
[LSW1]vlan ba 10 20 30 40 50 78
[LSW1]stp bpdu-protection
[LSW1]stp re
[LSW1-mst-region]in 1 vlan 10
[LSW1-mst-region]in 2 vlan 20
[LSW1-mst-region]in 3 vlan 30
[LSW1-mst-region]in 4 vlan 40
[LSW1-mst-region]re huawei
[LSW1-mst-region]ac re
[LSW1-mst-region]qu
[LSW1]stp in 0 ro pr
[LSW1]stp in 1 ro pr
[LSW1]stp in 2 ro pr
[LSW1]stp in 3 ro se
[LSW1]stp in 4 ro se
[LSW1]inte g0/0/1
[LSW1-GigabitEthernet0/0/1]po link tr
[LSW1-GigabitEthernet0/0/1]po tr al vlan 10
[LSW1-GigabitEthernet0/0/1]inte g0/0/2
[LSW1-GigabitEthernet0/0/2]po link tr
[LSW1-GigabitEthernet0/0/2]po tr al vlan 20
[LSW1-GigabitEthernet0/0/2]inte g0/0/3
[LSW1-GigabitEthernet0/0/3]po link tr
[LSW1-GigabitEthernet0/0/3]po tr al vlan 30
[LSW1-GigabitEthernet0/0/3]inte g0/0/4
[LSW1-GigabitEthernet0/0/4]po link tr
[LSW1-GigabitEthernet0/0/4]po tr al vlan 10 40
[LSW1-GigabitEthernet0/0/4]inte g0/0/5
[LSW1-GigabitEthernet0/0/5]po link ac
[LSW1-GigabitEthernet0/0/5]po de vlan 78
[LSW1-GigabitEthernet0/0/5]inte eth 1
[LSW1-Eth-Trunk1]trunkport g0/0/9
[LSW1-Eth-Trunk1]trunkport g0/0/10
[LSW1-Eth-Trunk1]po link tr
[LSW1-Eth-Trunk1]po tr al vlan 10 20 30 40 50
[LSW1-Eth-Trunk1]q
[LSW1]inte vlan 10
[LSW1-Vlanif10]ip ad 192.168.10.252 24
[LSW1-Vlanif10]vrrp vr 10 vi 192.168.10.254
[LSW1-Vlanif10]vrrp vr 10 pr 120
[LSW1-Vlanif10]inte vlan 20
[LSW1-Vlanif20]ip ad 192.168.20.252 24
[LSW1-Vlanif20]vrrp vr 20 vi 192.168.20.254
[LSW1-Vlanif20]vrrp vr 20 pr 120
[LSW1-Vlanif20]inte vlan 30
[LSW1-Vlanif30]ip ad 192.168.30.252 24
[LSW1-Vlanif30]vrrp vr 30 vi 192.168.30.254
[LSW1-Vlanif30]
[LSW1-Vlanif30]inte vlan 40
[LSW1-Vlanif40]ip ad 192.168.40.252 24
[LSW1-Vlanif40]vrrp vr 40 vi 192.168.40.254
[LSW1-Vlanif40]
[LSW1-Vlanif40]inte vlan 50
[LSW1-Vlanif50]ip ad 192.168.98.1 24
[LSW1-Vlanif50]inte vlan 78
[LSW1-Vlanif78]ip ad 192.168.78.1 24
[LSW1-Vlanif78]ospf
[LSW1-ospf-1]ar 0
[LSW1-ospf-1-area-0.0.0.0]net 192.168.10.0 0.0.0.255
[LSW1-ospf-1-area-0.0.0.0]net 192.168.20.0 0.0.0.255
[LSW1-ospf-1-area-0.0.0.0]net 192.168.30.0 0.0.0.255
[LSW1-ospf-1-area-0.0.0.0]net 192.168.40.0 0.0.0.255
[LSW1-ospf-1-area-0.0.0.0]net 192.168.98.0 0.0.0.255
[LSW1-ospf-1-area-0.0.0.0]net 192.168.78.0 0.0.0.255
[LSW1-ospf-1-area-0.0.0.0]q
Sw2
<Huawei>sys
[Huawei]sys LSW2
[LSW2]un in en
[LSW2]vlan ba 10 20 30 40 50 88
[LSW2]stp bpdu-protection
[LSW2]stp re
[LSW2-mst-region]in 1 vlan 10
[LSW2-mst-region]in 2 vlan 20
[LSW2-mst-region]in 3 vlan 30
[LSW2-mst-region]in 4 vlan 40
[LSW2-mst-region]re huawei
[LSW2-mst-region]ac re
[LSW2-mst-region]qu
[LSW2]stp in 0 ro se
[LSW2]stp in 1 ro se
[LSW2]stp in 2 ro se
[LSW2]stp in 3 ro pr
[LSW2]stp in 4 ro pr
[LSW2]inte g0/0/1
[LSW2-GigabitEthernet0/0/1]po link tr
[LSW2-GigabitEthernet0/0/1]po tr al vlan 10
[LSW2-GigabitEthernet0/0/1]inte g0/0/2
[LSW2-GigabitEthernet0/0/2]po link tr
[LSW2-GigabitEthernet0/0/2]po tr al vlan 20
[LSW2-GigabitEthernet0/0/2]inte g0/0/3
[LSW2-GigabitEthernet0/0/3]po link tr
[LSW2-GigabitEthernet0/0/3]po tr al vlan 30
[LSW2-GigabitEthernet0/0/3]inte g0/0/4
[LSW2-GigabitEthernet0/0/4]po link tr
[LSW2-GigabitEthernet0/0/4]po tr al vlan 10 40
[LSW2-GigabitEthernet0/0/4]inte g0/0/5
[LSW2-GigabitEthernet0/0/5]po link ac
[LSW2-GigabitEthernet0/0/5]po de vlan 88
[LSW2-GigabitEthernet0/0/5]inte eth 1
[LSW2-Eth-Trunk1]trunkport g0/0/9
[LSW2-Eth-Trunk1]trunkport g0/0/10
[LSW2-Eth-Trunk1]po link tr
[LSW2-Eth-Trunk1]po tr al vlan 10 20 30 40 50
[LSW2-Eth-Trunk1]q
[LSW2]inte vlan 10
[LSW2-Vlanif10]ip ad 192.168.10.253 24
[LSW2-Vlanif10]vrrp vr 10 vi 192.168.10.254
[LSW2-Vlanif10]inte vlan 20
[LSW2-Vlanif20]ip ad 192.168.20.253 24
[LSW2-Vlanif20]vrrp vr 20 vi 192.168.20.254
[LSW2-Vlanif20]inte vlan 30
[LSW2-Vlanif30]ip ad 192.168.30.253 24
[LSW2-Vlanif30]vrrp vr 30 vi 192.168.30.254
[LSW2-Vlanif30]vrrp vr 30 pr 120
[LSW2-Vlanif30]inte vlan 40
[LSW2-Vlanif40]ip ad 192.168.40.253 24
[LSW2-Vlanif40]vrrp vr 40 vi 192.168.40.254
[LSW2-Vlanif40]vrrp vr 40 pr 120
[LSW2-Vlanif40]inte vlan 50
[LSW2-Vlanif50]ip ad 192.168.98.2 24
[LSW2-Vlanif50]inte vlan 88
[LSW2-Vlanif88]ip ad 192.168.88.2 24
[LSW2-Vlanif88]ospf
[LSW2-ospf-1]ar 0
[LSW2-ospf-1-area-0.0.0.0]net 192.168.10.0 0.0.0.255
[LSW2-ospf-1-area-0.0.0.0]net 192.168.20.0 0.0.0.255
[LSW2-ospf-1-area-0.0.0.0]net 192.168.30.0 0.0.0.255
[LSW2-ospf-1-area-0.0.0.0]net 192.168.40.0 0.0.0.255
[LSW2-ospf-1-area-0.0.0.0]net 192.168.98.0 0.0.0.255
[LSW2-ospf-1-area-0.0.0.0]net 192.168.88.0 0.0.0.255
[LSW2-ospf-1-area-0.0.0.0]
Sw7:
<Huawei>sys
[Huawei]sys LSW7
[LSW7]un in en
[LSW7]vlan ba 78 68 48
[LSW7]inte g0/0/1
[LSW7-GigabitEthernet0/0/1]stp dis
[LSW7-GigabitEthernet0/0/1]inte g0/0/3
[LSW7-GigabitEthernet0/0/3]stp dis
[LSW7-GigabitEthernet0/0/3]inte g0/0/2
[LSW7-GigabitEthernet0/0/2]stp dis
[LSW7-GigabitEthernet0/0/2]
[LSW7]inte g0/0/3
[LSW7-GigabitEthernet0/0/3]po link ac
[LSW7-GigabitEthernet0/0/3]po de vlan 48
[LSW7-GigabitEthernet0/0/3]
[LSW7-GigabitEthernet0/0/3]inte g0/0/2
[LSW7-GigabitEthernet0/0/2]po link ac
[LSW7-GigabitEthernet0/0/2]po de vlan 78
[LSW7-GigabitEthernet0/0/2]
[LSW7-GigabitEthernet0/0/2]inte g0/0/1
[LSW7-GigabitEthernet0/0/1]po link ac
[LSW7-GigabitEthernet0/0/1]po de vlan 68
[LSW7-GigabitEthernet0/0/1]inte vlan 78
[LSW7-Vlanif78]ip ad 192.168.78.7 24
[LSW7-Vlanif78]inte vlan 68
[LSW7-Vlanif68]ip ad 192.168.68.7 24
[LSW7-Vlanif68]inte vlan 48
[LSW7-Vlanif48]ip ad 192.168.48.7 24
[LSW7-Vlanif48]
[LSW7-Vlanif48]ospf
[LSW7-ospf-1]ar 0
[LSW7-ospf-1-area-0.0.0.0]net 192.168.78.0 0.0.0.255
[LSW7-ospf-1-area-0.0.0.0]net 192.168.68.0 0.0.0.255
[LSW7-ospf-1-area-0.0.0.0]net 192.168.48.0 0.0.0.255
[LSW7-ospf-1-area-0.0.0.0]
Sw8:
<Huawei>sys
[Huawei]sys LSW8
[LSW8]un in en
Info: Information center is disabled.
[LSW8]vlan ba 88 68 58
[LSW8]
[LSW8-ospf-1]inte g0/0/1
[LSW8-GigabitEthernet0/0/1]stp dis
[LSW8-GigabitEthernet0/0/1]inte g0/0/2
[LSW8-GigabitEthernet0/0/2]stp dis
[LSW8-GigabitEthernet0/0/2]inte g0/0/3
[LSW8-GigabitEthernet0/0/3]stp dis
[LSW8]inte g0/0/3
[LSW8-GigabitEthernet0/0/3]po link ac
[LSW8-GigabitEthernet0/0/3]po de vlan 58
[LSW8-GigabitEthernet0/0/3]
[LSW8-GigabitEthernet0/0/3]inte g0/0/2
[LSW8-GigabitEthernet0/0/2]po link ac
[LSW8-GigabitEthernet0/0/2]po de vlan 88
[LSW8-GigabitEthernet0/0/2]
[LSW8-GigabitEthernet0/0/2]inte g0/0/1
[LSW8-GigabitEthernet0/0/1]po link ac
[LSW8-GigabitEthernet0/0/1]po de vlan 68
[LSW8-GigabitEthernet0/0/1]inte vlan 68
[LSW8-Vlanif68]ip ad 192.168.68.8 24
[LSW8-Vlanif68]inte vlan 58
[LSW8-Vlanif58]ip ad 192.168.58.8 24
[LSW8-Vlanif58]inte vlan 88
[LSW8-Vlanif88]ip ad 192.168.88.8 24
[LSW8-Vlanif88]
[LSW8-Vlanif88]ospf
[LSW8-ospf-1]ar 0
[LSW8-ospf-1-area-0.0.0.0]net 192.168.88.0 0.0.0.255
[LSW8-ospf-1-area-0.0.0.0]net 192.168.68.0 0.0.0.255
[LSW8-ospf-1-area-0.0.0.0]net 192.168.58.0 0.0.0.255
[LSW8-ospf-1-area-0.0.0.0]
AR1
[Huawei]
[Huawei]sys AR1
[AR1]
[AR1]un in en
[AR1]inte g0/0/0
[AR1-GigabitEthernet0/0/0]ip add 192.168.48.1 24
[AR1-GigabitEthernet0/0/0]inte g0/0/1
[AR1-GigabitEthernet0/0/1]ip ad 192.168.58.1 24
[AR1-GigabitEthernet0/0/1]inte loop0
[AR1-LoopBack0]ip ad 48.48.48.48 32
[AR1-LoopBack0]ospf
[AR1-ospf-1]ar 0
[AR1-ospf-1-area-0.0.0.0]net 192.168.48.0 0.0.0.255
[AR1-ospf-1-area-0.0.0.0]net 192.168.58.0 0.0.0.255
[AR1-ospf-1-area-0.0.0.0]net 48.48.48.48 0.0.0.0
测试如下:
stp测试
vrrp测试
ospf测试
跟踪测试,主要看路径