201008261282797412377.jpg

这大概是距离现在3年的时间了,我10年即将毕业前做的很简单的东西,没想到3年后还是有人不断问我要视频,只能说感谢大家了,毕业以后一直忙工作,这些视频什么的都没有好好整理法上来,今天一个学弟又发信来要视频,回头翻到这片文章,索性好好整理一次,传到网盘,供大家自由下载。3年前的东西了,现在看起来似乎还能看到当初那个青涩的影子,毕业只是开始,与同学们共勉。

  视频地址:http://pan.baidu.com/share/link?shareid=1902489576&uk=3171884588




这是拓扑图

以下是我的配置:(ps毕业前做的,很繁琐,传上来大家给大家拍砖,不要丢我鸡蛋,我第一次发这样的东西,很烂的.....)
当时做的时候因为要交作品,所以还有录屏,有需要的联系我,(视频已经整理到百度网盘,需要的同学请自行下载: http://pan.baidu.com/share/link?shareid=1902489576&uk=3171884588)把视频发给大家互相学习........................
试验要求
一:企业私网
网络整体运行ospf协议。
1)Area 1为普通区域,且做区域地址汇总;Area 1 做MD5认证 认证字为huayu
       R2:s0/0:172.16.254.1/30 =====>R1 s0/0:172.16.254.2/30
       R2:s0/1:172.16.254.5/30 =====>R1 s0/1:172.16.254.6/30
由于该区域重要业务网段,需要做PBR(策略路由),以实现172.16.0.0与172.16.1.0的网络用户他们被访问时使用是s0/0的线路,172.16.2.0与172.16.3.0的用户被访问时使用的是s0/1的线路(问题:为什么静态路由宣告了路由图,依然不起效!!!)

2)Area 2 配置为OSPF完全末梢区域,且做区域地址汇总;Area 2 做MD5认证认证字为yuhua 。链路全部封装ppp协议,并做PPP捆绑,且做ppp验证;
R1 的s0/2至R3的s0/0为chap验证
R1 的s0/3至R3的s0/1为pap验证
路由器R3的multilink :172.16.254.9/30 =====>R1 multilink:172.16.254.10/30

3) Area 3 配置为OSPF完全非纯区域(NSSA),且做区域外地址汇总(不宣告环回口);Area 3 做MD5认证认证认证字为123
       R4: S0:172.16.254.13/30====>R1 s1/0::172.16.254.14/30
---------------------------------------------------------------------------------
4)R5与R1运行静态路由协议,并且发布到opsf区域中并且做汇总。
     R5 S0/0:172.16.254.21/30====>R1:S1/1:172.16.254.22/30

5)R7、R8与R1通过帧中继链路连接,作为Ospf区域4
     R1:s1/2   192.168.1.1/24
  R7:s1/2   192.168.1.2/24
  R8:s1/2   192.168.1.3/24
6) R6模拟帧中继交换机
     R1-?R7的DLCI标识为100--?200
  R1-?R8的DLCI标识为300--?400
