eNSP:OSPF

实验拓扑:

在这里插入图片描述#

实验内容:

配置三个区域:配置router-id,发布直连路由
区域0中的4太路由器配置验证
配置接口验证
配置被动接口,和PC相连的接口不参与ospf收敛,silent-interface命令用来禁止接口发送OSPF报文。禁止接口发送OSPF报文后,它将成为被动接口(Passive interface),不再发送Hello报文。

实验步骤:

配置IP地址:
sys AR2

interface GigabitEthernet0/0/0
ip address 192.168.25.2 255.255.255.252

interface GigabitEthernet0/0/1
ip address 192.168.12.2 255.255.255.252

interface GigabitEthernet0/0/2
ip address 192.168.24.1 255.255.255.252

sys AR3

interface GigabitEthernet0/0/0
ip address 192.168.13.2 255.255.255.252

interface GigabitEthernet0/0/1
ip address 192.168.36.1 255.255.255.252

interface GigabitEthernet0/0/2
ip address 192.168.34.1 255.255.255.252

sys AR4

interface GigabitEthernet0/0/0
ip address 192.168.34.2 255.255.255.252

interface GigabitEthernet0/0/1
ip address 192.168.24.2 255.255.255.252

interface GigabitEthernet0/0/2
ip address 192.168.46.1 255.255.255.252

sys AR6

interface GigabitEthernet0/0/0
ip address 192.168.36.2 255.255.255.252

interface GigabitEthernet0/0/1
ip address 192.168.46.2 255.255.255.252

interface GigabitEthernet0/0/2
ip address 192.168.2.1 255.255.255.0
配置OSPF:
AR1:

ospf 1
area 0.0.0.0
network 192.168.12.0 0.0.0.3
network 192.168.13.0 0.0.0.3
area 0.0.0.1
network 192.168.15.0 0.0.0.3

AR2:

ospf 1
area 0.0.0.0
network 192.168.12.0 0.0.0.3
network 192.168.24.0 0.0.0.3
area 0.0.0.1
network 192.168.25.0 0.0.0.3

AR3:

ospf 1
area 0.0.0.0
network 192.168.13.0 0.0.0.3
network 192.168.34.0 0.0.0.3

area 0.0.0.2
network 192.168.36.0 0.0.0.3

AR4:

ospf 1
area 0.0.0.0
network 192.168.24.0 0.0.0.3
network 192.168.34.0 0.0.0.3
area 0.0.0.2
network 192.168.46.0 0.0.0.3

AR5:

ospf 1
area 0.0.0.1
network 192.168.1.0 0.0.0.255
network 192.168.15.0 0.0.0.3
network 192.168.25.0 0.0.0.3

AR6:

ospf 1
area 0.0.0.2
network 192.168.2.0 0.0.0.255
network 192.168.36.0 0.0.0.3
network 192.168.46.0 0.0.0.3

配置区域验证
AR1-AR4:
ospf 1
area 0.0.0.0
authentication-mode simple plain 123456

配置接口验证:
AR1:

interface GigabitEthernet0/0/2
ospf authentication-mode simple plain zhbit
AR3:

interface GigabitEthernet0/0/0
ospf authentication-mode simple plain zhbit
配置被动接口:
AR5-AR6:

ospf 1
silent-interface GigabitEthernet0/0/2

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值