最后更新:2022-05-11 16:26:27 手机定位技术交流文章
尝试使用基本单区域 OSPFv2 配置配置 。
拓扑
地址分配表
IP 地址 IP 子网罩默认网关设备接口
R1 G0/0 192.168.1.1 255.255.255.0 N/A
S0/0/0 (DCE) 192.168.12.1 255.255.255.252 N/A
S0/0/1 192.168.13.1 255.255.255.252 N/A
R2 G0/0 192.168.2.1 255.255.255.0 N/A
S0/0/0 192.168.12.2 255.255.255.252 N/A
S0/0/1 (DCE) 192.168.23.1 255.255.255.252 N/A
R3 G0/0 192.168.3.1 255.255.255.0 N/A
S0/0/0 (DCE) 192.168.13.2 255.255.255.252 N/A
S0/0/1 192.168.23.2 255.255.255.252 N/A
PC-A NIC 192.168.1.3 255.255.255.0 192.168.1.1
PC-B NIC 192.168.2.3 255.255.255.0 192.168.2.1
PC-C NIC 192.168.3.3 255.255.255.0 192.168.3.1
目标
构成部分1:基本联网和设备安装
第2步:设置并测试OSPF路线。
第3步:修改路由器ID分配
在第四部分中建立OSPF 被动界面
第3部分:OSPF计量变化
背景/场景
打开最短路径(OSPF)是IP网络链接国家路由协议。OSPFv2仅适用于IPv4网络。OSPFv3仅适用于IPv6网络。OSPF可以识别拖网的变化(例如链条的分解)。它在新的无环框架上迅速移动。它使用Dijkstra算法(即每条路线使用最短路径优先方法计算)。
在此练习中, 您将设置网络顶部, 修改路由器 ID 分配, 配置被动界面, tweak OSPF 量度, 并使用各种 CLI 命令来显示和评估 OSPF 路径信息, 使用 OSPFv2 路由创建Exercise, 您将设置网络顶部, 修改路由器 ID 分配, 配置被动界面, tweak OSPF 量度, 使用 OSPF2 路径显示并测试 OSPF 路径信息 。
N.B. Cisco IOS 版本15. Cisco 1941年2(4)M3(通用K9图像)的综合多业务路由器(ISR),用于CCNA亲手操作练习。还有其他几种路由器和思科IOS版本。根据模型和Cisco IOS版本,现有说明和产出可能不同于试验中显示的说明和产出。关于正确的接口标识,请见试验结束时的路由器界面总表。
N.B. 请检查路由器启动配置是否已经清除。 如果没有, 请联系教师 。
所需资源
3 路由器(支持Cisco IOS 15) 2(4)(4)M3 General 图像 Cisco 1941 或类似路由器)
3台个人电脑(运行Windows 7、Vista或XP,能够运行终端模拟软件,如Terra Terrance)
控制台电缆用于通过控制台端口配置 Cisco IOS 设备 。
泰特展示以太网和序列线。
构成部分1:基本联网和设备安装
第一部分要求您为个人电脑主机和路由器建立网络和基本设置。
步骤 1: 创建在上到下图中描述的网络 。
第2步:必要时,初始化和重新装载路由器。
第3步:设置路由器的基本设置。
禁用 DNS 搜索
b. 将装置的名称作为Tartao示范。
类被指定为特许 EXEC 密码 。
d. 指定Cisco为控制表和 vty 密码。
e. 我不确定您在说什么。 配置一个日间信息( MOTD) 短语, 提醒用户: 禁止未经授权访问 。
我不知道你在说什么 设置控制台线同步记录
抱歉, g. 配置地址分配表中地址的所有接口。
我不知道你在说什么 H. 这个命令将DCE所有序列端口的时钟频率 设定为128,00
我不知道你在说什么。此函数将运行配置复制到启动配置 。
第四步:设置个人电脑主机。
第五步:检查连接。
路由器应能够通过相互定位进行通信。此外,每台个人电脑应能够为其默认网关履行 ping 功能。如果OSPF路线未配置,计算机无法为其他个人电脑进行 ping 活动 。如果需要,请检验并排除故障。
第2步:设置并测试OSPF路线。
在第二部分,您将为网络中的所有路由器设置 OSPFv2 路线,然后检查路线表是否经过适当更新。在检查OSPF时,您必须在整个链条中配置 OSPF 标识符,以加强安全性。
步骤2:在R1上设置ODSF。
使用 R1 上的 root opf 命令使 OSPF 以全球配置模式生效 。
R1(config)# router ospf 1
应当指出,OSPF进程ID只与网络路由器有关。
b. on R1, 配置网络语句使用范围 ID0 。
R1(config-router)# network 192.168.1.0 0.0.0.255 area 0
R1(config-router)# network 192.168.12.0 0.0.0.3 area 0
R1(config-router)# network 192.168.13.0 0.0.0.3 area 0
第2步:在R2和R3上设置ODSF。
在 R2 和 R3 上, 使用 root opf 命令添加网络语句。 当在 R2 和 R3 上创建 OSPF 路径时, 下一门新闻会在 R1 上显示 。
R1#
00:22:29: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.23.1 on Serial0/0/0 from LOADING to FULL, Loading Done
R1#
00:23:14: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.23.2 on Serial0/0/1 from LOADING to FULL, Loading Done
R1#
第三步:检查OSPF邻居和路线数据。
发送显示 IP opf 邻居命令, 看看网络中每个路由器是否将其他路由器显示为邻居 。
R1# show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
192.168.23.2 0 FULL/ - 00:00:33 192.168.13.2 Serial0/0/1
192.168.23.1 0 FULL/ - 00:00:30 192.168.12.2 Serial0/0/0
b. 由显示 ip 路由命令组成,以确保所有网络在路由器图中可见。
R1# show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
C 192.168.1.0/24 is directly connected, GigabitEthernet0/0
L 192.168.1.1/32 is directly connected, GigabitEthernet0/0
O 192.168.2.0/24 [110/65] via 192.168.12.2, 00:32:33, Serial0/0/0
O 192.168.3.0/24 [110/65] via 192.168.13.2, 00:31:48, Serial0/0/1
192.168.12.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.12.0/30 is directly connected, Serial0/0/0
L 192.168.12.1/32 is directly connected, Serial0/0/0
192.168.13.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.13.0/30 is directly connected, Serial0/0/1
L 192.168.13.1/32 is directly connected, Serial0/0/1
192.168.23.0/30 is subnetted, 1 subnets
O 192.168.23.0/30 [110/128] via 192.168.12.2, 00:31:38, Serial0/0/0
[110/128] via 192.168.13.2, 00:31:38, Serial0/0/1
在路线列表中只显示 OSPF 路径时应该使用什么命令?
show ip route ospf
步骤4:测试OSPF协议参数。
要快速测试 OSPF 基本设置, 请使用 显示 ip 配置 命令 。信息中包括OSPF进程识别码、路由器识别码、路由器警报网络、接收最新邻居路由器和缺省管理距离(OSPF为110)。
R1# show ip protocols
*** IP Routing is NSF aware ***
Routing Protocol is “ospf 1”
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 192.168.13.1
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
192.168.1.0 0.0.0.255 area 0
192.168.12.0 0.0.0.3 area 0
192.168.13.0 0.0.0.3 area 0
Routing Information Sources:
Gateway Distance Last Update
192.168.23.2 110 00:19:16
192.168.23.1 110 00:20:03
Distance: (default is 110)
第5步:确认OSPF工艺细节。
显示 ip opf 命令可用于确定 OSPF 进程 ID 和路由器 ID 。 此命令显示 OSPF 区域信息以及先前的 SPF 算法计算时间 。
R1# show ip ospf
Routing Process “ospf 1” with ID 192.168.13.1
Start time: 00:20:23.260, Time elapsed: 00:25:08.296
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
Supports NSSA (compatible with RFC 3101)
Event-log enabled, Maximum number of events: 1000, Mode: cyclic
Router is not originating router-LSAs with maximum metric
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
Maximum wait time between two consecutive SPFs 10000 msecs
Incremental-SPF disabled
Minimum LSA interval 5 secs
Minimum LSA arrival 1000 msecs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Number of external LSA 0. Checksum Sum 0x000000
Number of opaque AS LSA 0. Checksum Sum 0x000000
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Number of areas transit capable is 0
External flood list length 0
IETF NSF helper support enabled
Cisco NSF helper support enabled
Reference bandwidth unit is 100 mbps
Area BACKBONE(0)
Number of interfaces in this area is 3
Area has no authentication
SPF algorithm last executed 00:22:53.756 ago
SPF algorithm executed 7 times
Area ranges are
Number of LSA 3. Checksum Sum 0x019A61
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
步骤6:重复检查OSPF接口设置。
发送显示 ip opf 接口短命令到启用的OSPF 接口上显示摘要信息 。
R1# show ip ospf interface brief
Interface PID Area IP Address/Mask Cost State Nbrs F/C
Se0/0/1 1 0 192.168.13.1/30 64 P2P 1/1
Se0/0/0 1 0 192.168.12.1/30 64 P2P 1/1
Gi0/0 1 0 192.168.1.1/24 1 DR 0/0
b. 播放启用OSPF的每个接口的完整清单。
c.
然后执行显示 ip opf 界面命令 。
R1# show ip ospf interface
Serial0/0/1 is up, line protocol is up
Internet Address 192.168.13.1/30, Area 0, Attached via Network Statement
Process ID 1, Router ID 192.168.13.1, Network Type POINT_TO_POINT, Cost: 64
Topology-MTID Cost Disabled Shutdown Topology Name
0 64 no no Base
Transmit Delay is 1 sec, State POINT_TO_POINT
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:01
Supports Link-local Signaling (LLS)
Cisco NSF helper support enabled
IETF NSF helper support enabled
Index 3/3, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 192.168.23.2
Suppress hello for 0 neighbor(s)
Serial0/0/0 is up, line protocol is up
Internet Address 192.168.12.1/30, Area 0, Attached via Network Statement
Process ID 1, Router ID 192.168.13.1, Network Type POINT_TO_POINT, Cost: 64
Topology-MTID Cost Disabled Shutdown Topology Name
0 64 no no Base
Transmit Delay is 1 sec, State POINT_TO_POINT
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:03
Supports Link-local Signaling (LLS)
Cisco NSF helper support enabled
IETF NSF helper support enabled
Index 2/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 192.168.23.1
Suppress hello for 0 neighbor(s)
GigabitEthernet0/0 is up, line protocol is up
Internet Address 192.168.1.1/24, Area 0, Attached via Network Statement
Process ID 1, Router ID 192.168.13.1, Network Type BROADCAST, Cost: 1
Topology-MTID Cost Disabled Shutdown Topology Name
0 1 no no Base
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 192.168.13.1, Interface address 192.168.1.1
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:01
Supports Link-local Signaling (LLS)
Cisco NSF helper support enabled
IETF NSF helper support enabled
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 0, maximum is 0
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
步骤7:核查端对端连接。
安装中的每台个人计算机都应能够对其他个人计算机进行 ping 操作。 必要时, 校验并清除故障 。
必须指出的是,个人计算机之间的平线操作可能需要使个人计算机防火墙失效。
第3步:修改路由器ID分配
OSPF路由器ID用于识别OSPF路线中每个路由器的独特身份。
OSPF root- id 命令指定的 IP 地址( 如果有的话)
路由器的回回地址, IP地址最高( 如果有的话)
路由器 IP 地址中最活跃的物理界面
由于三个路由器都没有配置路由器ID或环绕界面,每个路由器的路由器ID由其所有活动接口的最大IP地址决定。
在第3部分,您将使用回环地址修改OSPF路由器 ID 分布。您还将使用 root-ID 命令修改路由器 ID 。
第1步:使用回转地址,更改路由器编号。
将 IP 地址发送到 R1 的回溯 0 。
R1(config)# interface lo0
R1(config-if)# ip address 1.1.1.1 255.255.255.255
R1(config-if)# end
b. 在 R2 和 R3 上向 Loopback 0 发送IP 地址。 R2 有 IP 地址 32, R3 有 IP 地址 32。
c. 将运行设置保存到三个路由器的启动配置。
d. 需要重新装入路由器,才能将路由器编号更改为回环地址。在三个路由器上重新装入命令。 Enter 以确认重新装入。
教师应该知道, 明确的 ip opf 进程指令无法将路由器 ID 重置到回环地址。 重新装入路由器将会将路由器 ID 重置到回环地址 。
e. 我不知道你在说什么。一旦重新加载程序完成,路由器将发送显示IP协议命令,以显示新的路由器ID。
R1# show ip protocols
*** IP Routing is NSF aware ***
Routing Protocol is “ospf 1”
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 1.1.1.1
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
192.168.1.0 0.0.0.255 area 0
192.168.12.0 0.0.0.3 area 0
192.168.13.0 0.0.0.3 area 0
Routing Information Sources:
Gateway Distance Last Update
3.3.3.3 110 00:01:00
2.2.2.2 110 00:01:14
Distance: (default is 110)
我不确定你在说什么。 发送一个显示 ip opf 邻居命令, 显示邻居路由器路由器的路由器 ID 更改 。
R1# show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
3.3.3.3 0 FULL/ - 00:00:35 192.168.13.2 Serial0/0/1
2.2.2.2 0 FULL/ - 00:00:32 192.168.12.2 Serial0/0/0
R1#
步骤 2: 用 root- id 命令更改 R1 的路由器代号 。
指定在路由器 ID 中使用根代号命令的推荐技术。
向 R1 发送 root- id 命令以重新分配路由器 ID 。 注意显示 root- id 命令交付时显示的信件 。
R1(config)# router ospf 1
R1(config-router)# router-id 11.11.11.11
Reload or use “clear ip ospf process” command, for this to take effect
R1(config)# end
b. 将向您发送信息信息。为使修改生效,您必须重新装入路由器或使用明确的 ip opf 进程命令。在三个路由器上运行明确的 iP opf 进程指令 。要对重置认证信件作出反应, 请输入是 。然后按下 Enter 键。
c. 输入 R2 路由器编号,R3的路由器识别码应该设置好了最后,要重设OSPF路线, 请使用明确的 ip opf 进程指令 。
d. 发出显示 ip 协议指令,以核实 R1 的路由器代号已被更改 。
R1# show ip protocols
*** IP Routing is NSF aware ***
Routing Protocol is “ospf 1”
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 11.11.11.11
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
192.168.1.0 0.0.0.255 area 0
192.168.12.0 0.0.0.3 area 0
192.168.13.0 0.0.0.3 area 0
Passive Interface(s):
GigabitEthernet0/1
Routing Information Sources:
Gateway Distance Last Update
33.33.33.33 110 00:00:19
22.22.22.22 110 00:00:31
3.3.3.3 110 00:00:41
2.2.2.2 110 00:00:41
Distance: (default is 110)
e. 我不知道你是什么意思。 向 R1 发送显示 ip opf 邻居命令, 看看是否显示 R2 和 R3 的新路由器 ID 。
R1# show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
33.33.33.33 0 FULL/ - 00:00:36 192.168.13.2 Serial0/0/1
22.22.22.22 0 FULL/ - 00:00:32 192.168.12.2 Serial0/0/0
在第四部分中建立OSPF 被动界面
被动界面命令防止通过指定的路由器端口传送路由更新。他们不需要能够沟通 因为他们不需要接收动态线路交通这样做往往是为了尽量减少网络通信量。在第 4 部分,被动界面命令将用于将单一界面设置为被动界面。您还将建立OSSF。因此,默认情况下,路由器的所有接口都是被动接口。允许 OSPF 为指定接口发布 OSPF 路由通知 。
第1步:建立被动界面。
a.. sends a show ip opf 接口 g0/0 命令到 R1 。请记住, 计时器显示下次欢迎数据包的预计时间 。每10秒传送一个打招呼数据包。用于确定邻居是否在OSPF路由器之间被激活。
R1# show ip ospf interface g0/0
GigabitEthernet0/0 is up, line protocol is up
Internet Address 192.168.1.1/24, Area 0, Attached via Network Statement
Process ID 1, Router ID 11.11.11.11, Network Type BROADCAST, Cost: 1
Topology-MTID Cost Disabled Shutdown Topology Name
0 1 no no Base
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 11.11.11.11, Interface address 192.168.1.1
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:02
Supports Link-local Signaling (LLS)
Cisco NSF helper support enabled
IETF NSF helper support enabled
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 0, maximum is 0
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
b. 向 R1 接口 G0/0 发送被动界面命令,使其具有被动性。
R1(config)# router ospf 1
R1(config-router)# passive-interface g0/0
c. sends another show ip opf 接口 g0/0 命令,以确保 G0/0 仍然被动。
R1# show ip ospf interface g0/0
GigabitEthernet0/0 is up, line protocol is up
Internet Address 192.168.1.1/24, Area 0, Attached via Network Statement
Process ID 1, Router ID 11.11.11.11, Network Type BROADCAST, Cost: 1
Topology-MTID Cost Disabled Shutdown Topology Name
0 1 no no Base
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 11.11.11.11, Interface address 192.168.1.1
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
No Hellos (Passive interface)
Supports Link-local Signaling (LLS)
Cisco NSF helper support enabled
IETF NSF helper support enabled
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 0, maximum is 0
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
d. 向 R2 和 R3 发送显示 ip 根命令,以确定 / 24 网络路径是否仍然可用 。
R2# show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
C 2.2.2.2 is directly connected, Loopback0
O 192.168.1.0/24 [110/65] via 192.168.12.1, 00:58:32, Serial0/0/0
192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.2.0/24 is directly connected, GigabitEthernet0/0
L 192.168.2.1/32 is directly connected, GigabitEthernet0/0
O 192.168.3.0/24 [110/65] via 192.168.23.2, 00:58:19, Serial0/0/1
192.168.12.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.12.0/30 is directly connected, Serial0/0/0
L 192.168.12.2/32 is directly connected, Serial0/0/0
192.168.13.0/30 is subnetted, 1 subnets
O 192.168.13.0 [110/128] via 192.168.23.2, 00:58:19, Serial0/0/1
[110/128] via 192.168.12.1, 00:58:32, Serial0/0/0
192.168.23.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.23.0/30 is directly connected, Serial0/0/1
L 192.168.23.1/32 is directly connected, Serial0/0/1
第2步:使被动界面成为路由器的默认 。
向R1发送显示 IP opf 邻居命令, 看看R2是否被确定为OSPF 邻居 。
R1# show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
33.33.33.33 0 FULL/ - 00:00:31 192.168.13.2 Serial0/0/1
22.22.22.22 0 FULL/ - 00:00:32 192.168.12.2 Serial0/0/0
b. 在 R2 上设置一个被动界面默认命令,使所有OSPF接口的默认配置为被动。
R2(config)# router ospf 1
R2(config-router)# passive-interface default
R2(config-router)#
*Apr 3 00:03:00.979: %OSPF-5-ADJCHG: Process 1, Nbr 11.11.11.11 on Serial0/0/0 from FULL to DOWN, Neighbor Down: Interface down or detached
*Apr 3 00:03:00.979: %OSPF-5-ADJCHG: Process 1, Nbr 33.33.33.33 on Serial0/0/1 from FULL to DOWN, Neighbor Down: Interface down or detached
c. 将另一个显示 ip opf 邻居命令发送到 R1 。 定时器过期后, R2 不再显示为OSPF 邻居 。
R1# show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
33.33.33.33 0 FULL/ - 00:00:34 192.168.13.2 Serial0/0/1
d. 将显示 ip opf 界面 S0/0 命令发送到 R2, 以确定接口 S0/ 0 的OSPF 状态 。
R2# show ip ospf interface s0/0/0
Serial0/0/0 is up, line protocol is up
Internet Address 192.168.12.2/30, Area 0, Attached via Network Statement
Process ID 1, Router ID 22.22.22.22, Network Type POINT_TO_POINT, Cost: 64
Topology-MTID Cost Disabled Shutdown Topology Name
0 64 no no Base
Transmit Delay is 1 sec, State POINT_TO_POINT
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
No Hellos (Passive interface)
Supports Link-local Signaling (LLS)
Cisco NSF helper support enabled
IETF NSF helper support enabled
Index 2/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 0, maximum is 0
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
我不知道你在说什么 如果R2所有的接口都是被动的将不向你们提供路线信息。在此例中,R1和R3不应再作为网络/24线路存在。这可以通过显示 ip 根命令来验证 。
我不知道你在说什么。 R2 没有收到被动界面命令。 路由器会发送并接收OSPF路径更新。 在您输入命令后, 您将得到一条信息信息, 显示您已经创建了与 R1 的相邻连接 。
R2(config)# router ospf 1
R2(config-router)# no passive-interface s0/0/0
R2(config-router)#
*Apr 3 00:18:03.463: %OSPF-5-ADJCHG: Process 1, Nbr 11.11.11.11 on Serial0/0/0 from LOADING to FULL, Loading Done
抱歉, g. Sends another show IP root 并显示 R1 和 R3 的 Ipv6 opf 邻居命令, 并发现通往 24 网络的路径 。
O 192.168.2.0/24 [110/129] via 192.168.13.1, 00:00:04, Serial0/0/0
R3 连接网络的哪个界面? 0/ 0/ 0/ 0 序列
R3 / 24 网络的总成本是多少? 129
R2 显示为 R1 的 OSPF 邻居?
R2被列为OSPF的邻居R3?
此信息说明什么?
走度量值近的路由
我不知道你什么意思, h. 改变R2 S0/0/1上的接口, 让它通知OSPF路线。 请记录下面使用的命令 。
R2(config)# router ospf 1
R2(config-router)# no passive-interface s0/0/1
我不知道你在说什么。 向 R3 发送另一个显示 ip 根命令 。
O 192.168.2.0/24 [110/65] via 192.168.23.1, 00:00:00, Serial0/0/1
R3 连接网络的哪个界面? S0/ 0/1
R3/24的网络累积成本衡量标准是什么?
R2被归类为OSPF的邻居R3吗?
第3部分:OSPF计量变化
在第3部分,您将使用自动成本指令带宽指令、班达节指令和ip opf成本指令来调整OSPF的计量。
在第一部分中,所有DCE接口的时钟率应调整为128,00。
第1步:修改路由器的参照带宽。
OSPF的默认参考带宽为100兆b/s(快到网速度)。但是,目前大部分基础设施设备连接率超过100兆b/秒。由于OSPF成本衡量标准必须是整数,因此,传输速度等于或大于100兆b/秒的连接成本为1。以太网、千兆字节和以太网连接10千兆字节的快速通道以太网连接费用是一样的。因此,必须增加参考带宽的大小。支持连接速度超过每秒100立方公尺的网络。
a.. at..sends a show 界面指示到 R1 以显示 G0/0 界面的默认带宽值 。
R1# show interface g0/0
GigabitEthernet0/0 is up, line protocol is up
Hardware is CN Gigabit Ethernet, address is c471.fe45.7520 (bia c471.fe45.7520)
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full Duplex, 100Mbps, media type is RJ45
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 00:17:31, output hang never
Last clearing of “show interface” counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
279 packets output, 89865 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
1 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
注:如果个人计算机主机接口只能支持快速到团队速度,为 G0/0 选择的带宽可能不同于上文所述的带宽。如果个人计算机主机接口无法处理千兆字节速度,则带宽很可能为100,00 Kbit/sec。
b. 关于 R1, 发布显示 ip IP 根 OSpf 命令, 以发现到 24 网络的路径 。
R1# show ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
O 192.168.3.0/24 [110/65] via 192.168.13.2, 00:00:57, Serial0/0/1
192.168.23.0/30 is subnetted, 1 subnets
O 192.168.23.0 [110/128] via 192.168.13.2, 00:00:57, Serial0/0/1
[110/128] via 192.168.12.2, 00:01:08, Serial0/0/0
从R1到R24的网络总费用为R65。
c. 向R3发送显示 ip opf 接口指令,以了解G0/0线路成本。
R3# show ip ospf interface g0/0
GigabitEthernet0/0 is up, line protocol is up
Internet Address 192.168.3.1/24, Area 0, Attached via Network Statement
Process ID 1, Router ID 3.3.3.3, Network Type BROADCAST, Cost: 1
Topology-MTID Cost Disabled Shutdown Topology Name
0 1 no no Base
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 192.168.23.2, Interface address 192.168.3.1
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:05
Supports Link-local Signaling (LLS)
Cisco NSF helper support enabled
IETF NSF helper support enabled
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 0, maximum is 0
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
d.R1 接收显示 ip opf 界面 s0/0/1 命令 。
R1# show ip ospf interface s0/0/1
Serial0/0/1 is up, line protocol is up
Internet Address 192.168.13.1/30, Area 0, Attached via Network Statement
Process ID 1, Router ID 1.1.1.1, Network Type POINT_TO_POINT, Cost: 64
Topology-MTID Cost Disabled Shutdown Topology Name
0 64 no no Base
Transmit Delay is 1 sec, State POINT_TO_POINT
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:04
Supports Link-local Signaling (LLS)
Cisco NSF helper support enabled
IETF NSF helper support enabled
Index 3/3, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 192.168.23.2
Suppress hello for 0 neighbor(s)
这两个接口的总费用是24个网络(1+64=65)以下的R3线路的累计费用,从显示 ip 根命令的结果可以看出。
我不确定你指的是什么 自动成本指令波段100在R1上更改默认引用带宽参数。通过这样设置,10Gb/s接口的费用为1美元。1Gb/s接口的费用是10美元。100Mb/s接口费用100美元。
R1(config)# router ospf 1
R1(config-router)# auto-cost reference-bandwidth 10000
% OSPF: Reference bandwidth is changed.
Please ensure reference bandwidth is consistent across all routers.
我不知道你在说什么 在路由器R2和R3上
抱歉, 例如 Issues 一个新的显示 ip opf 接口命令, 以显示 R3 G0/ 0 和 R1 S0/ 0/1 的新价格 。
R3# show ip ospf interface g0/0
GigabitEthernet0/0 is up, line protocol is up
Internet Address 192.168.3.1/24, Area 0, Attached via Network Statement
Process ID 1, Router ID 3.3.3.3, Network Type BROADCAST, Cost: 10
Topology-MTID Cost Disabled Shutdown Topology Name
0 10 no no Base
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 192.168.23.2, Interface address 192.168.3.1
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:02
Supports Link-local Signaling (LLS)
Cisco NSF helper support enabled
IETF NSF helper support enabled
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 0, maximum is 0
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
如果连接到 G0/0 接口的设备不支持千兆字节速度,快速跟踪塔网速度(100兆字节/秒)的成本为100。
R1# show ip ospf interface s0/0/1
Serial0/0/1 is up, line protocol is up
Internet Address 192.168.13.1/30, Area 0, Attached via Network Statement
Process ID 1, Router ID 1.1.1.1, Network Type POINT_TO_POINT, Cost: 6476
Topology-MTID Cost Disabled Shutdown Topology Name
0 6476 no no Base
Transmit Delay is 1 sec, State POINT_TO_POINT
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:05
Supports Link-local Signaling (LLS)
Cisco NSF helper support enabled
IETF NSF helper support enabled
Index 3/3, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 192.168.23.2
Suppress hello for 0 neighbor(s)
我不知道你在说什么 H. Sends another show ip root OSpf 命令来显示路线上增加的累积收费(10+ 6476=6486)
注意: 如果连接到 G0/ 0 接口的设备不支持 GGBABT 速度, 则总成本与输出显示值不同。 例如, 如果 G0/ 0 运行速度为 Tainet (100Mb/s), 总成本为 6576 。
R1# show ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
O 192.168.2.0/24 [110/6486] via 192.168.12.2, 00:05:40, Serial0/0/0
O 192.168.3.0/24 [110/6486] via 192.168.13.2, 00:01:08, Serial0/0/1
192.168.23.0/30 is subnetted, 1 subnets
O 192.168.23.0 [110/12952] via 192.168.13.2, 00:05:17, Serial0/0/1
[110/12952] via 192.168.12.2, 00:05:17, Serial0/0/
将路由器的默认参考带宽从100修改为10 00,以影响所有线路的总费用100倍,但现在可以更准确地表示每个接口的链接和路线费用。
我不知道你在说什么。在三个路由器上, 自动成本参考带宽100 指令被用来将引用带宽重置为默认值。
R1(config)# router ospf 1
R1(config-router)# auto-cost reference-bandwidth 100
% OSPF: Reference bandwidth is changed.
Please ensure reference bandwidth is consistent across all routers.
为什么要改变OSPF默认参考带宽?
为了适当代表每个禁忌的连接和交通费用,
第2步:修改接口带宽。
大部分连锁公路默认情况下带宽测量将设定为 1544 Kbit (T1 设置) 。如果这不是真正的连锁速度如果您想要调整带宽设置以反映真实速度, 您必须首先更改带宽设置 。因此,OSPF准确计算了路线成本。带宽命令用于修改界面的带宽参数 。
注意: 许多人认为, Bandwidth 命令会改变连接的物理带宽或速度。 命令会改变OSPF用来确定线路成本的带宽测量, 但它不会改变链接的真实带宽( 速度 ) 。
a.. at..sends a show界面 s0/0 命令发送到 R1 以检查当前S0/0的带宽变化。 尽管接口的时钟频率和速度被设定为 128Kb/s, 但带宽仍然显示 1544Kb/s 。
R1# show interface s0/0/0
Serial0/0/0 is up, line protocol is up
Hardware is WIC MBRD Serial
Internet address is 192.168.12.1/30
MTU 1500 bytes, BW 1544 Kbit/sec, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set
Keepalive set (10 sec)
<省略部分输出>
b. 在 R1 上播放 ip 根 OSpf审查使用S0-0/0至网络/24线路的总费用。注意,该网络有两个等同的网络(128)。一个通过S0/0/0,另一个通过S0/0/0/1。
R1# show ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
O 192.168.3.0/24 [110/65] via 192.168.13.2, 00:00:26, Serial0/0/1
192.168.23.0/30 is subnetted, 1 subnets
O 192.168.23.0 [110/128] via 192.168.13.2, 00:00:26, Serial0/0/1
[110/128] via 192.168.12.2, 00:00:42, Serial0/0/0
c. 将S0/0/0接口带宽改为 128Kb/s的波段128命令问题。
R1(config)# interface s0/0/0
R1(config-if)# bandwidth 128
d. 重复显示 ip IP 根 OSpf 命令 。通过 S0/ 0/ 0 接口进入24个网络的路径不再显示在路径列表中 。这是因为最佳途径(即目前最廉价的路线是通过S0/0/1)。
R1# show ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
O 192.168.3.0/24 [110/65] via 192.168.13.2, 00:04:51, Serial0/0/1
192.168.23.0/30 is subnetted, 1 subnets
O 192.168.23.0 [110/128] via 192.168.13.2, 00:04:51, Serial0/0/1
e. 我不知道你在说什么. 发送显示 ip opf 接口短命令. S0/ 0 的费用从64 增加到 781, 这表明了链接速度的确切成本 。
R1# show ip ospf interface brief
Interface PID Area IP Address/Mask Cost State Nbrs F/C
Se0/0/1 1 0 192.168.13.1/30 64 P2P 1/1
Se0/0/0 1 0 192.168.12.1/30 781 P2P 1/1
Gi0/0 1 0 192.168.1.1/24 1 DR 0/0
我不确定您的意思。 将界面 S0/ 0/1 的带宽设为与 R1 上的 S0/ 0/ 0 相同的值 。
R1(config)# interface s0/0/1
R1(config-if)# bandwidth 128
我道歉,g. show ip 根OSPF再次,计算通向24号网络的两条线路的总费用。注意,互联网上仍有两个等价(845)。一个通过S0/0/0,另一个通过S0/0/0/1。
R1# show ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
O 192.168.3.0/24 [110/782] via 192.168.13.2, 00:00:09, Serial0/0/1
192.168.23.0/30 is subnetted, 1 subnets
O 192.168.23.0 [110/845] via 192.168.13.2, 00:00:09, Serial0/0/1
[110/845] via 192.168.12.2, 00:00:09, Serial0/0/0
说明如何估计R1至24和30网络的费用。
、
782=成本g0/0+成本0/0/1=1+781
R3费用0/0/1+R10/0/1=781+64=845
我不知道你在说什么 H. 向R3发送显示 IP 根OSpf 命令 。24人的费用总额仍列为65人。与区块费率指示相反,带宽指令对链的两端都有影响。
R3# show ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
O 192.168.1.0/24 [110/65] via 192.168.13.1, 00:30:58, Serial0/0/0
192.168.12.0/30 is subnetted, 1 subnets
O 192.168.12.0 [110/128] via 192.168.23.1, 00:30:58, Serial0/0/1
[110/128] via 192.168.13.1, 00:30:58, Serial0/0/0
我不懂你的意思 乐队128号指令被发送到 上层结构中所有剩余字符串界面
24号R1网络目前的总成本是多少? 为什么?
1562=781+781
第3步:调整路线收费。
默认情况下,OSPF根据带宽参数计算连接费用。但是,要手动配置链接, 请使用 ip opf 成本指令替换计算 。与班德维兹司令部相似ip opf 成本指令对其应用的链端没有影响。
向 R1 发送显示 ip 根 OSpf 命令 。
R1# show ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
O 192.168.2.0/24 [110/782] via 192.168.12.2, 00:00:26, Serial0/0/0
O 192.168.3.0/24 [110/782] via 192.168.13.2, 00:02:50, Serial0/0/1
192.168.23.0/30 is subnetted, 1 subnets
O 192.168.23.0 [110/1562] via 192.168.13.2, 00:02:40, Serial0/0/1
[110/1562] via 192.168.12.2, 00:02:40, Serial0/0/0
b. 在 R1 S0/0/1 接口上使用ip opf 1565 命令费用,1565 的费用大于 1562 至 R2 的累计路线收费。
R1(config)# int s0/0/1
R1(config-if)# ip ospf cost 1565
c. 向R1发送另一个显示 ip IP 根 OSpf 命令,以显示此修改对路线列表的影响。 R1 所有OSPF路线现在都经过R2。
R1# show ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
O 192.168.2.0/24 [110/782] via 192.168.12.2, 00:02:06, Serial0/0/0
O 192.168.3.0/24 [110/1563] via 192.168.12.2, 00:05:31, Serial0/0/0
192.168.23.0/30 is subnetted, 1 subnets
O 192.168.23.0 [110/1562] via 192.168.12.2, 01:14:02, Serial0/0/0
调整OSPF路线成本的最简单办法是使用ip opf成本来控制控制链路。除了改变基于带宽的收费之外,还有许多事情要做。由于各种原因,互联网管理员可以改变线路。例如,可能偏向于特定的服务提供者。相反,联系或路线的实际财务成本。
解释为什么直到第24个网络的R1路线现在通过R2路线。
我不走,因为先前的费用 是在R21562上方的R1563固定在R1563上方。
思考
一. 在使用OSPF协议的同时控制路由器身份证的分发有何意义?
用于确定是否在同意区域内的域内的唯一标记。
二、为什么这次试验没有考虑到DR/BDR选举程序?
广播是投票支持民主共和国的唯一手段。DR侧重于某个段落的概念。就路由器接口而言其中一个界面是 DR。 另一个界面是 BDR DR Other; 如果选择完成, 下一个界面是 BDR DR Other 。新的路由器 即便是博士的首要任务 也不会马上在网络上贴上医生的标签博士并不总是一条通往博士优先事项底部的道路。同理,Bdr并不总是DR优先环节中的第二个路由器。
三、使OSPF接口被动的目的是什么?
停止通过某一路由器港口提供路线更新。他们没有动态的路线交通,也不通过协议进行通信。减少LAN的流量,在配置 OSF 之前, 配置被动界面与被动界面命令 。因此,默认情况下,路由器的所有接口都是被动接口。最后,在指定的界面中,启用 Ospf 路径通知 。
路由器接口摘要表
路由器接口摘要
以太网接口 # 1 以太网接口 # 2 法律接口 # 1 法律接口 # 2 路由器模型
1800 Fast Ethernet 0/0 (F0/0) Fast Ethernet 0/1 (F0/1) Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
1900 Gigabit Ethernet 0/0 (G0/0) Gigabit Ethernet 0/1 (G0/1) Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
2801 Fast Ethernet 0/0 (F0/0) Fast Ethernet 0/1 (F0/1) Serial 0/1/0 (S0/1/0) Serial 0/1/1 (S0/1/1)
2811 Fast Ethernet 0/0 (F0/0) Fast Ethernet 0/1 (F0/1) Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
2900 Gigabit Ethernet 0/0 (G0/0) Gigabit Ethernet 0/1 (G0/1) Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
注意:学习如何设置路由器,检查接口以确定路由器的类型及其拥有的接口数量。我们无法包括所有路由器装置。下表列出了与Tainet和序列接口相结合的设备代号。本表格中没有其它类型的接口 。然而,真正的路由器可能有更多的接口。考虑ISDN BRI 接口。括号之间的字符串是商定的缩略语,要代表接口,请使用 Cisco IOS 命令。
第三部分:设备设置
路由器 R1
R1#sh run
Building configuration…
Current configuration : 1794 bytes
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
enable secret 4 06YFDUHH61wAE/kLkDq9BGho1QM5EnRtoyr8cHAUg.2
!
no aaa new-model
memory-size iomem 15
!
no ip domain lookup
ip cef
no ipv6 cef
multilink bundle-name authenticated
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
bandwidth 128
ip address 192.168.12.1 255.255.255.252
clock rate 128000
!
interface Serial0/0/1
bandwidth 128
ip address 192.168.13.1 255.255.255.252
ip ospf cost 1565
!
router ospf 1
router-id 11.11.11.11
passive-interface GigabitEthernet0/0
network 192.168.1.0 0.0.0.255 area 0
network 192.168.12.0 0.0.0.3 area 0
network 192.168.13.0 0.0.0.3 area 0
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
control-plane
!
!
banner motd ^C
Unauthorized Access is Prohibited!
^C
!
line con 0
password cisco
logging synchronous
login
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0
password cisco
login
transport input all
line vty 1 4
login
transport input all
!
scheduler allocate 20000 1000
!
end
路由器 R2
R2#sh run
Building configuration…
Current configuration : 1912 bytes
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
enable secret 4 06YFDUHH61wAE/kLkDq9BGho1QM5EnRtoyr8cHAUg.2
!
no aaa new-model
memory-size iomem 15
!
no ip domain lookup
ip cef
no ipv6 cef
multilink bundle-name authenticated
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address 192.168.2.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
bandwidth 128
ip address 192.168.12.2 255.255.255.252
!
interface Serial0/0/1
bandwidth 128
ip address 192.168.23.1 255.255.255.252
clock rate 128000
!
router ospf 1
router-id 22.22.22.22
passive-interface default
no passive-interface Serial0/0/0
no passive-interface Serial0/0/1
network 192.168.2.0 0.0.0.255 area 0
network 192.168.12.0 0.0.0.3 area 0
network 192.168.23.0 0.0.0.3 area 0
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
control-plane
!
banner motd ^C
Unauthorized Access is Prohibited!
^C
!
line con 0
password cisco
logging synchronous
login
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0
password cisco
login
transport input all
line vty 1 4
login
transport input all
!
scheduler allocate 20000 1000
!
end
路由器 R3
R3#sh run
Building configuration…
Current configuration : 1674 bytes
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
enable secret 4 06YFDUHH61wAE/kLkDq9BGho1QM5EnRtoyr8cHAUg.2
!
no aaa new-model
memory-size iomem 10
!
no ip domain lookup
ip cef
no ipv6 cef
multilink bundle-name authenticated
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address 192.168.3.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
bandwidth 128
ip address 192.168.13.2 255.255.255.252
clock rate 128000
!
interface Serial0/0/1
bandwidth 128
ip address 192.168.23.2 255.255.255.252
!
router ospf 1
router-id 33.33.33.33
network 192.168.3.0 0.0.0.255 area 0
network 192.168.13.0 0.0.0.3 area 0
network 192.168.23.0 0.0.0.3 area 0
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
control-plane
!
banner motd ^C
Unauthorized Access is Prohibited!
^C
!
line con 0
password cisco
logging synchronous
login
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
password cisco
login
transport input all
!
scheduler allocate 20000 1000
!
end
步骤图
第1步:为计算机设定 IP 地址和网关 。
(设置一个,两个相同)

