实验拓扑
注:代码块为各交换机路由器中的配置命令
配置拓扑文件
实验要求
实现全网通
实验配置
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 a
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 ad
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.254
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 120
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 rip
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-2
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 isis
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.255
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.255
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-configuration
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-configuration