神州数码静态路由及直连网段引入到RIP协议配置(路由重定向)

2023-07-29,,

实验要求:掌握静态路由及直连网段引入协议当中的配置

拓扑如下

R1

enable  进入特权模式

config  进入全局模式

hostname R1  修改名称

interface g0/6  进入端口

ip address 192.168.2.254 255.255.255.0  设置IP地址

no shutdown  开启端口

interface s0/1  进入端口

ip address 192.168.1.1 255.255.255.0  设置IP地址

physical-layer speed 64000  设置同步时钟

no shutdown  开启端口

exit  返回上一级

ip route 0.0.0.0 0.0.0.0 192.168.1.2  添加静态路由

 

R2

enable  进入特权模式

config  进入全局模式

hostname R2  修改名称

interface g0/6  进入端口

ip address 192.168.3.1 255.255.255.0  设置IP地址

no shutdown  开启端口

interface s0/2  进入端口

ip address 192.168.1.2 255.255.255.0  设置IP地址

physical-layer speed 64000  设置同步时钟

no shutdown  开启端口

exit  返回上一级

ip route 192.168.2.0 255.255.255.0 192.168.1.1  添加静态路由

router rip  启动RIP协议

version 2  选择版本

network 192.168.3.0  添加直连网段到RIP

redistribute static  引入静态路由

redistribute connect  引入直连网段

R3

enable  进入特权模式

config  进入全局模式

hostname R3  修改名称

interface g0/6  进入端口

ip address 192.168.3.2 255.255.255.0  设置IP地址

no shutdown  开启端口

exit  返回上一级

router rip  启动RIP协议

version 2  选择版本

network 192.168.3.0  添加直连网段到RIP

相关命令

ip route 0.0.0.0 0.0.0.0 [下一跳地址]   设置缺省路由

redistribute [重定向路由的类型]     路由重定向

      --ospf

      --rip

      --static

      --connect

      --beigrp

      --bgp

      --Isis

神州数码静态路由及直连网段引入到RIP协议配置(路由重定向)的相关教程结束。

《神州数码静态路由及直连网段引入到RIP协议配置(路由重定向).doc》

下载本文的Word格式文档,以方便收藏与打印。