由于考虑到成本,整个网络并没有采用三线互联的网状结构。
7) R9与Switch(三层交换)连接作为area5
R9:F1/0---172.16.254.29/30 =======>Switch  F0/0:172.16.254.30/30
二层交换配置vlan2和vlan3,并且这两个vlan的网络号分别为10.0.0.0/2和20.0.0.0/24
二、外网
(1) R9连接R10(模拟互联网)
路由器R9  F0/0:202.101.224.1/29 =======>R10: F0/0202.101.224.2/29
在R9配置全网出口,配置NAT
只允许Area 1,Area 2,Area 3的用户可以访问互联网,其它网段的用户不允许访问互联网
内外一台WEB服务器需要发布,同Internet人员访问。只需在路由器作出映射配置即可。
R9发布缺省路由到整个ospf区域中;default information  org  always
三、访问控制
(1)拒绝Area 1 区域中的用户访问服务器10.0.0.2  ftp 服务;
(2)拒绝Area 2 区域中的用户访问服务器20.0.0.2  web服务;
只需做配置,无需验证。
以下是我的配置:
R1#show running-config
Building configuration...
Current configuration : 3143 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
interface Loopback0
no ip address
!
interface Loopback1
no ip address
!
interface Loopback2
no ip address
!
interface Loopback3
no ip address
!
interface Multilink1
ip address 192.168.100.2 255.255.255.0
ppp multilink
ppp multilink group 1
!
interface Serial0/0
ip address 192.168.1.1 255.255.255.0
ip ospf message-digest-key 123 md5 huayu
serial restart-delay 0
!
interface Serial0/1
ip address 192.168.2.1 255.255.255.0
ip ospf message-digest-key 123 md5 huayu
serial restart-delay 0
!        
interface Serial0/2
ip address 192.168.3.1 255.255.255.0
encapsulation ppp
ip ospf message-digest-key 123 md5 huayu
ip policy route-map huayu
serial restart-delay 0
ppp pap sent-username a password 0 a
ppp multilink
ppp multilink group 1
!
interface Serial0/3
ip address 192.168.4.1 255.255.255.0
encapsulation ppp
ip ospf message-digest-key 123 md5 huayu
ip policy route-map huayu
serial restart-delay 0
ppp pap sent-username a password 0 a
ppp multilink
ppp multilink group 1
!
interface Serial1/0
ip address 192.168.5.1 255.255.255.0
ip ospf message-digest-key 123 md5 huayu
ip policy route-map huayu
serial restart-delay 0
!
interface Serial1/1
ip address 192.168.6.1 255.255.255.0
serial restart-delay 0
!
interface Serial1/2
ip address 192.168.7.1 255.255.255.0
encapsulation frame-relay
ip ospf network broadcast
ip policy route-map huayu
serial restart-delay 0
!
interface Serial1/3
ip address 192.168.8.1 255.255.255.0
ip policy route-map huayu
serial restart-delay 0
!
router ospf 100
log-adjacency-changes
area 1 authentication message-digest
area 1 range 172.16.0.0 255.255.255.252
area 2 authentication message-digest
area 2 stub no-summary
area 2 range 172.16.4.0 255.255.255.252
area 3 authentication message-digest
area 3 nssa no-summary
area 3 range 172.16.20.0 255.255.255.252
redistribute connected subnets
redistribute static subnets
network 192.168.1.0 0.0.0.255 area 1
network 192.168.2.0 0.0.0.255 area 1
network 192.168.3.0 0.0.0.255 area 2
network 192.168.4.0 0.0.0.255 area 2
network 192.168.5.0 0.0.0.255 area 3
network 192.168.7.0 0.0.0.255 area 4
network 192.168.8.0 0.0.0.255 area 0
network 192.168.100.0 0.0.0.255 area 2
!
ip http server
no ip http secure-server
!
ip route 192.168.10.0 255.255.254.0 192.168.6.2
ip route 192.168.12.0 255.255.254.0 192.168.6.2
!        
!
access-list 100 permit ip host 0.0.0.0 host 172.16.0.1
access-list 100 permit ip host 0.0.0.0 host 172.16.1.1
access-list 101 permit ip host 0.0.0.0 host 172.16.2.1
access-list 101 permit ip host 0.0.0.0 host 172.16.3.1
!
route-map huayu permit 10
match ip address 100
set ip next-hop 192.168.1.2
!
route-map huayu permit 11
match ip address 101
set ip next-hop 192.168.2.2
!
!
control-plane
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end
---------------------------------------------------------------------------------------------------
R1路由表

O IA 192.168.15.0/24 [110/65] via 192.168.8.2, 00:09:34, Serial1/3
C    192.168.8.0/24 is directly connected, Serial1/3
    20.0.0.0/24 is subnetted, 1 subnets
O IA    20.0.0.0 [110/66] via 192.168.8.2, 00:09:34, Serial1/3
    172.16.0.0/16 is variably subnetted, 14 subnets, 2 masks
O       172.16.21.1/32 [110/65] via 192.168.5.2, 00:59:05, Serial1/0
O       172.16.20.0/30 is a summary, 00:59:05, Null0
O       172.16.20.1/32 [110/65] via 192.168.5.2, 00:59:05, Serial1/0
O       172.16.23.1/32 [110/65] via 192.168.5.2, 00:59:05, Serial1/0
O       172.16.22.1/32 [110/65] via 192.168.5.2, 00:59:05, Serial1/0
O       172.16.8.1/32 [110/33] via 192.168.100.1, 00:59:05, Multilink1
O       172.16.5.1/32 [110/33] via 192.168.100.1, 00:59:05, Multilink1
O       172.16.7.1/32 [110/33] via 192.168.100.1, 00:59:05, Multilink1
O       172.16.6.1/32 [110/33] via 192.168.100.1, 00:59:06, Multilink1
O       172.16.1.1/32 [110/65] via 192.168.2.2, 00:59:06, Serial0/1
                     [110/65] via 192.168.1.2, 00:59:06, Serial0/0
O       172.16.0.0/30 is a summary, 00:59:06, Null0
O       172.16.0.1/32 [110/65] via 192.168.2.2, 00:59:06, Serial0/1
                     [110/65] via 192.168.1.2, 00:59:06, Serial0/0
O       172.16.3.1/32 [110/65] via 192.168.2.2, 00:59:06, Serial0/1
                     [110/65] via 192.168.1.2, 00:59:06, Serial0/0
O       172.16.2.1/32 [110/65] via 192.168.2.2, 00:59:06, Serial0/1
                     [110/65] via 192.168.1.2, 00:59:06, Serial0/0
C    192.168.5.0/24 is directly connected, Serial1/0
    10.0.0.0/24 is subnetted, 1 subnets
O IA    10.0.0.0 [110/66] via 192.168.8.2, 00:09:35, Serial1/3
C    192.168.6.0/24 is directly connected, Serial1/1
C    192.168.7.0/24 is directly connected, Serial1/2
    192.168.17.0/32 is subnetted, 1 subnets
