首页    新闻    下载    文档    论坛     最新漏洞    黑客教程    数据库    搜索    小榕软件实验室怀旧版    星际争霸WEB版    最新IP准确查询   
名称: 密码:      忘记密码  马上注册
网络知识 :: 网络知识

OSPF对外部路由的选路规则完全验证版


http://www.gipsky.com/
mes Roman?; mso-ascii-font-family: ?Times New Roman??>验证OSPF中对外部路由路由的选择规则



OSPF在选择外部路由的时候,遵循的原则是:

[1]O E1优于O E2

[2]在同样的情况下,Cost越小越优先

[3]在cost相同的情况下,选择到达ASBR最优的路径





下面来通过实验来验证该规则:

[案例1]当外部路由都是O E1的情况



基本配置:(注意ASBR的配置)

R1:

interface Loopback0

ip address 1.1.1.1 255.255.255.0

ip ospf network point-to-point

!

interface Serial1/0

ip address 12.1.1.1 255.255.255.0

!

interface Serial2/0

ip address 13.1.1.1 255.255.255.0

!

router ospf 1

redistribute rip subnets metric-type 1

network 12.1.1.0 0.0.0.255 area 0

!

router rip

version 2

network 13.0.0.0

distance 109(因为RIP的AD大于OSPF,所以重发布到OSPF中,会发生路由抖动,故将其改小,详解看等级三实验手册1.3)

no auto-summary

!

R2:

interface Loopback0

ip address 2.2.2.2 255.255.255.0

ip ospf network point-to-point

!

interface Serial1/0

ip address 24.1.1.2 255.255.255.0

!

interface Serial2/0

ip address 12.1.1.2 255.255.255.0

!

router ospf 1

network 12.1.1.0 0.0.0.255 area 0

network 24.1.1.0 0.0.0.255 area 0

!



R3:

interface Loopback0

ip address 3.3.3.3 255.255.255.0

ip ospf network point-to-point

!

interface Serial1/0

ip address 13.1.1.3 255.255.255.0

!

interface Serial2/0

ip address 35.1.1.3 255.255.255.0

!

router rip

version 2

network 3.0.0.0

network 13.0.0.0

network 35.0.0.0

no auto-summary

!



R4:

interface Loopback0

ip address 4.4.4.4 255.255.255.0

ip ospf network point-to-point

!

interface Serial1/0

ip address 45.1.1.4 255.255.255.0

!

interface Serial2/0

ip address 24.1.1.4 255.255.255.0

!

router ospf 1

network 24.1.1.0 0.0.0.255 area 0

network 45.1.1.0 0.0.0.255 area 1

!



R5:

interface Loopback0

ip address 5.5.5.5 255.255.255.0

ip ospf network point-to-point

!

interface Serial1/0

ip address 35.1.1.5 255.255.255.0

!

interface Serial2/0

ip address 45.1.1.5 255.255.255.0

!

router ospf 1

redistribute rip subnets metric-type 1

network 45.1.1.0 0.0.0.255 area 1

!

router rip

version 2

network 35.0.0.0

distance 109

no auto-summary

!本新闻共4页,当前在第1页 1 2 3 4
<< OSPF的数据结构 OSPF路由协议在CISCO路由器上的应用 >>
API:
gipsky.com& 安信网络
网友个人意见,不代表本站立场。对于发言内容,由发表者自负责任。

系统导航

 

Copyright © 2001-2010 安信网络. All Rights Reserved
京ICP备05056747号