【正文】
hernet0/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 no switchport ip address duplex auto speed auto!interface FastEthernet0/23 switchport access vlan 3 switchport mode access!interface FastEthernet0/24 switchport access vlan 2 switchport mode access!interface GigabitEthernet0/1!interface GigabitEthernet0/2!interface Vlan1 no ip address shutdown!interface Vlan2 ip address !interface Vlan3 ip address !router ospf 100 logadjacencychanges network area 0 network area 0 network area 0!ip classless!line con 0 line vty 0 4 login!end :Current configuration : 1888 bytes!version no service timestamps log datetime msec no service timestamps debug datetime msec no service passwordencryption!hostname Switch!ip dhcp excludedaddress ip dhcp excludedaddress !ip dhcp pool VlanStudent network defaultrouter dnsserver ip dhcp pool VlanTeacher network defaultrouter dnsserver ip routing!no ip domainlookup!interface FastEthernet0/1 no switchport no ip address duplex auto speed auto!interface FastEthernet0/2!interface FastEthernet0/3!interface FastEthernet0/4!interface FastEthernet0/5!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 no switchport ip address duplex auto speed auto!interface FastEthernet0/23 switchport access vlan 3 switchport mode access!interface FastEthernet0/24 switchport access vlan 2 switchport mode access!interface GigabitEthernet0/1!interface GigabitEthernet0/2!interface Vlan1 no ip address shutdown!interface Vlan2 ip address !interface Vlan3 ip address !router ospf 100 logadjacencychanges network area 0 network area 0 network area 0!ip classless!line con 0 line vty 0 4 login!end(3)核心層路由器的配置 Building configuration...Current configuration : 825 bytes!version no service timestamps log datetime msec no service timestamps debug datetime msec no service passwordencryption!hostname Router!no ip domainlookup!interface FastEthernet0/0 ip address duplex auto speed auto!interface FastEthernet0/1 no ip address duplex auto speed auto shutdown!interface Serial0/0/0 ip address clock rate 4000000!interface Serial0/0/1 ip address !interface Vlan1 no ip address shutdown!router ospf 100 logadjacencychanges network area 0 network area 0 network area 0!ip classless!line con 0 exectimeout 0 0 logging synchronous line vty 0 4 login!end Building configuration...Current configuration : 825 bytes!version no service timestamps log datetime msec no service timestamps debug datetime msec no service passwordencryption!hostname Router!no ip domainlookup!interface FastEthernet0/0 ip address duplex auto speed auto!interface FastEthernet0/1 no ip address duplex auto speed auto shutdown!interface Serial0/0/0 ip address !interface Serial0/0/1 ip address clock rate 4000000!interface Vlan1 no ip address shutdown!router ospf 100 logadjacencychanges network area 0 network area 0 network area 0!ip classless!line con 0 exectimeout 0 0 logging synchronous line vty 0 4 login!end Building configuration...Current configuration : 806 bytes!version no service timestamps log datetime msec no service timestamps debug datetime msec no service passwordencryption!hostname Router!no ip domainlookup!interface FastEthernet0/0 ip address duplex auto speed auto!interface FastEthernet0/1 no ip address duplex auto speed auto shutdown!interface Serial0/0/0 ip address !interface Serial0/0/1 ip address !interface Vlan1 no ip address shutdown!router ospf 100 logadjacencychanges network area 0 network area 0 network area 0!ip classless!line con 0 exectimeout 0 0 logging synchronous line vty 0 4 login!end Building configuration...Current configuration : 1836 bytes!version no service timestamps log datetime msec no service timestamps debug datetime msec no service passwordencryption!hostname Router!no ip domainlookup!interface FastEthernet0/0 ip address ip nat inside duplex auto speed auto!interface FastEthernet0/1 ip address ip nat inside duplex auto speed auto!interface Serial0/0/0 ip address ip nat inside clock rate 4000000!interface Serial0/0/1 ip address ip nat inside clock rate 4000000!interface Serial0/2/0 ip address ip nat outside clock rate 4000000!interface Serial0/2/1 no ip address!interface Vlan1 no ip address shutdown!router ospf 100 logadjacencychanges network area 0 network area 0 network area 0 network area 0 network area 0 defaultinformation originate!ip nat pool Campus netmask ip nat pool Campus1 netmask ip nat inside source list 1 pool Campus overload ip nat inside source static ip nat inside source static ip nat inside source static ip classless ip route !accesslist 1 permit accesslist 1 permit accesslist 1 permit any accesslist 1 permit accesslist 1 permit accesslist 1 permit accesslist 1 permit !line con 0 exectimeout 0 0 logging synchronous line vty 0 4 login!end Building configuration...Current configuration : 635 bytes!version no service timestamps log datetime msec no service timestamps debug datetime msec no service passwordencryption!hostname Router!no ip domainlookup!interface FastEthernet0/0 ip address duplex auto speed auto!interface FastEthernet0/1 no ip address duplex auto speed auto shutdown!interface