HCNA RIPv2路由協議與認證模式配置

Rip.png

實例:配置rip協議,實現各鏈路間的通信,並配置MD5認證

步驟一:

配置各接口IP地址

R1:

interface g0/0/0

ip add 12.0.0.1 8

quit

R2:

interface g0/0/0

ip add 12.0.0.2 8

interface g0/0/1

ip add 23.0.0.2 8

quit

R3:

interface g0/0/1

ip add 23.0.0.1 8

quit

步驟二:

配置ripv2

R1:

rip

version 2    //定義爲ripv2

network 12.0.0.0   //宣告網絡段

R2:

rip

version 2

network 12.0.0.0

network 23.0.0.0

R3:

rip 

version 2 

network 23.0.0.0

步驟三:

驗證各鏈路之間的互通性

R1:

ping 23.0.0.2

ping 23.0.0.1

R3:

ping 12.0.0.1

ping 12.0.0.2

====

ripv2支持兩種認證方式:明文(plain text)認證方式和MD5(Message Digest 5)密文認證方式。

在接口模式下,使用命令 rip authentication-mode simple huawei   配置爲明文認證方式,認證密碼爲huawei;

在接口模式下,使用命令 rip authentication-mode md5 usual huawei 配置爲md5認證方式,認證密碼爲huawei;

注意,鏈路之間的認證模式必須是同一種模式,否則無法接收到路由信息。

這裏採用md5認證方式。

步驟四:

R1:

interface g0/0/0

rip authentication-mode md5 usual cipher huawei


R2: 

interface g0/0/0

rip authentication-mode md5 usual cipher huawei

interface g0/0/1

rip authentication-mode md5 usual cipher huawei


R3:

interface g0/0/0

rip authentication-mode md5 usual cipher huawei 


配置完成後,退出接口模式,使用display current-configuration 查看配置信息驗證。



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章