O       192.168.17.1 [110/65] via 192.168.7.3, 00:39:53, Serial1/2
    192.168.16.0/32 is subnetted, 1 subnets
O       192.168.16.1 [110/65] via 192.168.7.3, 00:39:53, Serial1/2
C    192.168.1.0/24 is directly connected, Serial0/0
C    192.168.2.0/24 is directly connected, Serial0/1
    192.168.19.0/32 is subnetted, 1 subnets
O       192.168.19.1 [110/65] via 192.168.7.2, 00:39:53, Serial1/2
    192.168.100.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.100.0/24 is directly connected, Multilink1
C       192.168.100.1/32 is directly connected, Multilink1
    192.168.18.0/32 is subnetted, 1 subnets
O       192.168.18.1 [110/65] via 192.168.7.2, 00:39:54, Serial1/2
O*E2 0.0.0.0/0 [110/1] via 192.168.8.2, 00:09:36, Serial1/3
S    192.168.12.0/23 [1/0] via 192.168.6.2
S    192.168.10.0/23 [1/0] via 192.168.6.2
____________________________________________________________________________________
R2#show running-config
Building configuration...
Current configuration : 1214 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
--More--
*Mar  1 01:00:21.611: %OSPF-5-ADJCHG: Process 100, Nbr 192.168.100.2 on Serial0/1 from LOADING to FULL, Loading Done
*Mar  1 01:00:21.615: %OSPF-5-ADJCHG: Process 100, Nbr 192.168.100.2 on Serial0/0 from LOADING to FULL, Loading Done
!        
!
!
interface Loopback0
ip address 172.16.0.1 255.255.255.0
!
interface Loopback1
ip address 172.16.1.1 255.255.255.0
!
interface Loopback2
ip address 172.16.2.1 255.255.255.0
!
interface Loopback3
ip address 172.16.3.1 255.255.255.0
!
interface Serial0/0
ip address 192.168.1.2 255.255.255.0
ip ospf message-digest-key 123 md5 huayu
serial restart-delay 0
!
interface Serial0/1
ip address 192.168.2.2 255.255.255.0
ip ospf message-digest-key 123 md5 huayu
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!        
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 100
log-adjacency-changes
area 1 authentication message-digest
network 0.0.0.0 255.255.255.255 area 1
!
ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end
-------------------------------------------------------------------------------------------------
R2路由表

O IA 192.168.15.0/24 [110/129] via 192.168.2.1, 00:00:24, Serial0/1
                    [110/129] via 192.168.1.1, 00:00:24, Serial0/0
O IA 192.168.8.0/24 [110/128] via 192.168.2.1, 00:00:24, Serial0/1
                   [110/128] via 192.168.1.1, 00:00:24, Serial0/0
    20.0.0.0/24 is subnetted, 1 subnets
O IA    20.0.0.0 [110/130] via 192.168.2.1, 00:00:24, Serial0/1
                [110/130] via 192.168.1.1, 00:00:24, Serial0/0
    172.16.0.0/16 is variably subnetted, 12 subnets, 3 masks
O IA    172.16.21.1/32 [110/129] via 192.168.2.1, 00:00:24, Serial0/1
                      [110/129] via 192.168.1.1, 00:00:24, Serial0/0
O IA    172.16.20.0/30 [110/129] via 192.168.2.1, 00:00:24, Serial0/1
                      [110/129] via 192.168.1.1, 00:00:24, Serial0/0
O IA    172.16.23.1/32 [110/129] via 192.168.2.1, 00:00:24, Serial0/1
                      [110/129] via 192.168.1.1, 00:00:24, Serial0/0
O IA    172.16.22.1/32 [110/129] via 192.168.2.1, 00:00:25, Serial0/1
                      [110/129] via 192.168.1.1, 00:00:25, Serial0/0
O IA    172.16.8.1/32 [110/97] via 192.168.2.1, 00:00:25, Serial0/1
                     [110/97] via 192.168.1.1, 00:00:25, Serial0/0
O IA    172.16.5.1/32 [110/97] via 192.168.2.1, 00:00:25, Serial0/1
                     [110/97] via 192.168.1.1, 00:00:25, Serial0/0
O IA    172.16.7.1/32 [110/97] via 192.168.2.1, 00:00:25, Serial0/1
                     [110/97] via 192.168.1.1, 00:00:25, Serial0/0
O IA    172.16.6.1/32 [110/97] via 192.168.2.1, 00:00:25, Serial0/1
                     [110/97] via 192.168.1.1, 00:00:25, Serial0/0
C       172.16.0.0/24 is directly connected, Loopback0
C       172.16.1.0/24 is directly connected, Loopback1
C       172.16.2.0/24 is directly connected, Loopback2
C       172.16.3.0/24 is directly connected, Loopback3
O IA 192.168.4.0/24 [110/128] via 192.168.2.1, 00:00:25, Serial0/1
                   [110/128] via 192.168.1.1, 00:00:25, Serial0/0
