Cisco 路由器1.5作业 OSPF

235 阅读1分钟

要求


使用动态路由OSPF协议实现全网联通

在这里插入图片描述

\

一、基础配置


1、路由器1配置

en
conf t
int f0/0
ip add  192.168.1.18  255.255.255.252
no shut
exit

int s0/0/0
ip add  192.168.0.233   255.255.255.252
clock rate 64000
no shut
exit

int s0/1/1
ip add  192.168.0.229   255.255.255.252
no shut
exit

\

2、路由器2配置

en
conf t
int f0/0
ip add  192.168.1.21  255.255.255.252
no shut
exit

int s0/0/0
ip add  192.168.0.234   255.255.255.252
no shut
exit

int s0/1/0
ip add  192.168.0.238   255.255.255.252
clock rate 64000
no shut
exit

\

3、路由器3配置

en
conf t
int f0/0
ip add  192.168.1.26  255.255.255.252
no shut
exit

int s0/1/1
ip add  192.168.0.230   255.255.255.252
clock rate 64000
no shut
exit

int s0/1/0
ip add  192.168.0.237   255.255.255.252
no shut
exit

\

4、路由器4配置

en
conf t
int f0/0
ip add  192.168.1.17  255.255.255.252
no shut
exit

int f0/1
ip add  172.16.149.254    255.255.255.0
no shut
exit

\

5、路由器5配置

en
conf t
int f0/0
ip add  192.168.1.22  255.255.255.252
no shut
exit

int f0/1
ip add  172.16.150.254    255.255.255.0
no shut
exit

\

6、路由器6配置

en
conf t
int f0/0
ip add  192.168.1.25  255.255.255.252
no shut
exit

int f0/1
ip add  172.16.151.254    255.255.255.0
no shut
exit

\

二、OSPF配置


1、路由器1配置

en
conf t
router ospf  149
router-id   0.0.0.1
network  192.168.1.16    0.0.0.3   area  149
network  192.168.0.232    0.0..0.3   area  149
network  192.168.0.228    0.0.0.3   area  149

\

2、路由器2配置

en
conf t
router ospf  149
router-id   0.0.0.2
network  192.168.1.20    0.0.0.3   area  149
network  192.168.0.232    0.0..0.3   area  149
network  192.168.0.236    0.0.0.3   area  149

\

3、路由器3配置

en
conf t
router ospf  149
router-id   0.0.0.3
network  192.168.1.24    0.0.0.3   area  149
network  192.168.0.236    0.0..0.3   area  149
network  192.168.0.228    0.0.0.3   area  149

\

4、路由器4配置

en
conf t
router ospf  149
router-id   0.0.0.4
network  192.168.1.16    0.0.0.3   area  149
network  172.16.149.0    0.0.0.255   area  149

\

5、路由器5配置

en
conf t
router ospf  149
router-id   0.0.0.5
network  192.168.1.20    0.0.0.3   area  149
network  172.16.150.0    0.0.0.255   area  149

\

6、路由器6配置

en
conf t
router ospf  149
router-id   0.0.0.1
network  192.168.1.24    0.0.0.3   area  149
network  172.16.151.0    0.0.0.255   area  149

\

三、测试联通