show ip route 查看当前路由表
配置静态路由:
ip route (Destnation Network IP) (NetMask) [NextHopIP | LocalInterface]
Destnation Network IP: 目标网络IP
NetMask: 目标网络子网掩码
NextHopIP: 下一跳IP
LocalInterface: 本地接口
1.0.0.0 2.0.0.0 3.0.0.0 4.0.0.0
----- s1 RA s0 >-------- s1 RB s0 --------- s1 RC s0 ------
1 1 2 1 2 1
RA:
ip route 4.0.0.0 255.0.0.0 2.0.0.2
ip route 4.0.0.0 255.0.0.0 s0
========================================================================
自治系统:
IGPs : 内部网关路由协议, 在一个自治系统内部去维护路由
RIPv1, RIPv2, IGRP, EIGRP, OSPF, ISIS
EGPs : 外部网关路由协议, 在维护自治系统间路由
BGP
========================================================================
管理距离:决定何种路由协议生成的路由会被路由器采纳.
管理距离越低越容易被路由器采纳.
========================================================================
选择路由的度量:
RIP: 是跳数做为选择最佳路由的度量值 会错误选择次佳的路由
IGRP: 根据带宽、延迟、可靠度、负载、MTU(最大传输单元)
========================================================================
距离矢量型路由协议:
1.通告的内容: 路由表的副本(copy)
2.通告的时间: 周期性
3.通告的对象: 直接连接的邻居路由器
4.通告的方式: 广播(RIPv1,IGRP)
规则机制:
1.定义最大数
2.水平分隔
3.路由毒化,毒性逆转
4.沉默计时器
5.触发更新
========================================================================
rip : Router information protocol
Rip V1 采用广播通告 广播地址: 255.255.255.255
1.以跳数作为度量
2.最多支持6条路径的均分负载(default set to 4)
3.周期性通告时间: 30s
Router rip 选择rip作为路由协议
network *.*.*.* 宣告接口
宣告接口:
1. 将此接口加入到rip进程中
2. 向其它的路由器通告此接口的网络
show ip protocols 查看RIP的相关信息
rip的管理距离:120
debug ip rip 调试RIP路由
clear ip route * 清除route表
========================================================================
Rip Version 2 :
ripv2使用是多播方式去通告网络, 多播地址:224.0.0.9
router rip
version 2 配置rip版本为version 2
no auto-summary 关闭掉自动的汇总
Ripv2 的认证 :
A(config)#key chain A 配置钥匙链 A
A(config-keychain)#key 1 配置钥匙 1
A(config-keychain-key)#key-string cisco 定义密码
A(config-keychain-key)#exit
A(config-keychain)#exit
A(config)#inte s 1 进入s 1的接口
A(config-if)#ip rip authentication key-chain A 选择A的钥匙链
A(config-if)#ip rip authentication mode md5 密文认证[@more@]
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/14252622/viewspace-1015694/
,如需转载,请注明出处,否则将追究法律责任。