O IA 192.168.5.0/24 [110/128] via 192.168.2.1, 00:00:25, Serial0/1
                   [110/128] via 192.168.1.1, 00:00:25, Serial0/0
    10.0.0.0/24 is subnetted, 1 subnets
O IA    10.0.0.0 [110/130] via 192.168.2.1, 00:00:25, Serial0/1
                [110/130] via 192.168.1.1, 00:00:25, Serial0/0
O E2 192.168.6.0/24 [110/20] via 192.168.2.1, 00:00:25, Serial0/1
                   [110/20] via 192.168.1.1, 00:00:25, Serial0/0
C    192.168.1.0/24 is directly connected, Serial0/0
C    192.168.2.0/24 is directly connected, Serial0/1
    192.168.100.0/32 is subnetted, 1 subnets
O E2    192.168.100.1 [110/20] via 192.168.2.1, 00:00:25, Serial0/1
                     [110/20] via 192.168.1.1, 00:00:25, Serial0/0
O*E2 0.0.0.0/0 [110/1] via 192.168.2.1, 00:00:25, Serial0/1
              [110/1] via 192.168.1.1, 00:00:25, Serial0/0
O E2 192.168.12.0/23 [110/20] via 192.168.2.1, 00:00:25, Serial0/1
                    [110/20] via 192.168.1.1, 00:00:25, Serial0/0
O E2 192.168.10.0/23 [110/20] via 192.168.2.1, 00:00:25, Serial0/1
                    [110/20] via 192.168.1.1, 00:00:25, Serial0/0
_____________________________________________________________________________
R3#show running-config
Building configuration...
Current configuration : 1561 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
username a password 0 a
!
!
interface Loopback0
ip address 172.16.5.1 255.255.255.0
!        
interface Loopback1
ip address 172.16.6.1 255.255.255.0
!
interface Loopback2
ip address 172.16.7.1 255.255.255.0
!
interface Loopback3
ip address 172.16.8.1 255.255.255.0
!
interface Multilink1
ip address 192.168.100.1 255.255.255.0
ppp multilink
ppp multilink group 1
!
interface Serial0/0
ip address 192.168.3.2 255.255.255.0
encapsulation ppp
ip ospf message-digest-key 123 md5 huayu
serial restart-delay 0
clock rate 64000
ppp authentication pap
ppp multilink
ppp multilink group 1
!
interface Serial0/1
ip address 192.168.4.2 255.255.255.0
encapsulation ppp
ip ospf message-digest-key 123 md5 huayu
serial restart-delay 0
clock rate 64000
ppp authentication pap
ppp multilink
ppp multilink group 1
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 100
log-adjacency-changes
area 2 authentication message-digest
area 2 stub no-summary
network 0.0.0.0 255.255.255.255 area 2
!
ip http server
no ip http secure-server
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

------------------------------------------------------------------------------------------------------
R3路由表
    172.16.0.0/24 is subnetted, 4 subnets
C       172.16.8.0 is directly connected, Loopback3
C       172.16.5.0 is directly connected, Loopback0
C       172.16.6.0 is directly connected, Loopback1
C       172.16.7.0 is directly connected, Loopback2
    192.168.100.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.100.0/24 is directly connected, Multilink1
C       192.168.100.2/32 is directly connected, Multilink1
_________________________________________________________________________________________
R4#show running-config
Building configuration...
Current configuration : 1187 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
interface Loopback0
ip address 172.16.20.1 255.255.255.0
!
interface Loopback1
ip address 172.16.21.1 255.255.255.0
!        
interface Loopback2
ip address 172.16.22.1 255.255.255.0
!        
interface Loopback3
ip address 172.16.23.1 255.255.255.0
!
interface Serial0/0
ip address 192.168.5.2 255.255.255.0
ip ospf message-digest-key 123 md5 huayu
serial restart-delay 0
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!        
router ospf 100
log-adjacency-changes
area 3 authentication message-digest
area 3 nssa no-summary
network 0.0.0.0 255.255.255.255 area 3
!
ip http server
no ip http secure-server
!
control-plane
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

-----------------------------------------------------------------------------------------------------
R4路由表

    172.16.0.0/24 is subnetted, 4 subnets
C       172.16.20.0 is directly connected, Loopback0
C       172.16.21.0 is directly connected, Loopback1
C       172.16.22.0 is directly connected, Loopback2
C       172.16.23.0 is directly connected, Loopback3
C    192.168.5.0/24 is directly connected, Serial0/0
O N2 192.168.6.0/24 [110/20] via 192.168.5.1, 00:00:08, Serial0/0
    192.168.100.0/32 is subnetted, 1 subnets
