1、五台路由器及几个交换机的互联拓扑图: //各路由器之间运行着RIP VERSION1协议// Router A A now available Press RETURN to get started! ----------------------- ------------ jxfkdfkdlf ---------------------- A>en A#show run Building configuration... Current configuration : 625 bytes ! version 12.2 service tim
2、estamps debug uptime service timestamps log uptime no service password-encryption ! hostname A ! ! ! ip subnet-zero ! ! ! ! ! interface FastEthernet0/0 ip address 12.2.2.1 255.0.0.0 // 路由器A的F0/0端口连接着12.0.0.0网络// no ip directed-broadcast ! interface Serial0/0 no ip address
3、no ip directed-broadcast shutdown ! interface FastEthernet0/1 no ip address no ip directed-broadcast shutdown ! interface Serial0/1 ip address 10.1.1.1 255.0.0.0 // 路由器A的S0/1端口连接着10.0.0.0网络// no ip directed-broadcast ! router rip network 10.0.0.0 network 12.0.0.0 //路由器A上的RIP
4、路由表。// ! ! ip classless no ip http server ! ! banner motd ^C ----------------------- ------------------------- jxfkdfkdlf ---------------------- ^C ! line con 0 line aux 0 line vty 0 4 login ! end A# Router B B Con0 is now available Press RETURN to get started! B>en B#show
5、run Building configuration... Current configuration : 625 bytes ! version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname B! ip subnet-zero ! ! ! ! ! interface FastEthernet0/0 no ip address no ip directed-broadcast shutd
6、own ! interface Serial0/0 ip address 10.1.1.2 255.0.0.0 // 路由器B的S0/0端口连接着10.0.0.0网络// no ip directed-broadcast ! interface FastEthernet0/1 no ip address no ip directed-broadcast shutdown ! interface Serial0/1 ip address 131.12.12.1 255.255.0.0 // 路由器B的S0/1端口连接着131.12.0.0网络//
7、no ip directed-broadcast clockrate 64000 // 路由器B的S0/1端口配置了时钟频率。// ! router rip network 10.0.0.0 network 131.12.0.0 // 路由器B端的RIP路由表信息。// ! ! ip classless no ip http server ! ! ! line con 0 line aux 0 line vty 0 4 login ! end B# Router C C Con0 is now availa
8、ble Press RETURN to get started! C>en C#show run Building configuration... Current configuration : 625 bytes ! version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname C ! ! ! ip subnet-zero ! ! ! ! ! interface FastE
9、thernet0/0 no ip address no ip directed-broadcast shutdown ! interface Serial0/0 ip address 172.168.15.1 255.255.0.0 // 路由器C的S0/0端口连接着172.168.0.0网络// no ip directed-broadcast ! interface FastEthernet0/1 no ip address no ip directed-broadcast shutdown ! interface Serial0/1 ip addres
10、s 131.12.12.2 255.255.0.0 // 路由器C的S0/1端口连接着131.12.0.0网络// no ip directed-broadcast ! router rip network 131.12.0.0 network 172.168.0.0 // 路由器C端的RIP路由表信息。// ! ! ip classless no ip http server ! ! ! line con 0 line aux 0 line vty 0 4 login ! end C# Router D D
11、Con0 is now available Press RETURN to get started! D>en D#show run Building configuration... Current configuration : 625 bytes ! version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname D ! ! ! ip subnet-zero ! ! ! !
12、 interface FastEthernet0/0 ip address 211.211.200.1 255.255.255.0 // 路由器D的F0/0端口连接着211.211.200.0网络// no ip directed-broadcast ! interface Serial0/0 ip address 172.168.15.2 255.255.0.0 // 路由器D的S0/0端口连接着172.168.0.0网络// no ip directed-broadcast clockrate 64000 ! interface Fas
13、tEthernet0/1 no ip address no ip directed-broadcast shutdown ! interface Serial0/1 ip address 192.168.14.1 255.255.255.0 // 路由器D的S0/1端口连接着192.168.14.0网络// no ip directed-broadcast clockrate 64000 // 路由器D的S0/1端配置了时钟频率。// ! router rip // 路由器D端的RIP路由表信
14、息。// network 172.168.0.0 network 192.168.14.0 network 211.211.200.0 ! ! ip classless no ip http server ! ! ! line con 0 line aux 0 line vty 0 4 login ! end D# Router E E Con0 is now available Press RETURN to get started! E>en E#show run Building configuration...
15、Current configuration : 625 bytes ! version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname E ! ! ! ip subnet-zero ! ! ! ! ! interface FastEthernet0/0 // 路由器E的F0/0端口连接着192.168.15 .0网络// ip address 192.168.15.1 255
16、255.255.0 no ip directed-broadcast ! interface Serial0/0 no ip address no ip directed-broadcast shutdown ! interface FastEthernet0/1 no ip address no ip directed-broadcast shutdown ! interface Serial0/1 // 路由器E的S0/1端口连接着192.168.14.0网络// ip address 192.168.14.2 255.255.255.0 no ip d
17、irected-broadcast ! router rip // 路由器E端的RIP路由表信息。// network 192.168.14.0 network 192.168.15.0 ! ! ip classless no ip http server ! ! ! line con 0 line aux 0 line vty 0 4 login ! end E# 学习心得: 1. RIP路由比静态路由配置更简单。 2. 对于DCE类型的路由器端口一定要配置时钟频率,保持整个网络的同步。 3. 要记着配置PASSWORD和用PING进行测试。 ! ! ! ! ! ! ! ! ! ! ! ! ! ! !






