动态路由协议RIP1.实验目的:通过不同路径实现全网互通2.实验设备:4台路由器,2台电脑,若干交叉线3.实验步骤:启动RIP路由协议:router rip分布直连网络:network4.实验拓扑图.5..实验具体步骤:1.R1Router>enRouter>enableRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostRouter(config)#hostname R1R1(config)#int f0/0R1(config-if)#ip adR1(config-if)#ip address 192.168.1.254 255.255.255.0R1(config-if)#no shR1(config-if)#no shutdownR1(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upR1(config-if)#int f0/1R1(config-if)#ip adR1(config-if)#ip address 192.168.3.1 255.255.255.0R1(config-if)#no shR1(config-if)#no shutdownR1(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to upR1(config-if)#int e1/0R1(config-if)#ip adR1(config-if)#ip address 192.168.5.1 255.255.255.0R1(config-if)#no shR1(config-if)#no shutdownR1(config-if)#%LINK-5-CHANGED: Interface Ethernet1/0, changed state to upR1(config-if)#exitR1(config)#iprouR1(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.2R1(config)#R2Router>enRouter>enableRouter#CONF TEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R2R2(config)#int F0/0R2(config-if)#ip adR2(config-if)#ip address 192.168.3.2 255.255.255.0R2(config-if)#no shR2(config-if)#no shutdownR2(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upR2(config-if)#int f0/1R2(config-if)#ip adR2(config-if)#ip address 192.168.4.1 255.255.255.0R2(config-if)#no shR2(config-if)#no shutdownR2(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to upR2(config-if)#exitR2(config)#iprouR2(config)#ip route 192.168.2.0 255.255.255.0 192.168.4.2R2(config)#R3Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostRouter(config)#hostname R3R3(config)#int f0/0R3(config-if)#ip adR3(config-if)#ip address 192.168.4.2 255.255.255.0R3(config-if)#no shR3(config-if)#no shutdownR3(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upR3(config-if)#int f0/1R3(config-if)#ip adR3(config-if)#ip address 192.168.2.254 255.255.255.0R3(config-if)#no shR3(config-if)#no shutdownR3(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upR3(config-if)#int e1/1R3(config-if)#ip adR3(config-if)#ip address 192.168.6.2 255.255.255.0R3(config-if)#no shR3(config-if)#no shutdownR3(config-if)#%LINK-5-CHANGED: Interface Ethernet1/1, changed state to upR3(config-if)#exitR3(config)#iprouR3(config)#ip route 192.168.1.0 255.255.255.0 192.168.6.1R3(config)#R4Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R4R4(config)#int e1/1R4(config-if)#ip adR4(config-if)#ip address 192.168.6.1 255.255.255.0R4(config-if)#no shR4(config-if)#no shutdownR4(config-if)#%LINK-5-CHANGED: Interface Ethernet1/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/1, changed state to upR4(config-if)#int e1/0R4(config-if)#ip adR4(config-if)#ip address 192.168.5.2 255.255.255.0R4(config-if)#no shR4(config-if)#no shutdownR4(config-if)#%LINK-5-CHANGED: Interface Ethernet1/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/0, changed state to upR4(config-if)#exitR4(config)#iprouR4(config)#ip route 192.168.2.0 255.255.255.0 192.168.5.1R4(config)#2.公布直连网络R1R1#conf tEnter configuration commands, one per line. End with CNTL/Z.R1(config)#rouR1(config)#router ripR1(config-router)#netR1(config-router)#network 192.168.1.0R1(config-router)#network 192.168.3.0R1(config-router)#network 192.168.5.0R1(config-router)#R2R2#conf tEnter configuration commands, one per line. End with CNTL/Z.R2(config)#rouR2(config)#router ripR2(config-router)#netR2(config-router)#network 192.168.3.0R2(config-router)#network 192.168.4.0R3R3>enR3#conf tEnter configuration commands, one per line. End with CNTL/Z.R3(config)#rouR3(config)#router ripR3(config-router)#netR3(config-router)#network 192.168.4.0R3(config-router)#network 192.168.6.0R3(config-router)#network 192.168.2.0R3(config-router)#R4R4>R4>enR4#conf tEnter configuration commands, one per line. End with CNTL/Z.R4(config)#rouR4(config)#router ripR4(config-router)#netR4(config-router)#network 192.168.5.0R4(config-router)#network 192.168.6.0R4(config-router)#6.实验总结:通过不同路径实现全网互通。