O N2    192.168.100.1 [110/20] via 192.168.5.1, 00:00:09, Serial0/0
O*IA 0.0.0.0/0 [110/65] via 192.168.5.1, 00:00:09, Serial0/0
O N2 192.168.12.0/23 [110/20] via 192.168.5.1, 00:00:09, Serial0/0
O N2 192.168.10.0/23 [110/20] via 192.168.5.1, 00:00:09, Serial0/0
_________________________________________________________________________________________________________________
R5#show running-config
Building configuration...
Current configuration : 1084 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R5
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
interface Loopback0
ip address 192.168.10.1 255.255.255.0
!
interface Loopback1
ip address 192.168.11.1 255.255.255.0
!
interface Loopback2
ip address 192.168.12.1 255.255.255.0
!
interface Loopback3
ip address 192.168.13.1 255.255.255.0
!
interface Serial0/0
ip address 192.168.6.2 255.255.255.0
serial restart-delay 0
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 100
log-adjacency-changes
!
ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 192.168.6.1
!
!
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end
--------------------------------------------------------------------------------------------------------

R5路由表

C    192.168.12.0/24 is directly connected, Loopback2
C    192.168.13.0/24 is directly connected, Loopback3
C    192.168.10.0/24 is directly connected, Loopback0
C    192.168.11.0/24 is directly connected, Loopback1
C    192.168.6.0/24 is directly connected, Serial0/0
S*   0.0.0.0/0 [1/0] via 192.168.6.1
__________________________________________________________________________________________________________________________
R7#show running-config
Building configuration...
Current configuration : 1019 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R7
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
interface Loopback0
ip address 192.168.18.1 255.255.255.0
!
interface Loopback1
ip address 192.168.19.1 255.255.255.0
!
interface Serial0/0
ip address 192.168.7.2 255.255.255.0
encapsulation frame-relay
ip ospf network broadcast
serial restart-delay 0
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!        
router ospf 100
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 4
!
ip http server
no ip http secure-server
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

----------------------------------------------------------------------------------------------------
R7路由表

O IA 192.168.15.0/24 [110/129] via 192.168.7.1, 00:00:32, Serial0/0
O IA 192.168.8.0/24 [110/128] via 192.168.7.1, 00:00:45, Serial0/0
    20.0.0.0/24 is subnetted, 1 subnets
O IA    20.0.0.0 [110/130] via 192.168.7.1, 00:00:32, Serial0/0
    172.16.0.0/16 is variably subnetted, 12 subnets, 2 masks
O IA    172.16.21.1/32 [110/129] via 192.168.7.1, 00:00:50, Serial0/0
O IA    172.16.20.0/30 [110/129] via 192.168.7.1, 00:00:50, Serial0/0
O IA    172.16.23.1/32 [110/129] via 192.168.7.1, 00:00:50, Serial0/0
O IA    172.16.22.1/32 [110/129] via 192.168.7.1, 00:00:50, Serial0/0
O IA    172.16.8.1/32 [110/97] via 192.168.7.1, 00:00:50, Serial0/0
O IA    172.16.5.1/32 [110/97] via 192.168.7.1, 00:00:50, Serial0/0
O IA    172.16.7.1/32 [110/97] via 192.168.7.1, 00:00:50, Serial0/0
O IA    172.16.6.1/32 [110/97] via 192.168.7.1, 00:00:50, Serial0/0
O IA    172.16.1.1/32 [110/129] via 192.168.7.1, 00:00:51, Serial0/0
O IA    172.16.0.0/30 [110/129] via 192.168.7.1, 00:00:51, Serial0/0
O IA    172.16.3.1/32 [110/129] via 192.168.7.1, 00:00:51, Serial0/0
O IA    172.16.2.1/32 [110/129] via 192.168.7.1, 00:00:51, Serial0/0
O IA 192.168.4.0/24 [110/128] via 192.168.7.1, 00:00:51, Serial0/0
O IA 192.168.5.0/24 [110/128] via 192.168.7.1, 00:00:51, Serial0/0
    10.0.0.0/24 is subnetted, 1 subnets
O IA    10.0.0.0 [110/130] via 192.168.7.1, 00:00:33, Serial0/0
O E2 192.168.6.0/24 [110/20] via 192.168.7.1, 00:00:31, Serial0/0
C    192.168.7.0/24 is directly connected, Serial0/0
    192.168.17.0/32 is subnetted, 1 subnets
O       192.168.17.1 [110/65] via 192.168.7.3, 00:00:51, Serial0/0
    192.168.16.0/32 is subnetted, 1 subnets
O       192.168.16.1 [110/65] via 192.168.7.3, 00:00:51, Serial0/0
O IA 192.168.1.0/24 [110/128] via 192.168.7.1, 00:00:51, Serial0/0
O IA 192.168.2.0/24 [110/128] via 192.168.7.1, 00:00:51, Serial0/0
C    192.168.19.0/24 is directly connected, Loopback1
    192.168.100.0/24 is variably subnetted, 2 subnets, 2 masks
