OSPF基于端口和区域的认证实验

实验拓扑:

①划分区域

②划分网段

③配置环回口和接口ip

④配置ospf

⑤ping测试连通性

[r1]ping 10.0.34.4
  PING 10.0.34.4: 56  data bytes, press CTRL_C to break
    Reply from 10.0.34.4: bytes=56 Sequence=1 ttl=253 time=40 ms
    Reply from 10.0.34.4: bytes=56 Sequence=2 ttl=253 time=30 ms
    Reply from 10.0.34.4: bytes=56 Sequence=3 ttl=253 time=30 ms
    Reply from 10.0.34.4: bytes=56 Sequence=4 ttl=253 time=20 ms
    Reply from 10.0.34.4: bytes=56 Sequence=5 ttl=253 time=40 ms

  --- 10.0.34.4 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/32/40 ms
 

在area0配置区域认证:

[r1-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher 818818 

[r2-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher 818818

[r3-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher 818818

在R3和R4之间配置接口认证: 

[r3-GigabitEthernet0/0/2]ospf authentication-mode simple cipher 123456

[r4-GigabitEthernet0/0/2]ospf authentication-mode simple cipher 123456

OSPF的手工认证比RIP的手工认证多了一个KeyID,确保两端KeyID相同即可,

KeyID和cipher/plain相当于锁和钥匙,可以配置多套 

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值