OSPF高级配置
发表于:2025-02-24 作者:千家信息网编辑
千家信息网最后更新 2025年02月24日,OSPF高级配置-----------------实验所需要的协议---------------默认路由协议、静态路由协议、RIP协议、OSPF协议·----------------GNS3拓扑的详细
千家信息网最后更新 2025年02月24日OSPF高级配置
OSPF高级配置
-----------------实验所需要的协议---------------
默认路由协议、静态路由协议、RIP协议、OSPF协议
·
----------------GNS3拓扑的详细配置------------------
1、托出六台路由器,(右击选择Configure,选择Slots添加一个端口NM-1FE-TX,其中R3需要添加2个NM-1FE-TX,点击OK即可)
2、托出四台PC机(VPCS)
3、将R6的图标改为cloud(运营商)
·
-------------------详细操作--------------------
第一、进入端口配置地址
R1详细配置:
R1#conf tRI#(config)int f0/0R1#(config-if)ip add 192.168.10.1 255.255.255.0R1#(config-if)no shutR1#(config-if)int f0/1R1#(config-if)ip add 192.168.20.1 255.255.255.0R1#(config-if)no shutR1#(config-if)exR1#(config)ip router 0.0.0.0 0.0.0.0 192.168.20.2 //在末梢网络配置默认路由并指向下一条地址
·
R2详细配置:
R2#conf t R2(config)#int f0/1 R2(config-if)#ip add 192.168.20.2 255.255.255.0 R2(config-if)#no shut R2(config-if)#ex R2(config)#int f0/0 R2(config-if)#ip add 192.168.30.1 255.255.255.0 R2(config-if)#no shut R2(config-if)#ex R2(config)#router ospf 1 (//启用OSPF1进程) R2(config-router)#router-id 2.2.2.2 (//标注route-id 2.2.2.2) R2(config-router)#network 192.168.30.0 0.0.0.255 area 1 (//在area1种宣告30段落网段) R2(config-router)#ex R2(config)#ip route 192.168.10.0 255.255.255.0 192.168.20.1 R2(config)#router ospf 1 (//启用OSPF1进程) R2(config-router)#redistribute connected subnets (//注入直连网段20段落) R2(config-router)#redistribute static subnets (//注入静态网段10段落) R2(config-router)#ex
·
R3详细配置:
R3#conf tR3(config)#int f0/0R3(config-if)#ip add 192.168.30.2 255.255.255.0R3(config-if)#no shutR3(config-if)#int f0/1R3(config-if)#ip add 192.168.40.1 255.255.255.0R3(config-if)#no shutR3(config-if)#int f1/0R3(config-if)#ip add 12.0.0.1 255.255.255.0R3(config-if)#no shutR3(config-if)#int f2/0R3(config-if)#ip add 192.168.70.1 255.255.255.0R3(config-if)#no shutR3(config-if)#do show ip int bInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 192.168.30.2 YES manual up up FastEthernet0/1 192.168.40.1 YES manual up up FastEthernet1/0 12.0.0.1 YES manual up up FastEthernet2/0 192.168.70.1 YES manual up up R3(config-if)#ex R3(config)#ip route 0.0.0.0 0.0.0.0 12.0.0.2 (//配置默认路由并指向下一跳地址)R3(config)#router ospf 1 (//启用OSPF1进程)R3(config-router)#router-id 3.3.3.3 (//标注router-id 3.3.3.3)R3(config-router)#network 192.168.30.0 0.0.0.255 area 1 (//在area1中宣告30段落地址)R3(config-router)#network 192.168.40.0 0.0.0.255 area 0 (//在area0中宣告40段落地址)R3(config-router)#network 192.168.70.0 0.0.0.255 area 0 (//在area0中宣告70段落地址)R3(config-router)#default-information originate (//注入外部默认路由)R3(config-router)#ex
·
R4详细配置:
R4#conf t R4(config)#int f0/0 R4(config-if)#ip add 192.168.40.2 255.255.255.0 R4(config-if)#no shut R4(config-if)#int f0/1 R4(config-if)#ip add 192.168.50.1 255.255.255.0 R4(config-if)#no shut R4(config-if)#ex R4(config-router)#router rip (//配置rip协议) R4(config-router)#ver 2 R4(config-router)#no atuo-summary R4(config-router)#network 192.168.50.0 R4(config-router)#ex R4(config-router)#router ip R4(config-router)#redistribute ospf 1 metric 5 (//在OSPF协议中注入进程号和度量值) R4(config-router)#ex R4(config-router)#router ospf 1 (//启动OSPF1进程) R4(config-router)#router-id 4.4.4.4 (//标注router-id 4.4.4.4) R4(config-router)#network 192.168.40.0 0.0.0.255 area 0 R4(config-router)#redistribute rip subnets (//注入rip协议) R4(config-router)#ex
·
R5详细配置:
R5#conf tR5(config)#int f0/0R5(config)# ip add 192.168.50.2 255.255.255.0 R5(config)#no shutR5(config)#int f0/1R5(config)#ip add 192.168.60.1 255.255.255.0R5(config-if)#no shutR5(config-if)#ex (//配置rip协议)R5(config-if)#router ripR5(config-router)#ver 2R5(config-router)#no antuo-summaryR5(config-router)#network 192.168.50.0R5(config-router)#network 192.168.60.0R5(config-router)#ex
·
R6详细配置:
R6#conf tR6(config)#int f0/0R6(config-if)#ip add 12.0.0.2 255.255.255.0R6(config-if)#no shutR6(config-if)#exR6(config)#int f0/1R6(config-if)#ip add 13.0.0.1 255.255.255.0R6(config-if)#no shutR6(config-if)#exR6(config)#ip route 192.168.0.0 255.255.255.0 12.0.0.1 (//配置静态路由)
·
第二、进入PC端配置IP地址和网关
1、PC1:192.168.10.2 192.168.10.1
2、PC2:192.168.70.2 192.168.70.1
3、PC3:13.0.0.13 13.0.0.1
4、P4:192.168.60.2 192.169.60.1
第三、进入网络互通性测试
PC1> ip 192.168.10.2 192.168.10.1Checking for duplicate address...PC1 : 192.168.10.2 255.255.255.0 gateway 192.168.10.1PC1> ping 192.168.70.2192.168.70.2 icmp_seq=1 timeout192.168.70.2 icmp_seq=2 timeout84 bytes from 192.168.70.2 icmp_seq=3 ttl=61 time=93.680 ms84 bytes from 192.168.70.2 icmp_seq=4 ttl=61 time=93.717 ms84 bytes from 192.168.70.2 icmp_seq=5 ttl=61 time=93.722 msPC1> ping 13.0.0.1313.0.0.13 icmp_seq=1 timeout13.0.0.13 icmp_seq=2 timeout84 bytes from 13.0.0.13 icmp_seq=3 ttl=60 time=124.965 ms84 bytes from 13.0.0.13 icmp_seq=4 ttl=60 time=124.858 ms84 bytes from 13.0.0.13 icmp_seq=5 ttl=60 time=125.056 msPC1> ping 192.168.60.2192.168.60.2 icmp_seq=1 timeout84 bytes from 192.168.60.2 icmp_seq=2 ttl=59 time=156.210 ms84 bytes from 192.168.60.2 icmp_seq=3 ttl=59 time=157.946 ms84 bytes from 192.168.60.2 icmp_seq=4 ttl=59 time=166.144 ms84 bytes from 192.168.60.2 icmp_seq=5 ttl=59 time=156.238 msPC1>
配置
地址
路由
段落
进程
中宣
网段
静态
指向
端口
网络
选择
高级
图标
实验所
拓扑
末梢
网关
路由器
运营商
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
WINRAR下载软件开发
大陆汽车面试软件开发
武汉萌出网络技术
巨亨互联网信息科技
网络安全法对跨国软件的要求
dell服务器管理网配置
多个云服务器怎么批量管理
泰拉瑞亚进服务器要多久
湖南省衡阳市dns服务器云主机
宝马n20数据库
不安全的服务器不支持ftp
服务器升级用什么电脑
数据库审计系统价格
江阴软件开发零售价格
中国房地产协会房价数据库
数据库期末机考试题
数据库1130错误
网络安全护盾
软件开发的6个流程
opc服务器规格西门子
中国台湾企业软件开发java
福州微指尖软件开发有限公司
分子 光谱数据库
应用数据库的专业
网络安全信息金句
制作数据库表的结构图
苹果微信多开软件开发
服务器升级用什么电脑
荣耀5a无法连接服务器怎么办
亡语者服务器咋样