O IA    192.168.100.0/24 [110/96] via 192.168.7.1, 00:00:51, Serial0/0
O E2    192.168.100.1/32 [110/20] via 192.168.7.1, 00:00:31, Serial0/0
C    192.168.18.0/24 is directly connected, Loopback0
O IA 192.168.3.0/24 [110/128] via 192.168.7.1, 00:00:51, Serial0/0
O*E2 0.0.0.0/0 [110/1] via 192.168.7.1, 00:00:31, Serial0/0
O E2 192.168.12.0/23 [110/20] via 192.168.7.1, 00:00:32, Serial0/0
O E2 192.168.10.0/23 [110/20] via 192.168.7.1, 00:00:32, Serial0/0
___________________________________________________________________________________________________________________________
R8#show running-config
Building configuration...
Current configuration : 1019 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R8
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
interface Loopback0
ip address 192.168.16.1 255.255.255.0
!
interface Loopback1
ip address 192.168.17.1 255.255.255.0
!
interface Serial0/0
ip address 192.168.7.3 255.255.255.0
encapsulation frame-relay
ip ospf network broadcast
serial restart-delay 0
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!        
router ospf 100
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 4
!
ip http server
no ip http secure-server
!

!
control-plane
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

------------------------------------------------------------------------------------
R8路由表

O IA 192.168.15.0/24 [110/129] via 192.168.7.1, 00:00:32, Serial0/0
O IA 192.168.8.0/24 [110/128] via 192.168.7.1, 00:00:43, Serial0/0
    20.0.0.0/24 is subnetted, 1 subnets
O IA    20.0.0.0 [110/130] via 192.168.7.1, 00:00:33, Serial0/0
    172.16.0.0/16 is variably subnetted, 12 subnets, 2 masks
O IA    172.16.21.1/32 [110/129] via 192.168.7.1, 00:00:44, Serial0/0
O IA    172.16.20.0/30 [110/129] via 192.168.7.1, 00:00:44, Serial0/0
O IA    172.16.23.1/32 [110/129] via 192.168.7.1, 00:00:44, Serial0/0
O IA    172.16.22.1/32 [110/129] via 192.168.7.1, 00:00:44, Serial0/0
O IA    172.16.8.1/32 [110/97] via 192.168.7.1, 00:00:44, Serial0/0
O IA    172.16.5.1/32 [110/97] via 192.168.7.1, 00:00:44, Serial0/0
O IA    172.16.7.1/32 [110/97] via 192.168.7.1, 00:00:44, Serial0/0
O IA    172.16.6.1/32 [110/97] via 192.168.7.1, 00:00:44, Serial0/0
O IA    172.16.1.1/32 [110/129] via 192.168.7.1, 00:00:44, Serial0/0
O IA    172.16.0.0/30 [110/129] via 192.168.7.1, 00:00:44, Serial0/0
O IA    172.16.3.1/32 [110/129] via 192.168.7.1, 00:00:44, Serial0/0
O IA    172.16.2.1/32 [110/129] via 192.168.7.1, 00:00:44, Serial0/0
O IA 192.168.4.0/24 [110/128] via 192.168.7.1, 00:00:44, Serial0/0
O IA 192.168.5.0/24 [110/128] via 192.168.7.1, 00:00:44, Serial0/0
    10.0.0.0/24 is subnetted, 1 subnets
O IA    10.0.0.0 [110/130] via 192.168.7.1, 00:00:33, Serial0/0
O E2 192.168.6.0/24 [110/20] via 192.168.7.1, 00:00:24, Serial0/0
C    192.168.7.0/24 is directly connected, Serial0/0
C    192.168.17.0/24 is directly connected, Loopback1
C    192.168.16.0/24 is directly connected, Loopback0
O IA 192.168.1.0/24 [110/128] via 192.168.7.1, 00:00:44, Serial0/0
O IA 192.168.2.0/24 [110/128] via 192.168.7.1, 00:00:44, Serial0/0
    192.168.19.0/32 is subnetted, 1 subnets
O       192.168.19.1 [110/65] via 192.168.7.2, 00:00:44, Serial0/0
    192.168.100.0/24 is variably subnetted, 2 subnets, 2 masks
O IA    192.168.100.0/24 [110/96] via 192.168.7.1, 00:00:44, Serial0/0
O E2    192.168.100.1/32 [110/20] via 192.168.7.1, 00:00:24, Serial0/0
    192.168.18.0/32 is subnetted, 1 subnets
O       192.168.18.1 [110/65] via 192.168.7.2, 00:00:44, Serial0/0
O IA 192.168.3.0/24 [110/128] via 192.168.7.1, 00:00:44, Serial0/0
O*E2 0.0.0.0/0 [110/1] via 192.168.7.1, 00:00:24, Serial0/0
O E2 192.168.12.0/23 [110/20] via 192.168.7.1, 00:00:26, Serial0/0
O E2 192.168.10.0/23 [110/20] via 192.168.7.1, 00:00:26, Serial0/0
_______________________________________________________________________________________________________________________
R10#show running-config
Building configuration...
Current configuration : 639 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R10
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
interface FastEthernet0/0
ip address 202.101.225.2 255.255.255.248
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
!
ip http server
no ip http secure-server
!
!
control-plane
!

