欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

思科Cisco路由器配置——浮動靜態(tài)路由配置實驗詳解

  發(fā)布時間:2020-02-26 14:51:31   作者:Stalk   我要評論
這篇文章主要介紹了思科Cisco浮動靜態(tài)路由配置實驗,總結(jié)分析了思科Cisco浮動靜態(tài)路由配置具體步驟、配置命令及相關(guān)操作注意事項,需要的朋友可以參考下

本文實例講述了思科Cisco浮動靜態(tài)路由配置實驗。分享給大家供大家參考,具體如下:

一、實驗?zāi)康?/strong>:利用一條靜態(tài)路由作為兩條負(fù)載均衡的浮動靜態(tài)路由

二、拓?fù)鋱D如下

 

三、具體步驟配置

 (1)R1路由器配置

Router>enable  --進(jìn)入特權(quán)模式
Router#configure terminal  --進(jìn)入全局配置模式
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1  --修改路由器名為R1
R1(config)#interface s0/0/0  --進(jìn)入端口
R1(config-if)#clock rate 64000  --設(shè)置時鐘同步速率
R1(config-if)#ip address 192.168.12.1 255.255.255.0  --給端口配置ip地址
R1(config-if)#no shutdown  --激活端口

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
R1(config-if)#interface s0/0/1  --進(jìn)入端口
R1(config-if)#clock rate 64000  --設(shè)置時鐘同步速率
R1(config-if)#ip address 192.168.23.2 255.255.255.0  --給端口配置ip地址
R1(config-if)#no shutdown  --激活端口

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down
R1(config-if)#exit  --返回上一級
R1(config)#interface l0  --進(jìn)入回環(huán)端口

R1(config-if)#ip address 10.1.1.1 255.255.255.0  --給端口配置ip地址
R1(config-if)#no shutdown  --激活端口
R1(config-if)#interface f0/0  --進(jìn)入端口
R1(config-if)#ip address 192.168.13.1 255.255.255.0  --給端口配置ip地址
R1(config-if)#no shutdown  --激活端口

R1(config-if)#exit  --返回上一級
R1(config)#route rip  --開啟rip協(xié)議
R1(config-router)#version 2  --版本2
R1(config-router)#no auto-summary  --關(guān)閉自動匯總
R1(config-router)#network 192.168.12.0  --添加直連網(wǎng)段到RIP

R1(config-router)#network 192.168.23.0
R1(config-router)#network 10.1.1.0
R1(config-router)#exit  --返回上一級
R1(config)#ip route 20.1.1.0 255.255.255.0 192.168.13.2 121  --配置浮動靜態(tài)路由,級別為121
R1(config)#end  --返回特權(quán)模式

(2)R2路由器配置

Router>enable  --進(jìn)入特權(quán)模式
Router#configure terminal  --進(jìn)入全局配置模式
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R2  --修改路由器名為R2
R2(config)#interface s0/0/1  --進(jìn)入端口
R2(config-if)#clock rate 64000  --配置時鐘速率
This command applies only to DCE interfaces
R2(config-if)#ip address 192.168.12.2 255.255.255.0  --給端口配置ip地址
R2(config-if)#no shutdown  --激活端口

R2(config-if)#interface s0/0/0  --進(jìn)入端口
R2(config-if)#clock rate 64000  --為端口配置時鐘速率
This command applies only to DCE interfaces
R2(config-if)#ip address 192.168.23.1 255.255.255.0  --給端口配置ip地址
R2(config-if)#no shutdown  --激活端口

R2(config-if)#exit  --返回上一級
R2(config)#interface l0  --進(jìn)入回環(huán)端口

R2(config-if)#ip address 20.1.1.1 255.255.255.0  --給端口配置ip地址
R2(config-if)#no shutdown  --激活端口
R2(config-if)#interface f0/1  --進(jìn)入端口
R2(config-if)#ip address 192.168.13.2 255.255.255.0  --給端口配置ip地址
R2(config-if)#no shutdown  --激活端口

R2(config-if)#exit  --返回上一級
R2(config)#route rip  --開啟rip協(xié)議
R2(config-router)#version 2  --版本2
R2(config-router)#no auto-summary  --關(guān)閉自動匯總
R2(config-router)#network 192.168.12.0  --添加直連網(wǎng)段到RIP
R2(config-router)#network 192.168.23.0
R2(config-router)#network 20.1.1.0
R2(config-router)#exit  --返回上一級
R2(config)#ip route 10.1.1.0 255.255.255.0 192.168.13.1 121  --配置浮動靜態(tài)路由,級別為121
R2(config)#end  --返回特權(quán)模式

四、驗證

1、分別查看R1R2路由表信息

(1)R1路由表信息

(2)R2路由表信息

2、斷開兩條負(fù)載均衡路徑(12.023.0網(wǎng)段)并查看路由表信息

(1)R1路由表信息

(2)R2路由表信息

解釋:當(dāng)兩條負(fù)載均衡路徑斷掉,這條浮動的靜態(tài)路由就會出現(xiàn)。

相關(guān)文章

最新評論