下面的例子完成了对ABR的任务建立。这些任务分成下列两大类:
基本OSPF配置
路由器分配
这个例子中的设置将在后面的说明中予以解释。
图5说明了网络地址范围以及对 接口的区域分配。
图5 OSPF配置示例的接口和区域说明
例子中的基本配置任务如下:
为以太网0~3接口配置地址范围
使每个接口的OSPF
为每个区域和网络设立OSPF认证密钥
分配链路状态尺度和设置其他OSPF接口配置选项
创立区域ID为36.0.0.0的stub区域(注意:尽管area路由器配置命令的authentication 和stub选项可通过独立的area命令项来指定,但仍可合并为一个area命令)。
指定主干区域(区域0)。
与重分配相关的配置任务如下
通过选项设置(包括metric-type,metric,tag和subnet),将IGRP和RIP重分配到OSPF。
将IGRP和OSPF重分配到RIP。
下面是OSPF配置的例子
interface ethernet 0
ip address 192.42.110.201 255.255.255.0
ip ospf authentication-key abcdefgh
ip ospf cost 10
!
interface ethernet 1
ip address 131.119.251.201 225.255.255.0
ip ospf authentication-key ijklmnop
ip ospf cost 20
ip ospf retransmit-interval 10
ip ospf transmit-delay 2
ip ospf priority 4
!
interface ethernet 3
ip address 36.56.0.201 255.255.0.0
ip ospf authentication-key ijklmnop
ip ospf cost 20
ip ospf dead-interval 80
OSPF 在网络131.119.0.0上:
router ospf 201
network 36.0.0.0 0.255.255.255 area 36.0.0.0
network 192.42.110.0 0.0.0.255 area 192.42.110.0
network 131.119.0.0 0.0.255.255 area 0
area 0 authentication
area 36.0.0.0 stub
area 36.0.0.0 authentication
area 36.0.0.0 default-cost 20
area 192.42.110.0 authentication
area 36.0.0.0 range 36.0.0.0 255.0.0.0
area 192.42.110.0 range 192.42.110.0 255.255.255.0
area 0 range 131.119.251.0 255.255.255.0
area 0 range 131.119.254.0 255.255.255.0
redistribute igrp 200 metric-type 2 metric 1 tag 200 subnets
redistribute rip metric-type 2 metric 1 tag 200
IGRP自治系统200在131.119.0.0上:
router igrp 200
network 131.119.0.0!
!RIP for 192.42.110!
router rip
network 192.42.110.0
redistribute igrp 200 metric 1
redistribute ospf 201 metric 1
| 共8页: 上一页 [1] [2] [3] [4] [5] 6 [7] [8] 下一页 | ||
|