注意:PC配置IP地址时,需要配置对应网关。
[sw111]int b1
[sw111]int rang g1/0/1 g1/0/2
[sw111-if-range]p l g 1
[sw111]int b1
[sw111-Bridge-Aggregation1]p l t
[sw111-Bridge-Aggregation1]p t p v all
[sw222]int b1
[sw222]int rang g1/0/1 g1/0/2
[sw222-if-range]p l g 1
[sw222]int b1
[sw222-Bridge-Aggregation1]p l t
[sw222-Bridge-Aggregation1]p t p v all
检查
[sw111]dis link ver
[sw222]dis link ver
[sw111]vlan 10
[sw111-vlan10]port g1/0/3
[sw111-vlan10]vlan 20
[sw111-vlan20]port g1/0/4
[sw222]vlan 10
[sw222-vlan10]port g1/0/3
[sw222-vlan10]vlan 20
[sw222-vlan20]port g1/0/4
检查
[sw222]int g1/0/5
[sw222-GigabitEthernet1/0/5]p l t
[sw222-GigabitEthernet1/0/5]p t p v all
[R1]int g0/0.1
[R1-GigabitEthernet0/0.1]vlan-type dot1q vid 10
[R1]int g0/0.2
[R1-GigabitEthernet0/0.2]vlan-type dot1q vid 20
检查
[SW333]stp region-configuration
[SW333-mst-region] region-name h3c
[SW333-mst-region] instance 1 vlan 1
[SW333-mst-region] active region-configuration
[SW444]stp region-configuration
[SW444-mst-region] region-name h3c
[SW444-mst-region] instance 1 vlan 1
[SW444-mst-region] active region-configuration
[SW555]stp region-configuration
[SW555-mst-region] region-name h3c
[SW555-mst-region] instance 1 vlan 1
[SW555-mst-region] active region-configuration
[SW333]stp instance 1 root primary
[SW444]stp instance 1 root secondary
检查
[SW555]dis stp br
[R1]rip
[R1-rip-1]v 2
[R1-rip-1]net 192.168.1.0 0.0.0.255
[R1-rip-1]net 192.168.2.0 0.0.0.255
[R1-rip-1]net 192.168.4.0 0.0.0.255
[R1-rip-1]net 192.168.10.0 0.0.0.255
[R2]rip
[R2-rip-1]v 2
[R2-rip-1]net 192.168.10.0 0.0.0.255
[R2-rip-1]net 192.168.20.0 0.0.0.255
[R3]rip
[R3-rip-1]v 2
[R3-rip-1]net 192.168.3.0 0.0.0.255
[R3-rip-1]net 192.168.20.0 0.0.0.255
检查
[R1]dis ip rou pr rip
[R2]dis ip rou pr rip
[R3]dis ip rou pr rip
[R2]ospf
[R2-ospf-1]a 0
[R2-ospf-1-area-0.0.0.0]net 200.1.1.0 0.0.0.255
[R4]ospf
[R4-ospf-1]a 0
[R4-ospf-1-area-0.0.0.0]net 200.1.1.0 0.0.0.255
[R4-ospf-1-area-0.0.0.0]a 1
[R4-ospf-1-area-0.0.0.1]net 200.1.2.0 0.0.0.255
[R5]ospf
[R5-ospf-1]a 1
[R5-ospf-1-area-0.0.0.1]net 200.1.2.0 0.0.0.255
[R5-ospf-1-area-0.0.0.1]net 200.1.3.0 0.0.0.255
检查
[R2]dis ip rou pr ospf
2. 此时,在R4上查看 ospf 路由表发现,已学到R5的路由
[R4]dis ip rou pr ospf
3. 此时,在R5上查看 ospf 路由表发现,已学到R2的路由
[R5]dis ip rou pr ospf
[R2]ospf
[R2-ospf-1]import-route rip
[R2]rip
[R2-rip-1]import-route ospf
检查
[R1]dis ip rou pr rip
2. 此时,在R5上查看 ospf 路由表发现,已学到 rip 的路由
[R5]dis ip rou pr ospf