配置多区域ospf

目录

  1. 前言

2.模拟器介绍

3.OSPF网络类型

4.配置

1.前言

cisco公司是计算机网络领域是先驱,同时目前依然是全球排名前列的公司,其参与了众 多标准的制定,在全球范围内有众多的客户群体。接下来我会使用cisco packet tracer

来配置多区域OSPF。

2.模拟器介绍

可以运行思科设备的模拟器主要有以下三款,分别是:

(1)cisco packet tracer

(2)GNS3

(3)EVE-NG

1. cisco packet tracer

2023年9月3日思科发布了cisco packet tracer8.2.1的版本。7.0以后的版本都需要

能登陆互联网,不能断网使用。目前教学中使用的6.5版本,这个版本不需要注册账号并登

陆互联网,可以单机使用,可以满足CCNA的教学工作。

cisco packet 8.2.1可以基于3个操作系统平台:Windows、Ubuntu、MacOS。

cisco packet 8.2.1在Windows系统中有32位也有64位,其它都是64位。

3.OSPF网络类型

OSPF网络类型共有4种:

(1)Point-to-Point点到点

(2)Point-to-MultiPoint Access点到多点

(3)BMA广播多路访问(已淘汰)

(4)NBMA非广播多路访问(已淘汰)

3.1 P2P

(1)P2P指的是在一段链路上只能链接两台网络设备的环境。

(2)典型的例子是PPP链路。当接口采用PPP封装时,OSPF在该接口上采用的缺省网络类型

为P2P。

3.2 BMA

(1)BMA也被称为Broadcast,指的是一个允许多台设备接的,支持广播的环境。

(2)典型的例子是Ethernet(以太网)。当接口采用Ethernet封装时,OSPF在该接口上 采用的缺省网络类型为BMA

  1. 实验 1.拓补图

2.配置过程

1.Router_LZ

Enable

configure terminal

no logging on

no ip domain-lookup

hostname Router_LZ

interface serial 0/0/0

Ip address 10.10.1.1 255.255.255.252

no shutdown

interface gigabitEthernet 0/0

no shutdown

Ip address 192.168.200.1 255.255.255.0

interface gigabitEthernet 0/1

Ip address 10.10.1.5 255.255.255.252

no shutdown

interface gigabitEthernet 0/2

no shutdown

Ip address 182.89.224.117 255.255.255.248

exit

interface loopback 0

ip address 1.1.1.1 255.255.255.255

exit

router ospf 1

router-id 1.1.1.1

network 1.1.1.1 0.0.0.0 area 0

network 182.89.224.117 0.0.0.7 area 0

network 192.168.200.0 0.0.0.255 area 0

network 10.10.1.1 0.0.0.3 area 0

network 10.10.1.5 0.0.0.3 area 0

passive-interface gigabitethernet 0/0

passive-interface gigabitethernet 0/2

end

write

copy running-config startup-config

2.Router_NN

enable

configure terminal

no logging on

no ip domain-lookup

hostname Router_NN

interface serial 0/0/0

Ip address 10.10.1.2 255.255.255.252

no shutdown

interface gigabitEthernet 0/1

Ip address 192.168.100.1 255.255.255.0

no shutdown

interface loopback 0

ip address 2.2.2.2 255.255.255.255

exit

router ospf 1

router-id 2.2.2.2

network 10.10.1.2 0.0.0.3 area 0

network 2.2.2.2 0.0.0.0 area 1

network 192.168.100.0 0.0.0.255 area 1

passive-interface gigabitethernet 0/1

end

write

copy running-config startup-config

3.Router_BH

enable

configure terminal

no logging on

no ip domain-lookup

hostname Router_BH

interface gigabitEthernet 0/1

Ip address 10.10.1.6 255.255.255.252

no shutdown

interface gigabitEthernet 0/2

Ip address 192.168.150.1 255.255.255.0

no shutdown

interface loopback 0

ip address 3.3.3.3 255.255.255.255

exit

router ospf 1

network 10.10.1.6 0.0.0.3 area 0

network 3.3.3.3 0.0.0.0 area 2

network 192.168.150.1 0.0.0.255 area 2

passive-interface gigabitethernet 0/2

end

write

copy running-config startup-config

2.配置过程

1.Router_LZ

Enable

configure terminal

no logging on

no ip domain-lookup

hostname Router_LZ

interface serial 0/0/0

Ip address 10.10.1.1 255.255.255.252

no shutdown

interface gigabitEthernet 0/0

no shutdown

Ip address 192.168.200.1 255.255.255.0

interface gigabitEthernet 0/1

Ip address 10.10.1.5 255.255.255.252

no shutdown

interface gigabitEthernet 0/2

no shutdown

Ip address 182.89.224.117 255.255.255.248

exit

interface loopback 0

ip address 1.1.1.1 255.255.255.255

exit

router ospf 1

router-id 1.1.1.1

network 1.1.1.1 0.0.0.0 area 0

network 182.89.224.117 0.0.0.7 area 0

network 192.168.200.0 0.0.0.255 area 0

network 10.10.1.1 0.0.0.3 area 0

network 10.10.1.5 0.0.0.3 area 0

passive-interface gigabitethernet 0/0

passive-interface gigabitethernet 0/2

end

write

copy running-config startup-config

2.Router_NN

enable

configure terminal

no logging on

no ip domain-lookup

hostname Router_NN

interface serial 0/0/0

Ip address 10.10.1.2 255.255.255.252

no shutdown

interface gigabitEthernet 0/1

Ip address 192.168.100.1 255.255.255.0

no shutdown

interface loopback 0

ip address 2.2.2.2 255.255.255.255

exit

router ospf 1

router-id 2.2.2.2

network 10.10.1.2 0.0.0.3 area 0

network 2.2.2.2 0.0.0.0 area 1

network 192.168.100.0 0.0.0.255 area 1

passive-interface gigabitethernet 0/1

end

write

copy running-config startup-config

3.Router_BH

enable

configure terminal

no logging on

no ip domain-lookup

hostname Router_BH

interface gigabitEthernet 0/1

Ip address 10.10.1.6 255.255.255.252

no shutdown

interface gigabitEthernet 0/2

Ip address 192.168.150.1 255.255.255.0

no shutdown

interface loopback 0

ip address 3.3.3.3 255.255.255.255

exit

router ospf 1

network 10.10.1.6 0.0.0.3 area 0

network 3.3.3.3 0.0.0.0 area 2

network 192.168.150.1 0.0.0.255 area 2

passive-interface gigabitethernet 0/2

end

write

copy running-config startup-config

多区域OSPF实验

  • 42
    点赞
  • 30
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

2301_81321308

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值