目录
- 前言
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.拓补图
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实验