line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end
-------------------------------------------------------------------------------------------------
R10路由表
    202.101.225.0/29 is subnetted, 1 subnets
C       202.101.225.0 is directly connected, FastEthernet0/0
_______________________________________________________________________________
SW1#show running-config
Building configuration...
Current configuration : 1217 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
interface FastEthernet0/0
no switchport
ip address 192.168.15.2 255.255.255.0
!        
interface FastEthernet0/1
switchport mode trunk
!
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 Vlan1
no ip address
!
interface Vlan2
ip address 10.0.0.1 255.255.255.0
!
interface Vlan3
ip address 20.0.0.1 255.255.255.0
!
router ospf 100
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 5
!
ip http server
no ip http secure-server
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!        
!
end

-------------------------------------------------------------------------------------------
SW1(三层交换)
C    192.168.15.0/24 is directly connected, FastEthernet0/0
O IA 192.168.8.0/24 [110/65] via 192.168.15.1, 00:13:35, FastEthernet0/0
    20.0.0.0/24 is subnetted, 1 subnets
C       20.0.0.0 is directly connected, Vlan3
    172.16.0.0/16 is variably subnetted, 12 subnets, 2 masks
O IA    172.16.21.1/32 [110/130] via 192.168.15.1, 00:00:52, FastEthernet0/0
O IA    172.16.20.0/30 [110/130] via 192.168.15.1, 00:00:52, FastEthernet0/0
O IA    172.16.23.1/32 [110/130] via 192.168.15.1, 00:00:52, FastEthernet0/0
O IA    172.16.22.1/32 [110/130] via 192.168.15.1, 00:00:52, FastEthernet0/0
O IA    172.16.8.1/32 [110/98] via 192.168.15.1, 00:00:52, FastEthernet0/0
O IA    172.16.5.1/32 [110/98] via 192.168.15.1, 00:00:52, FastEthernet0/0
O IA    172.16.7.1/32 [110/98] via 192.168.15.1, 00:00:52, FastEthernet0/0
O IA    172.16.6.1/32 [110/98] via 192.168.15.1, 00:00:52, FastEthernet0/0
O IA    172.16.1.1/32 [110/130] via 192.168.15.1, 00:00:53, FastEthernet0/0
O IA    172.16.0.0/30 [110/130] via 192.168.15.1, 00:00:53, FastEthernet0/0
O IA    172.16.3.1/32 [110/130] via 192.168.15.1, 00:00:53, FastEthernet0/0
O IA    172.16.2.1/32 [110/130] via 192.168.15.1, 00:00:53, FastEthernet0/0
O IA 192.168.4.0/24 [110/129] via 192.168.15.1, 00:00:53, FastEthernet0/0
O IA 192.168.5.0/24 [110/129] via 192.168.15.1, 00:00:53, FastEthernet0/0
    10.0.0.0/24 is subnetted, 1 subnets
C       10.0.0.0 is directly connected, Vlan2
O E2 192.168.6.0/24 [110/20] via 192.168.15.1, 00:00:48, FastEthernet0/0
O IA 192.168.7.0/24 [110/129] via 192.168.15.1, 00:00:53, FastEthernet0/0
    192.168.17.0/32 is subnetted, 1 subnets
O IA    192.168.17.1 [110/130] via 192.168.15.1, 00:00:53, FastEthernet0/0
    192.168.16.0/32 is subnetted, 1 subnets
O IA    192.168.16.1 [110/130] via 192.168.15.1, 00:00:53, FastEthernet0/0
O IA 192.168.1.0/24 [110/129] via 192.168.15.1, 00:00:53, FastEthernet0/0
O IA 192.168.2.0/24 [110/129] via 192.168.15.1, 00:00:53, FastEthernet0/0
    192.168.19.0/32 is subnetted, 1 subnets
O IA    192.168.19.1 [110/130] via 192.168.15.1, 00:00:53, FastEthernet0/0
    192.168.100.0/24 is variably subnetted, 2 subnets, 2 masks
O IA    192.168.100.0/24 [110/97] via 192.168.15.1, 00:00:53, FastEthernet0/0
O E2    192.168.100.1/32 [110/20] via 192.168.15.1, 00:00:48, FastEthernet0/0
    192.168.18.0/32 is subnetted, 1 subnets
O IA    192.168.18.1 [110/130] via 192.168.15.1, 00:00:53, FastEthernet0/0
O IA 192.168.3.0/24 [110/129] via 192.168.15.1, 00:00:53, FastEthernet0/0
O*E2 0.0.0.0/0 [110/1] via 192.168.15.1, 00:00:49, FastEthernet0/0
O E2 192.168.12.0/23 [110/20] via 192.168.15.1, 00:00:49, FastEthernet0/0
O E2 192.168.10.0/23 [110/20] via 192.168.15.1, 00:00:49, FastEthernet0/0

