interface FastEthernet0/19 !
interface FastEthernet0/20 !
interface FastEthernet0/21 !
interface FastEthernet0/22 !
interface FastEthernet0/23 !
interface FastEthernet0/24 !
interface GigabitEthernet0/1 !
interface GigabitEthernet0/2 !
interface Vlan1 no ip address shutdown !
interface Vlan50
ip address 10.10.5.10 255.255.255.0 !
interface Vlan60
ip address 10.10.6.10 255.255.255.0 !
router ospf 100
log-adjacency-changes
network 192.168.20.0 0.0.0.255 area 0 network 192.168.70.0 0.0.0.255 area 0 !
ip classless ! ! ! ! ! ! !
line con 0 line vty 0 4 login
! ! ! end
(4)接入层交换机配置 interface FastEthernet0/1 switchport mode trunk !
interface FastEthernet0/2 switchport access vlan 10 !
interface FastEthernet0/3 switchport access vlan 20 !
interface FastEthernet0/4 switchport access vlan 30 !
interface FastEthernet0/5
switchport access vlan 40 !
interface FastEthernet0/6 !
interface FastEthernet0/7 !
interface FastEthernet0/8 !
interface FastEthernet0/9 !
interface FastEthernet0/10 !
interface FastEthernet0/11 !
interface FastEthernet0/12 !
interface FastEthernet0/13 !
interface FastEthernet0/14 !
interface FastEthernet0/15
!
interface FastEthernet0/16 !
interface FastEthernet0/17 !
interface FastEthernet0/18 !
interface FastEthernet0/19 !
interface FastEthernet0/20 !
interface FastEthernet0/21 !
interface FastEthernet0/22 !
interface FastEthernet0/23 !
interface FastEthernet0/24 !
interface Vlan1 no ip address