实验ospf多区域配置的扩展。
【1】switch0的配置
Switch(config)#vlan 10Switch(config-vlan)#exitSwitch(config)#int f1/1Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10Switch(config-if)#exitSwitch(config)#vlan 20Switch(config-vlan)#exitSwitch(config)#int f2/1Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 20Switch(config-if)#exitSwitch(config)#int f1/1Switch(config-if)#switchport mode trunk Switch(config-if)#switchport trunk allowed vlan allSwitch(config-if)#exitSwitch(config)#int f2/1Switch(config-if)#switchport mode trunk Switch(config-if)#switchport trunk allowed vlan all
【2】switch1的配置
Switch(config)#vlan 30Switch(config-vlan)#exitSwitch(config)#int f1/1Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 30Switch(config-vlan)#exitSwitch(config)#int f2/1Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 40Switch(config-if)#switchport mode trunk Switch(config-if)#switchport trunk allowed vlan allSwitch(config-if)#exitSwitch(config)#int f1/1Switch(config-if)#switchport mode trunk Switch(config-if)#switchport trunk allowed vlan all
【3】实现各PC互相ping通
PC0可以ping通PC1
PC0可以ping通PC2