您所在的位置: 首页 > 组网建网 > 路由技术 > 路由器设置 >

OSPF配置示例(2)

http://network.51cto.com  2005-11-08 18:37    51cto.com整理  我要评论(0)
  • 摘要:本文涵盖了OSPF配置的诸多示例
  • 标签:配置
OSPF一对多接口广播示例

下例为广播形式的一对多接口网络配置:
interface Serial 0
ip address 10.0.1.1 255.255.255.0
encapsulation frame-relay
ip ospf cost 100
ip ospf network point-to-multipoint
frame-relay map ip 10.0.1.3 202 broadcast
frame-relay map ip 10.0.1.4.203 broadcast
frame-relay map ip 10.0.1.5 204 broadcast
frame-relay local-dlci 200
!
router ospf 1
network 10.0.1.0 0.0.0.255 area 0
neighbor 10.0.1.5 cost 5
neighbor 10.0.1.4 cost 10

下例显示的是10.0.1.3上的邻居配置:
interface serial 0
ip address 10.0.1.3 255.255.255.0
ip ospf network point-to-multipoint
encapsulation frame-relay
frame-relay local-dlci 301
frame-relay map ip 10.0.1.1 300 broadcast
no shut
!
router ospf 1
network 10.0.1.0 0.0.0.255 area 0
上面第一个配置中的邻居的输出显示类似如下:
Router# show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface
4.1.1.1 1 FULL/ - 00:01:50 10.0.1.5 Serial0
3.1.1.1 1 FULL/ - 00:01:47 10.0.1.4 Serial0
2.1.1.1 1 FULL/ - 00:01:45 10.0.1.3 Serial0

上面第一个配置中的路由信息类似如下:
Router# show ip route
Codes: Connected, S-static, I-IGRP, R-RIP, M-mobile, B-BGP D-EIGRP, EX-EIGRP external, O-OSPF, IA-OSPF inter area

N1-OSPF NSSA external type 1, N2-OSPF NSSA external type 2
E1-OSPF external type 1, E2-OSPF external type 2, E-EGP i-IS-IS, L1-IS-IS level-1, L2-IS-IS level-2, *-candidate defaultU-per-user static route, o-ODR
Gateway of last resort is not set
C 1.0.0.0/8 is directly connected, Loopback0
10.0.0.0/8 is variably subnetted,4 subnets, 2 masks
10.0.1.3/32 [110/100] via 10.0.1.3, 00:39:08, Serial0
C 10.0.1.0/24 is directly connected, Serial0
10.0.1.5/32 [110/5] via 10.0.1.5, 00:39:08, Serial0
10.0.1.4/32 [110/10] via 10.0.1.4, 00:39:08, Serial0

OSPF一对多非广播示例下例为非广播形式的一对多网络配置: interface Serial0

OSPF一对多非广播示例下例

为非广播形式的一对多网络配置:
interface Serial0

ip address 10.0.1.1 255.255.255.0
ip ospf network point-to-multipointnon-broadcast
encapsulation frame-relay

no keepalive
frame-relay local-dlci 200
frame-relay map ip 10.0.1.3 202
frame-relay map ip 10.0.1.4 203
frame-relay map ip 10.0.1.5 204
no shut

!
router ospf 1
network 10.0.1.0 0.0.0.255 area 0
neighbor 10.0.1.3 cost 5
neighbor 10.0.1.4 cost 10
neighbor 10.0.1.5.cost 15

下例是另一端路由器上的配置:

interface Serial9/2
ip address 10.0.1.3 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint non-broadcast

no ip mroute-cache
no keepalive
no fair-queue
frame-relay local-dlci 301
frame-relay map ip 10.0.1.1 300

no shut
!
router ospf 1
network 10.0.1.0
0.0.0.255 area 0

上面第一个配置中的邻居的输出显示类似如下:
Router# show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface
4.1.1.1 1 FULL/ - 00:01:52 10.0.1.5 Serial0
3.1.1.1 1 FULL/ - 00:01:52 10.0.1.4 Serial0
2.1.1.1 1 FULL/ - 00:01:52 10.0.1.3 Serial0


共8页: 上一页 [1] 2 [3] [4] [5] [6] [7] [8] 下一页
【内容导航】
XenDesktop server 2.0安装配置指南
Ubuntu安装配置专题频道
主流品牌防火墙配置
华为路由器配置
Linux/Solaris服务器的安全配置
 
 验证码: (点击刷新验证码)   匿名发表
  • Linux命令详解手册

  • 作者:Christopher Negus Francois Caen
  • 本书出自多本Linux畅销书作者Negus之手,他以多年实践经验为基础,且从大多数系统管理员的日常工作需求出发,分门别类、细致入..
Copyright©2005-2009 51CTO.COM 版权所有