第2步:如图二所示,配置路由器的序列端口,关闭电源,将其与网络连接,打开电源,并连接。

第3步:设置路由器(一对和两次重复)。
禁用 DNS 搜索
b. 将装置的名称作为Tartao示范。
类被指定为特许 EXEC 密码 。
d. 指定Cisco为控制表和 vty 密码。
e. 我不确定您在说什么。 配置一个日间信息( MOTD) 短语, 提醒用户: 禁止未经授权访问 。
我不知道你在说什么 设置控制台线同步记录
抱歉, g. 配置地址分配表中地址的所有接口。
我不知道你在说什么 H. 这个命令将DCE所有序列端口的时钟频率 设定为128,00
我不知道你在说什么。此函数将运行配置复制到启动配置 。



完成的顶层地图如下:
第四步:测试连通性
PC 指示路由器互相按键
在R1和R2路由器之间
第5步:在 R1R2R3 配置一个 OOSF 路径(另外两个重复,网络仅用零取代最后的pip 地址,而子网遮罩是一个区域)。
第六步:检查 OSPF 上的邻居信息 显示 ip opf 邻居
第7步:显示ip路线,以确保路线列表中的信息正确无误。
(仅显示 ip 路径 Ospf)

步骤 8: 测试OSpf 协议设置 。
步骤9:检查 Ospf 进程细节
第十步:
Pingbc pca 测试
步骤11:使用返回地址更改路由器代号(只需要其中之一)。
保存设置
输入命令重新装入重置地址。
步骤12:显示 IP 协议以查看新的路由器ID
发送显示 ip opf 邻居命令以显示邻居路由器路由器路由器的 ID 更改 。
步骤 13: 使用 root- id 命令来更改 R1 2 3 的路由器代号( 仅一个) 。

步骤14:显示邻居的路径
步骤 15: 设置被动 Ospf 接口

第十六步:b. 在 R2 上设置一个被动界面默认命令,使所有OSPF接口的默认配置为被动。

步骤17:输入 R2 上的无被动界面命令,以确保路由器发送和接收OSPF 路径更新。输入此命令后,您将得到一条信息消息,显示您已经创建了与
本文由 在线网速测试 整理编辑,转载请注明出处。