ospf配置命令_OSPF接口认证及区域认证

实验拓扑图:

ffa6860c9006110a2a8400cabb852e4c.png

1、配置各台路由器的IP地址,并且使用Ping命令确认各路由器的直连口的互通性。

2、配置OSPF协议,并使用相关命令确认其正常工作。

3、查看R1和R2的路由表。

R1#show ip route

Gateway of last resort is not set

172.16.0.0/24 is subnetted, 2 subnets

O IA 172.16.1.0 [110/193] via 192.168.1.2, 00:01:02, Serial1/1

O IA 172.16.2.0 [110/193] via 192.168.1.2, 00:01:02, Serial1/1

10.0.0.0/24 is subnetted, 2 subnets

C 10.1.2.0 is directly connected, Loopback0

C 10.1.1.0 is directly connected, Loopback1

192.168.1.0/30 is subnetted, 3 subnets

O IA 192.168.1.8 [110/192] via 192.168.1.2, 00:01:12, Serial1/1

C 192.168.1.0 is directly connected, Serial1/1

O IA 192.168.1.4 [110/128] via 192.168.1.2, 00:05:47, Serial1/1

R1#

R2#show ip route

Gateway of last resort is not set

172.16.0.0/24 is subnetted, 2 subnets

O IA 172.16.1.0 [110/129] via 192.168.1.6, 00:09:16, Serial1/1

O IA 172.16.2.0 [110/129] via 192.168.1.6, 00:09:16, Serial1/1

10.0.0.0/24 is subnetted, 2 subnets

O 10.1.2.0 [110/65] via 192.168.1.1, 00:14:00, Serial1/0

O 10.1.1.0 [110/65] via 192.168.1.1, 00:14:00, Serial1/0

192.168.1.0/30 is subnetted, 3 subnets

O IA 192.168.1.8 [110/128] via 192.168.1.6, 00:09:26, Serial1/1

C 192.168.1.0 is directly connected, Serial1/0

C 192.168.1.4 is directly connected, Serial1/1

R2#

4、在R1上启用OSPF的明文认证,配置如下:

R1(config)#interface serial 1/1

R1(config-if)#ip ospf authentication

R1(config-if)#ip ospf authentication-key cisco

R1(config-if)#exit

5、配

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值