当前位置:文档之家› 动态路由协议RIP

动态路由协议RIP

动态路由协议RIP

1.实验目的:通过不同路径实现全网互通

2.实验设备:4台路由器,2台电脑,若干交叉线

3.实验步骤:启动RIP路由协议:router rip分布直连网络:network

4.实验拓扑图

.

5..实验具体步骤:

1.R1

Router>en

Router>enable

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#host

Router(config)#hostname R1

R1(config)#int f0/0

R1(config-if)#ip ad

R1(config-if)#ip address 192.168.1.254 255.255.255.0

R1(config-if)#no sh

R1(config-if)#no shutdown

R1(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R1(config-if)#int f0/1

R1(config-if)#ip ad

R1(config-if)#ip address 192.168.3.1 255.255.255.0

R1(config-if)#no sh

R1(config-if)#no shutdown

R1(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

R1(config-if)#int e1/0

R1(config-if)#ip ad

R1(config-if)#ip address 192.168.5.1 255.255.255.0

R1(config-if)#no sh

R1(config-if)#no shutdown

R1(config-if)#

%LINK-5-CHANGED: Interface Ethernet1/0, changed state to up

R1(config-if)#exit

R1(config)#iprou

R1(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.2

R1(config)#

R2

Router>en

Router>enable

Router#CONF T

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R2

R2(config)#int F0/0

R2(config-if)#ip ad

R2(config-if)#ip address 192.168.3.2 255.255.255.0

R2(config-if)#no sh

R2(config-if)#no shutdown

R2(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R2(config-if)#int f0/1

R2(config-if)#ip ad

R2(config-if)#ip address 192.168.4.1 255.255.255.0

R2(config-if)#no sh

R2(config-if)#no shutdown

R2(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

R2(config-if)#exit

R2(config)#iprou

R2(config)#ip route 192.168.2.0 255.255.255.0 192.168.4.2

R2(config)#

R3

Router>en

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#host

Router(config)#hostname R3

R3(config)#int f0/0

R3(config-if)#ip ad

R3(config-if)#ip address 192.168.4.2 255.255.255.0

R3(config-if)#no sh

R3(config-if)#no shutdown

R3(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R3(config-if)#int f0/1

R3(config-if)#ip ad

R3(config-if)#ip address 192.168.2.254 255.255.255.0

R3(config-if)#no sh

R3(config-if)#no shutdown

R3(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

R3(config-if)#int e1/1

R3(config-if)#ip ad

R3(config-if)#ip address 192.168.6.2 255.255.255.0

R3(config-if)#no sh

R3(config-if)#no shutdown

R3(config-if)#

%LINK-5-CHANGED: Interface Ethernet1/1, changed state to up

相关主题