SW1(三层交换)VLAN信息
VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/2, Fa0/3, Fa0/4, Fa0/5
                                               Fa0/6, Fa0/7, Fa0/8, Fa0/9
                                               Fa0/10, Fa0/11, Fa0/12, Fa0/13
                                               Fa0/14, Fa0/15
2    VLAN0002                         active    
3    VLAN0003                         active    
1002 fddi-default                     active    
1003 token-ring-default               active    
1004 fddinet-default                  active    
1005 trnet-default                    active  
VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        1002   1003
2    enet  100002     1500  -      -      -        -    -        0      0  
3    enet  100003     1500  -      -      -        -    -        0      0  
1002 fddi  101002     1500  -      -      -        -    -        1      1003
1003 tr    101003     1500  1005   0      -        -    srb      1      1002
1004 fdnet 101004     1500  -      -      1        ibm  -        0      0  
1005 trnet 101005     1500  -      -      1        ibm  -        0      0  
___________________________________________________________________________________________
SW2#show running-config
Building configuration...
*Mar  1 00:33:26.895: %SYS-5-CONFIG_I: Configured from console by console
Current configuration : 1028 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
--More--
*Mar  1 00:33:52.235: %CDP-4-DUPLEX_MISMATCH: duplex mismatch discovered on FastEthernet0/3 (not half duplex), with PC12 Ethernet0/2 (half duplex).
--More--
*Mar  1 00:34:19.615: %CDP-4-DUPLEX_MISMATCH: duplex mismatch discovered on FastEthernet0/2 (not half duplex), with R11 Ethernet0/2 (half duplex).
--More--
*Mar  1 00:34:32.327: %CDP-4-DUPLEX_MISMATCH: duplex mismatch discovered on FastEthernet0/3 (not half duplex), with PC12 Ethernet0/2 (half duplex).
!        
!
interface FastEthernet0/0
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
switchport access vlan 2
!
interface FastEthernet0/3
switchport access vlan 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 Vlan1
no ip address
!
ip http server
no ip http secure-server
!
control-plane
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

------------------------------------------------------------------------------

SW2(2层交换)VLAN信息

SW2#show vlan-switch
VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/0, Fa0/4, Fa0/5, Fa0/6
                                               Fa0/7, Fa0/8, Fa0/9, Fa0/10
                                               Fa0/11, Fa0/12, Fa0/13, Fa0/14
                                               Fa0/15
2    VLAN0002                         active    Fa0/2
3    VLAN0003                         active    Fa0/3
1002 fddi-default                     active    
1003 token-ring-default               active    
1004 fddinet-default                  active    
1005 trnet-default                    active  
VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        1002   1003
2    enet  100002     1500  -      -      -        -    -        0      0  
3    enet  100003     1500  -      -      -        -    -        0      0  
1002 fddi  101002     1500  -      -      -        -    -        1      1003
1003 tr    101003     1500  1005   0      -        -    srb      1      1002
1004 fdnet 101004     1500  -      -      1        ibm  -        0      0  
1005 trnet 101005     1500  -      -      1        ibm  -        0      0  
____________________________________________________________________________________________
Frame-relay#show running-config
Building configuration...
Current configuration : 1319 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Frame-relay
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
frame-relay switching
!
!
interface Serial0/0
no ip address
encapsulation frame-relay
ip ospf network broadcast
serial restart-delay 0
clock rate 64000
frame-relay lmi-type q933a
frame-relay intf-type dce
frame-relay route 100 interface Serial0/1 200
frame-relay route 300 interface Serial0/2 400
!
interface Serial0/1
no ip address
encapsulation frame-relay
ip ospf network broadcast
serial restart-delay 0
clock rate 64000
frame-relay lmi-type q933a
frame-relay intf-type dce
frame-relay route 200 interface Serial0/0 100
!
interface Serial0/2
no ip address
encapsulation frame-relay
ip ospf network broadcast
serial restart-delay 0
clock rate 64000
frame-relay lmi-type q933a
frame-relay intf-type dce
frame-relay route 400 interface Serial0/0 300
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
ip http server
no ip http secure-server
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

---------------------------------------------------------------------------------------
帧中继交换机徐链路
Frame-relay#show frame
Frame-relay#show frame-relay rou
Frame-relay#show frame-relay route
Input Intf      Input Dlci      Output Intf     Output Dlci     Status
Serial0/0       100             Serial0/1       200             active
Serial0/0       300             Serial0/2       400             active
Serial0/1       200             Serial0/0       100             active
Serial0/2       400             Serial0/0       300             active
____________________________________________________________________________________________________________________
R9#show running-config
Building configuration...
Current configuration : 1734 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R9
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
--More--
*Mar  1 00:58:36.551: %OSPF-5-ADJCHG: Process 100, Nbr 192.168.100.2 on Serial2/0 from LOADING to FULL, Loading Done
!     &