实验拓扑
注:代码块为各交换机路由器中的配置命令
配置拓扑文件
实验要求
实现全网通
实验配置
SW3
[SW3]v b 10 20 [SW3]int e0/0/1 [SW3-Ethernet0/0/1]po link-t a
[SW3-Ethernet0/0/1]po de v 10 [SW3-Ethernet0/0/1]int e0/0/2
[SW3-Ethernet0/0/2]po link-t a [SW3-Ethernet0/0/2]po de v 20
[SW3-Ethernet0/0/2]int e0/0/3 [SW3-Ethernet0/0/3]po link-t t
[SW3-Ethernet0/0/3]po t a v a [SW3-Ethernet0/0/3]int e0/0/4
[SW3-Ethernet0/0/4]po link-t t [SW3-Ethernet0/0/4]po t a v
a1.2.3.4.5.6.7.8.9.10.11.12.13.
SW1
[SW1]v b 10 20 [SW1]int g0/0/1 [SW1-GigabitEthernet0/0/1]po link-t t
[SW1-GigabitEthernet0/0/1]po t a v a [SW1-GigabitEthernet0/0/1]int g0/0/2 [SW1-GigabitEthernet0/0/2]po link-t t
[SW1-GigabitEthernet0/0/2]po link-t a [SW1-GigabitEthernet0/0/2]q
[SW1]v b 30 [SW1]int g0/0/2 [SW1-GigabitEthernet0/0/2]po link-t a
[SW1-GigabitEthernet0/0/2]po de v 30 [SW1-GigabitEthernet0/0/2]int v 10 [SW1-Vlanif10]ip a 192.168.1.10 24 [SW1-Vlanif10]int v 20 [SW1-Vlanif20]ip ad
192.168.2.10 24 [SW1-Vlanif20]int v 30 [SW1-Vlanif30]ip ad 11.1.1.1 24 [SW1-Vlanif30]rip [SW1-rip-1]v 2 [SW1-rip-1]net 192.168.1.0
[SW1-rip-1]net 192.168.2.0 [SW1-rip-1]net 11.0.0.0 [SW1]int v 10
[SW1-Vlanif10]vrrp vrid 1 virtual-ip 192.168.1.254 [SW1-Vlanif10]vrrp vrid 1 priority 120 [SW1-Vlanif10]int v 20 [SW1-Vlanif20]vrrp vrid 2 virtual-ip 192.168.2.2541.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.
SW2
[SW2]v b 10 20 40 [SW2]int g0/0/1 [SW2-GigabitEthernet0/0/1]po link-t
t [SW2-GigabitEthernet0/0/1]po t a v a [SW2-GigabitEthernet0/0/1]int
g0/0/2 [SW2-GigabitEthernet0/0/2]po link-t a
[SW2-GigabitEthernet0/0/2]po de v 40 [SW2-GigabitEthernet0/0/2]int v
10 [SW2-Vlanif10]ip ad
192.168.1.20 24 [SW2-Vlanif10]int v 20 [SW2-Vlanif20]ip ad
192.168.2.20 24 [SW2-Vlanif20]int v 40 [SW2-Vlanif40]ip ad 22.1.1.1 24 [SW2-Vlanif40]rip [SW2-rip-1]v 2 [SW2-rip-1]net 192.168.1.0
[SW2-rip-1]net 192.168.2.0 [SW2-rip-1]net 22.0.0.0 [SW2-rip-1]int v 10
[SW2-Vlanif10]vrrp vrid 1 virtual-ip 192.168.1.254 [SW2-Vlanif10]int v
20 [SW2-Vlanif20]vrrp vrid 2 virtual-ip 192.168.2.254
[SW2-Vlanif20]vrrp vrid 2 priority
1201.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.
R1
[R1]int g0/0/0 [R1-GigabitEthernet0/0/0]ip ad
11.1.1.2 24 [R1-GigabitEthernet0/0/0]int g0/0/1 [R1-GigabitEthernet0/0/1]ip ad
22.1.1.2 24 [R1-GigabitEthernet0/0/1]int g0/0/2 [R1-GigabitEthernet0/0/2]ip ad
12.1.1.1 24 [R1-GigabitEthernet0/0/2]rip [R1-rip-1]v 2 [R1-rip-1]net 11.0.0.0 [R1-rip-1]net 22.0.0.0 [R1-rip-1]net 12.0.0.0 [R2-rip-1]int g0/0/0 [R2-rip-1]import-route isis [R2-rip-1]isis
[R2-isis-1]import-route
rip1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.
R3
[R3]isi [R3-isis-1]network-entity
49.0001.0000.0003.00 [R3-isis-1]int g0/0/0 [R3-GigabitEthernet0/0/0]ip ad
23.1.1.2 24 [R3-GigabitEthernet0/0/0]isi en [R3-GigabitEthernet0/0/0]int g0/0/1 [R3-GigabitEthernet0/0/1]isi en
[R3-GigabitEthernet0/0/1]ip ad
34.1.1.1 24 [R3-GigabitEthernet0/0/1]isi en [R3-GigabitEthernet0/0/1]isi [R3-isis-1]is-level
level-21.2.3.4.5.6.7.8.9.10.11.12.13.14.15.
R4
[R5]sy R4 [R4]isis [R4-isis-1]network-entity
49.0001.0000.0004.00 [R4-isis-1]int g0/0/0 [R4-GigabitEthernet0/0/0]ip ad
34.1.1.2 24 [R4-GigabitEthernet0/0/0]isis en [R4-GigabitEthernet0/0/0]isis [R4-isis-1]is-level level-2
[R4]int g0/0/1 [R4-GigabitEthernet0/0/1]ip ad
44.1.1.2 24 [R4-GigabitEthernet0/0/1]int g0/0/2 [R4-GigabitEthernet0/0/2]ip ad
45.1.1.2 24 [R4-GigabitEthernet0/0/2]int g0/0/0 [R4-isis-1]ospf 1 [R4-ospf-1]a 0 [R4-ospf-1-area-0.0.0.0]net
44.1.1.0 0.0.0.255 [R4-ospf-1-area-0.0.0.0]net
45.1.1.0 0.0.0.255 [R4-ospf-1-area-0.0.0.0]q [R4-ospf-1]import-route isis1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.
SW4
[SW4]v b 50 60 44 [SW4]int g0/0/1 [SW4-GigabitEthernet0/0/1]po link-t
t [SW4-GigabitEthernet0/0/1]po t a v a [SW4-GigabitEthernet0/0/1]int
g0/0/2 [SW4-GigabitEthernet0/0/2]po link-t t
[SW4-GigabitEthernet0/0/2]po t a v a [SW4-GigabitEthernet0/0/2]int
g0/0/3 [SW4-GigabitEthernet0/0/3]po link-t t
[SW4-GigabitEthernet0/0/3]po t a v a [SW4-GigabitEthernet0/0/3]int
g0/0/4 [SW4-GigabitEthernet0/0/4]po link-t a
[SW4-GigabitEthernet0/0/4]po de v 44 [SW4-GigabitEthernet0/0/4]q
[SW4]stp region-configuration [SW4-mst-region]region-name huawei
[SW4-mst-region]instance 1 vlan 50 [SW4-mst-region]instance 2 vlan 60
[SW4-mst-region]active region-configuration [SW4-mst-region]stp in
[SW4-mst-region]q [SW4]stp instance 1 root primary [SW4]stp instance
2 root secondary [SW4]int v 44 [SW4-Vlanif44]ip ad 44.1.1.1 24
[SW4-Vlanif44]q [SW4]ospf 1 [SW4-ospf-1]a 0
[SW4-ospf-1-area-0.0.0.0]net
192.168.5.0 [SW4-ospf-1-area-0.0.0.0]int v 50 [SW4-Vlanif50]ip ad 192.168.5.254 24 [SW4-Vlanif50]int v 60 [SW4-Vlanif60]ip ad 192.168.6.254 24 [SW4-ospf-1]ospf 1 [SW4-ospf-1]a 0 [SW4-ospf-1-area-0.0.0.0]net
192.168.5.0 0.0.0.255 [SW4-ospf-1-area-0.0.0.0]net
192.168.6.0 0.0.0.255 [SW4-ospf-1-area-0.0.0.0]net
44.1.1.0 0.0.0.2551.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.50.51.52.53.54.55.56.57.58.59.60.61.
SW5
[SW5]v b 45 50 60 [SW5]int g0/0/1 [SW5-GigabitEthernet0/0/1]po link-t
t [SW5-GigabitEthernet0/0/1]po t a v a [SW5-GigabitEthernet0/0/1]int
g0/0/2 [SW5-GigabitEthernet0/0/2]po link-t t
[SW5-GigabitEthernet0/0/2]po t a v a [SW5-GigabitEthernet0/0/2]int
g0/0/3 [SW5-GigabitEthernet0/0/3]po link-t t
[SW5-GigabitEthernet0/0/3]po t a v a [SW5-GigabitEthernet0/0/3]int
g0/0/4 [SW5-GigabitEthernet0/0/4]po link-t a
[SW5-GigabitEthernet0/0/4]po de v 45 [SW5-GigabitEthernet0/0/4]q
[SW5]stp region-configuration [SW5-mst-region]region-name huawei
[SW5-mst-region]instance 1 vlan 50 [SW5-mst-region]instance 2 vlan 60
[SW5-mst-region]active region-configuration [SW5-mst-region]q [SW5]stp
instance 2 root primary [SW5]stp instance 1 root secondary [SW5]int
v 45 [SW5-Vlanif45]ip ad 45.1.1.1 24 [SW5-Vlanif45] [SW5-Vlanif45]int
v50 [SW5-Vlanif50]ip ad
192.168.5.254 24 [SW5-Vlanif50]int v 60 [SW5-Vlanif60]ip ad
192.168.6.254 24 [SW5-Vlanif60]ospf 1 [SW5-ospf-1]a 0 [SW5-ospf-1-area-0.0.0.0]net
192.168.6.0 0.0.0.255 [SW5-ospf-1-area-0.0.0.0]net
192.168.5.0 0.0.0.255 [SW5-ospf-1-area-0.0.0.0]net
45.1.1.0 0.0.0.2551.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.50.51.52.53.54.55.56.
SW6
[SW6]v b 50 60 [SW6]int g0/0/1 [SW6-GigabitEthernet0/0/1]po link-t a
[SW6-GigabitEthernet0/0/1]po de v 50 [SW6-GigabitEthernet0/0/1]int
g0/0/3 [SW6-GigabitEthernet0/0/3]po link-t t
[SW6-GigabitEthernet0/0/3]po t a v a [SW6-GigabitEthernet0/0/3]int
g0/0/2 [SW6-GigabitEthernet0/0/2]po link-t t
[SW6-GigabitEthernet0/0/2]po t a v a [SW6-GigabitEthernet0/0/2]q
[SW6]stp region-configuration [SW6-mst-region]region-name huawei
[SW6-mst-region]in [SW6-mst-region]instance 1 vlan 50
[SW6-mst-region]instance 2 vlan 60 [SW6-mst-region]active
region-configuration1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.
SW7
[SW7]v b 50 60 [SW7]int g0/0/2 [SW7-GigabitEthernet0/0/2]po link-t a
[SW7-GigabitEthernet0/0/2]po de v 60 [SW7-GigabitEthernet0/0/2]int
g0/0/1 [SW7-GigabitEthernet0/0/1]po link-t t
[SW7-GigabitEthernet0/0/1]po t a v a [SW7-GigabitEthernet0/0/1]int
g0/0/3 [SW7-GigabitEthernet0/0/3]po link-t t
[SW7-GigabitEthernet0/0/3]po t a v a [SW7-GigabitEthernet0/0/3]q
[SW7]stp region-configuration [SW7-mst-region]region-name huawei
[SW7-mst-region]instance 1 vlan 50 [SW7-mst-region]instance 2 vlan 60
[SW7-mst-region]active
region-configuration1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.
运行验证