神州數碼靜態路由及直連網段引入到RIP協議配置(路由重定向)


實驗要求:掌握靜態路由及直連網段引入協議當中的配置

拓撲如下

 

 

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM