OSPF度量值为:代价
RIP度量值为:跳数
EIGRP度量值为:5K(带宽、延迟)
- 缺省Metric为20
- 缺省Metric Type 为2
- 缺省不会重发子网路由
Route redistribution配置
只用在center路由上配
Eg:
- center(config)#router rip
center(config)#redistribution ospf 200 metric 31---->ospf翻译成rip
- center(config)#router ospf 200--->ospf后的值在不同路由上不同,选取center上的
center(config)#redistribution rip metric 20---->rip翻译成ospf,要互相翻译,metric默认值 20,可替换成subnets
- center(config)#router eigrp 100
center(config)#redistribute ospf 200 metric 1000 10 255 1 1500--->10: 255: 最大通过量 1: 容阻量 1500:频率最大调数
- 当出现only classful….报错时要加subnets
router eigrp 100
redistribute rip metric 1000 1 255 1 1500
redistribute ospf 200 metric 1000 10 255 1 1500
redistribute static metric 1000 10 255 1 1500
network 13.1.1.0 0.0.0.255
network 14.1.1.0 0.0.0.255
network 15.1.1.0 0.0.0.255
no auto-summary
!
router ospf 200
router-id 2.2.2.2
log-adjacency-changes
redistribute rip subnets
redistribute eigrp 100 subnets
redistribute static subnets
network 13.1.1.0 0.0.0.3 area 0
network 14.1.1.0 0.0.0.3 area 0
!
router rip
version 2
redistribute eigrp 100 metric 3
redistribute ospf 200 metric 1
redistribute static
network 13.0.0.0
no auto-summary
!
ip classless
ip route 16.1.2.0 255.255.255.0 16.1.1.2
!