ITPub博客

首页 > IT基础架构 > 网络安全 > ccnp学习008--路由与交换(03ospf)

ccnp学习008--路由与交换(03ospf)

原创 网络安全 作者:newdayhope 时间:2006-03-08 16:49:04 0 删除 编辑

这会领导去开会了,我终于有时间再写点了。

一

1、ospf默认的网络类型为广播多路访问、非广播多路访问、和点对点网络。

点对点通常用于serial interface frame relay 或者 atm,没有DR或者BDR,通过发送多播包来交

广播多路访问它所有的临居路由都与DR或者BDR建立连接。

到DR的包用224.0.0.6来发送,DR到其它路由的包通过224.0.0.5来发送。其中优先级最高的为DR,次之为BDR。定义优先级为: ip ospf prioprity number number为1到255之间的数字,当数字为0的时候表示它既不是DR也不是BDR。

NBMA主要用于x.25 frame relay atm 它需要指定它的邻居。DR和DBR需要为全网状互联,have fully meshed.

frame relay topology 在端口上指定网络类型

#ip ospf network [broadcast|nonbroadcast|point-to-multipoint|point-to-multipoint nonbroadcast]

它的邻居关系必须为静态配置。

2、 下面是一个例子。

三个路由RA(140.140.1.1)分别和RB(140.140.1.2)、RC(140.140.1.3)相边,B与C之间并不互连。

routera(config)#router ospf 100

(config-router)#network 140.140.0.0 0.0.255.255 area 0

neighbor 140.140.1.2 prioprity 0

neighbor 140.140.1.3 prioprity 0

point-to-multipoint配置,这里的临里关系不用指定。

ROUTERA

#interface s0

(config-if)#encapsultion hdlc

#ip address 120.120.1.1 255.255.255.0

(config)#interface s1

(config-if)#ip address 140.140.1.1 255.255.255.0

#ip ospf network point-to-multipoint

ROUTERB

#interface s0

(config-if)#ip address 140.140.1.2 255.255.255.0

#encapsulation frame-relay

#ip ospf network point-to-multipoint

3、检查:debug ip ospf adj

4、大的OSPF网络要划分区域。边界路由器的配置。

端口上配置带宽 ip ospf cost value

(config-router)#auto-lost referce-bandwith(缺省为100M,超过100M的全为1,10M的10,1M的为100,所以超过100M的带宽一定要指定)

5、lsa类型。type 1 为router

type 2 为 network

type 3and4 summary

type 5 external

6、summay只能在ABR上做汇总

(config-router)#area area-id range address mask (abr上配置)

(config-router)#summary-address address mask [no-advertise][tag tag]

(asbr上配置)本身内部路由如果做了汇总就变成了ASBR的路由。

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/181629/viewspace-819071/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    379
  • 访问量
    13243023