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

RIP动态路由协议配置过程

1、跟据拓扑图拖动R、S、PC到工作区

2、配置PC和R,然后连线(连线的时候请记录所选接口),如上图

3、配置交换机

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

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

Switch#configure terminal

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

Switch(config)#hostname s3550

s3550(config)#vlan 10

s3550(config-vlan)#exit

s3550(config)#vlan 50

s3550(config-vlan)#exit

s3550(config)#interface f0/1

s3550(config-if)#switchport access vlan 50

s3550(config-if)#exit

s3550(config)#interface f0/2

s3550(config-if)#switchport access vlan 10

s3550(config-if)#exit

s3550(config-if)#interface vlan 10

s3550(config-if)#ip add 172.16.1.2 255.255.255.0

s3550(config-if)#no shut

s3550(config-if)#exit

s3550(config)#interface vlan 50

s3550(config-if)#ip address 172.16.5.1 255.255.255.0

s3550(config-if)#no shutdown

s3550(config-if)#exit

s3550(config)#exit

s3550#

%SYS-5-CONFIG_I: Configured from console by console

验证:

s3550#show vlan

路由器的基本配置

R1

R2

配置RIP V2协议:

配置S3550上RIP V2协议

s3550#enable

s3550#configure terminal

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

s3550(config)#router rip

s3550(config-router)#network 172.16.1.0

s3550(config-router)#network 172.16.2.0

s3550(config-router)#version 2

s3550(config-router)#no auto-summary

s3550(config-router)#

配置R1上RIP V2协议

Router>enable

Router#configure terminal

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

Router(config)#interface FastEthernet0/0

Router(config-if)#no shutdown

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

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router(config-if)#ip address 172.16.3.1 255.255.0.0

Router(config-if)#ip address 172.16.3.1 255.255.255.0

Router(config-if)#

Router(config-if)#exit

Router(config)#interface Serial0/0

Router(config-if)#

%LINK-5-CHANGED: Interface Serial0/0, changed state to upno shutdown

Router(config-if)#clock rate 1000000

Router(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to upip address 172.16.2.2 255.255.255.0

Router(config-if)#

Router(config-if)#exit

Router(config)#router rip

Router(config-router)#network 172.16.2.0

Router(config-router)#network 172.16.3.0

Router(config-router)#version 2

Router(config-router)#no auto-summary

同理配置R2上RIP V2协议(也可直接在配置菜单里做)

相关主题