苏志辉技术博客

  IT博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  11 随笔 :: 5 文章 :: 1 评论 :: 0 Trackbacks
    ODR使用Cisco发现协议(CDP)来在分支(末节)路由器和中央路由器之间传输网络信息。
    ODR只适合于中央——分支拓扑结构。中央路由器需要获悉每台分支路路由器连接的网络,而分支路由器只需一条指向中央路由器的默认路由。
配置ODR:
       在中央路由器上,使用全局配置命令router odr配置ODR。
       在末节路由器上,无需配置任何IP路由选择协议。从ODR的角度看,没有配置任何路由选择协议的路由器自动被视为末节路由器。
实验:
1.实验拓扑图:
----172.16.2.1(F0/0) R2 (S1/1)192.168.12.2-----192.168.12.1(S1/1) R1 (S1/2)192.168.13.1-----192.168.13.3 (S1/2)R3 (F0/0)--172.16.3.1-- 

有拓扑图可知,R1为中央路由器,R2、R3分别为分支路由器。按照拓扑图搭建实验环境配置接口IP,然后在R1的全局模式下配置ODR就OK了。
使用sh ip route 来观察实验结果。(路由更新随着CDP更新的,默认情况下每60s一次)。观察实验结果可知,该ODR支持VLSM。
实验过程很简单
--------------------------------
R1:
interface Serial1/1
 ip address 192.168.12.1 255.255.255.0
!
interface Serial1/2
 ip address 192.168.13.1 255.255.255.0
!
router odr
!
------------------------------
R2:
interface FastEthernet0/0
 ip address 172.16.2.1 255.255.255.0
!
interface Serial1/1
 ip address 192.168.12.2 255.255.255.0
!
ip route 0.0.0.0 0.0.0.0 192.168.12.1
------------------------------
R3:
interface FastEthernet0/0
 ip address 172.16.3.1 255.255.255.0
!
interface Serial1/1
 ip address 192.168.13.3 255.255.255.0
!
ip route 0.0.0.0 0.0.0.0 192.168.13.1
--------------------------------
R1:
R1#show ip route
Codes: C - connected, S - static, 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
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

C    192.168.12.0/24 is directly connected, Serial1/1
C    192.168.13.0/24 is directly connected, Serial1/2
     172.16.0.0/24 is subnetted, 2 subnets
o       172.16.2.0 [160/1] via 192.168.12.2, 00:00:26, Serial1/1
o       172.16.3.0 [160/1] via 192.168.13.3, 00:00:29, Serial1/2
R1#

posted on 2009-05-11 16:04 苏志辉 阅读(449) 评论(0)  编辑 收藏 引用 所属分类: CCNP
只有注册用户登录后才能发表评论。