OSPF 特殊区域的配置案例

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

上机报告

图1.1 实验拓扑图

一、配置stub区域

1、R1的配置代码

[R1]dis cu

#

version 5.20, Release8, Standard

#

sysname R1

#

domain default enable system

#

#

interface Ethernet0/0

port link-mode route

ip address 192.168.2.1 255.255.255.0

#

interface Ethernet0/0.1

vlan-type dot1q vid 1

ip address 202.168.0.1 255.255.255.0

#

interface Ethernet0/0.2

vlan-type dot1q vid 2

ospf 1 router-id 4.4.4.4

area 0.0.0.2

network 30.0.0.0 0.0.0.255

network 40.0.0.0 0.0.0.255

network 4.4.4.0 0.0.0.255

stub

#

[R4]

5、查看R1中的路由表信息

图 1.2 R1的路由信息查看R4上面未配置和配置特殊区域对比:

图1.3 未配置时的状态

图1.4 配置后的状态

任务二、配置totally stub区域

1、R3中的配置代码

#

ospf 1

area 0.0.0.1

network 20.0.0.0 0.0.0.255

area 0.0.0.2

network 30.0.0.0.0.0.0.255

stub no-summary

#

2、R4中的配置代码

#

ospf 1

area 0.0.0.2

network 30.0.0.0 0.0.0.255

network 40.0.0.0 0.0.0.255

stub no-summary

#

3、R4的路由信息

图 3.1 R1中的路由信息任务2 Nssa区域配置

图1.1 实验拓扑图

一、o spf的配置

注:ospf的配置中,只有R1的配置代码不一样,所以只需要改写R1的代码即可。

1、R1的配置代码

#

interface Ethernet0/0

port link-mode route

ip address 192.169.5.1 255.255.255.0

#

interface Ethernet0/0.1

vlan-type dot1q vid 1

ip address 192.169.6.1 255.255.255.0

#

interface Ethernet0/0.2

ip address 192.169.7.1 255.255.255.0

#

interface Ethernet0/0.3

vlan-type dot1q vid 3

ip address 192.169.8.1 255.255.255.0

#

interface Ethernet0/0.4

ip address 192.169.9.1 255.255.255.0

#

interface Ethernet0/1

port link-mode route

#

interface Serial1/0

link-protocol ppp

ip address 10.0.3.2 255.255.255.0

#

interface LoopBack0

ip address 1.1.1.1 255.255.255.255

#

ospf 1

area 0.0.0.2

network 10.0.3.0 0.0.0.255

network 192.169.5.0 0.0.0.255

network 192.169.6.0 0.0.0.255

network 192.169.7.0 0.0.0.255

network 192.169.8.0 0.0.0.255

network 192.169.9.0 0.0.0.255

#

2、R1的路由信息

图 2.1 R1的路由信息

图2.1 R4上面的LSDB表

图2.2 R4的路由信息

相关文档
最新文档