博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CISCO 动态路由(OSPF)
阅读量:4322 次
发布时间:2019-06-06

本文共 1672 字,大约阅读时间需要 5 分钟。

OSPF(开放式最短路径优先):是一个内部网关协议(Interior Gateway Protocol,简称IGP),用于在单一自治系统(autonomous system,AS)内决策路由。是对链路状态路由协议的一种实现,隶属内部网关协议(IGP),故运作于自治系统内部。OSPF是链路状态协议。

网络拓扑图

实验过程: 

R1配置如下:

R1>enable

R1#configure terminal
R1(config)#no ip domain-lookup
R1(config)#hostname R1
R1(config)#int f0/0
R1(config-if)#no shutdown
R1(config-if)#ip address 68.1.1.2 255.255.255.0
R1(config-if)#exit
R1(config)#int loopback 0  
R1(config-if)#ip address 7.7.7.7 255.255.255.0
R1(config-if)#exit
R1(config)#route ospf 1   #启用ospf协议
R1(config-router)#network 7.7.7.7 area 0
R1(config-router)#network 68.1.1.2 area 0
R1(config-router)#end
R1#write

R2配置如下:

R2>enable

R2#configure terminal
R2(config)#no ip domain-lookup
R2(config)#hostname R2
R2(config)#int f0/0
R2(config-if)#no shutdown
R2(config-if)#ip address 68.1.1.3 255.255.255.0
R2(config)#int f0/1
R2(config-if)#no shutdown
R2(config-if)#ip address 86.1.1.4 255.255.255.0
R2(config-if)#exit
R2(config)#int loopback 0
R2(config-if)#ip address 8.8.8.8 255.255.255.0
R2(config-if)#exit
R2(config)#route ospf 1
R2(config-router)#network 8.8.8.8 area 0    
R2(config-router)#network 68.1.1.3 area 0
R2(config-router)#network 86.1.1.4 area 0
R2(config-router)#end
R2#write 

配置R3如下:

R3>enable

R3#configure terminal
R3(config)#no ip domain-lookup
R3(config)#hostname R3
R3(config)#int f0/0
R3(config-if)#no shutdown
R3(config-if)#ip address 86.1.1.5 255.255.255.0
R3(config-if)#exit
R3(config)#int loopback 0
R3(config-if)#ip address 9.9.9.9 255.255.255.0
R3(config-if)#exit
R3(config)#route ospf 1
R3(config-router)#network 9.9.9.9 area 0    
R3(config-router)#network 86.1.1.5 area 0
R3(config-router)#end
R3#write

转载于:https://www.cnblogs.com/strive99/p/10164548.html

你可能感兴趣的文章
04代理,迭代器
查看>>
解决Nginx+PHP-FPM出现502(Bad Gateway)错误问题
查看>>
Java 虚拟机:互斥同步、锁优化及synchronized和volatile
查看>>
2.python的基本数据类型
查看>>
python学习笔记-day10-01-【 类的扩展: 重写父类,新式类与经典的区别】
查看>>
查看端口被占用情况
查看>>
浅谈css(块级元素、行级元素、盒子模型)
查看>>
Ubuntu菜鸟入门(五)—— 一些编程相关工具
查看>>
PHP开源搜索引擎
查看>>
12-FileZilla-响应:550 Permission denied
查看>>
ASP.NET MVC 3 扩展生成 HTML 的 Input 元素
查看>>
LeetCode 234. Palindrome Linked List
查看>>
编译HBase1.0.0-cdh5.4.2版本
查看>>
结构体指针
查看>>
迭代器
查看>>
Food HDU - 4292 (结点容量 拆点) Dinic
查看>>
Ubuntu安装Sun JDK及如何设置默认java JDK
查看>>
[经典算法] 排列组合-N元素集合的M元素子集
查看>>
Codeforces 279D The Minimum Number of Variables 状压dp
查看>>
打分排序系统漫谈2 - 点赞量?点赞率?! 置信区间!
查看>>