OSPF 实验

要求
1、全网使用192.168.1.0/24
2、area 0区域手工设置R1为DR、R2为DBR
3、R3-R5之间使用密文认证方式
4、R1、R2、R5上配置环回接口,但是R5环回接口不能宣告进OSPF
5、全网可达

规划IP
192.168.1.0/24

192.168.1.00 000000 192.168.1.0/26 ---骨干
  
   192.168.1.00 0000 00--- 192.168.1.0/30  
   192.168.1.00 0001 00--- 192.168.1.4/30
        192.168.1.0/29 ---Area 0
   192.168.1.00 0010 00--- 192.168.1.8/30---ar3-ar4
   192.168.1.00 0011 00--- 192.168.1.12/30---ar4-ar5
   到192.168.1.00 1111 保留
 
192.168.1.01 000000 192.168.1.64/26---ar1环回
192.168.1.10 000000 192.168.1.128/26---ar2环回
192.168.1.11 000000 192.168.1.192/26---ar3环回

配置 先配置端口IP 和环回地址,配置完成后检查 ping测试
AR1
int g 0/0/0
ip add 192.168.1.1 29
int l 0 
ip add 192.168.1.65 26

AR1
ospf 1 router-id 1.1.1.1
area 0
network 192.168.1.1 0.0.0.0
network 192.168.1.65 0.0.0.0
ospf dr-priority 200

AR2
int g 0/0/0
ip add 192.168.1.2 29
int l 0 
ip add 192.168.1.129 26

AR2
ospf 1 router-id 2.2.2.2
area 0
network 192.168.1.2 0.0.0.0
network 192.168.1.129 0.0.0.0
ospf dr-priority 100

AR3
int g 0/0/0
ip add 192.168.1.3 29
int g 0/0/1
ip add 192.168.1.9 30

AR3
ospf 1 router-id 3.3.3.3
area 0
network 192.168.1.3 0.0.0.0
area 1
network 192.168.1.9 0.0.0.0

ospf authentication-mode md5 2 cipher 123456

AR4
int g 0/0/0
ip add 192.168.1.10 30
int g 0/0/1
ip add 192.168.1.13 30


ospf 1 router-id 4.4.4.4
area 1
network 192.168.1.10 0.0.0.0
network 192.168.1.13 0.0.0.0
int g 0/0/0
ospf authentication-mode md5 2 cipher 123456
int g 0/0/1
ospf authentication-mode md5 2 cipher 123456

AR5
int g 0/0/0
ip add 192.168.1.14 30
int l 0
ip add 192.168.1.129 26

AR5
ospf 1 router-id 5.5.5.5
area 1
network 192.168.1.14 0.0.0.0
default-route-advertise always
int g 0/0/0
ospf authentication-mode md5 2 cipher 123456

 配置完成后ping测试

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值