下例将外部距离修改为200,使其几乎不可信。如图6所示。路由器A
router ospf 1
redistribue ospf2 subnet
distance ospf external 200
!
router ospf 2
redistribute ospf subnet
distance ospf external 200
路由器B
router ospf 1
redistribute ospf 2 subnet
distance ospf external 200
!
router ospf 2
redistribute ospf 1 subnet
distance ospf external 200
按需路由选择上的OSPF示例
下面是按需要电路OSPF的配置,如图7所示。注意,按需要电路只定义在一边(路由器A上的BR10)。不需要要两边都配置。
图7 按需电路上的OSPF
路由器A
username RouterB password 7 060C1A2F47
isdn switch-type basic-5ess
ip routing
!
interface TokenRing0
ip address 140.10.20.7 255.255.255.0
no shut
!
interface BRI0
no cdp enable description connected PBX 1485
ip address 140.10.10.7 255.255.255.0
encapsulation ppp
ip ospf demand-circuit
dialer map ip 140.10.10.6 name RouterB broadcast 61484
dialer-group 1
ppp authentication chap
no shut
!
router ospf 100
network 140.10.10.0 0.0.0.255 area 0
network 140.10.20.0 0.0.0.255 area 0
!
dialer-list 1 protocol ip permit
路由器B
username RouterA password 7 04511E0804
isdn switch-type basic-5ess
ip routing
!
interface Ethernet0
ip address 140.10.60.6 255.255.255.0
no shut
!
interface BRI0
no cdp enable
description connected PBX 1484
ip address 140.10.10.6 255.255.255.0
encapsulation ppp
dialer map ip 140.10.10.7 name RouterA broadcast 61485
dialer-group 1
ppp authentication chap
no shut
!
router ospf 100
network 140.10.10.0 0.0.0.255 area 0
network 140.10.60.0 0.0.0.255 area 0
!
dialer-list 1 protocol ip permitL
SA组定步示例
下面将OSPF LSA 组定步修改为60秒:
router ospf
timers lsa-group-pacing 60
阻止LSA扩散示例
下例配置阻止OSPF LSA通过以太网口扩散到广播、非广播或点对点的可达网络。
interface ethernet 0
ospf database-filter all out
下例配置阻止OSPF LSA通过IP地址为1.2.3.4的邻居扩散到一对多的网络。
router ospf 109
neighbor 1.2.3.4 database-filter all out
忽略MOSPF LSA 包示例
下例配置路由器使其在接收MOSPF 信息包时抑制发送系统注册信息。
router ospf 109
ospf ignore lsa mospf
| 共8页: 上一页 [1] [2] [3] [4] [5] [6] [7] 8 | ||
|