... (此处删节)
R2#sh ip ospf int s1
Serial 1 is up, line protocol is up
Internet Address 192.168.1.2/30, Area 0
Process ID 100, Router ID 10.1.2.1, Network Type POINT_TOJPOINT,Cost:64
Transmit Delay is 1 sec. State POINT_TO_POINT,
...(此处删节)
R2#
Term_Server>1
[Resuming connection 1 to r1 ... ]
R1#sh ip ospf int e0
Ethernet0 is up, line protocol is up
Internet Address 172.16.1.1/24, Area 0
Process ID 100, Router ID 192.168.1.1, Network Type BROADCAST,Cist:10
Transmit Delay is 1 sec. State DR, Priority 1
... (此处删节)
R1#
第2段:更改接口带宽以影响链路Cost
Term_Server>2
[Resuming connection 2 to r2 ... ]
R2#conft
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#int s0
R2(config-if)#bandwidth 64
R2(config-if)#int si
R2(config-if)#bandwidth 125
R2(config-if)#^Z
R2#sh ip route ospf
172.16.0.0/24 is subnetted, 2 subnets
O 172.16.1.0 [110/810] via 192.168.1.1, 00:00:09, Serial1
O 172.16.3.0 [110/1572] via 192.168.1.6, 00:00:09, Serial0
R2#sh int s0
Serial0 is up, line protocol is up
Hardware is HD64570
Internet address is 192.168.1.5/30
MTU 1500 bytes,BW 64 Kbit,DLY 20000 usec,
reliability 255/255, txioad 1/255, rxioad 1/255
... (此处删节)
R2#sh int s1
Serial1 is up, line protocol is up
Hardware is HD64570
Internet address is 192.168.1.2/30
MTU 1500 bytes,BW 125 Kbit,DLY 20000 usec,
reliability 255/255, txioad 1/255, rxioad 1/255
...(此处删节)
R2#sh ip ospf int s0
Serial0 is up, line protocol is up
Internet Address 192.168.1.5/30, Area 0
Process ID 100, Router ID 10.1.2.1, Network Type POINT_TO_POINT,Cost:1562
Transmit Delay is 1 sec. State POINT_TO_POINT,
... (此处删节)
R2#sh ip ospf int s1
Serial 1 is up, line protocol is up
Internet Address 192.168.1.2/30, Area 0
Process ID 100, Router ID 10.1.2.1, Network Type POINT_TO_POINT,Cost:800
Transmit Delay is 1 sec. State POINT_TO_POINT,
... (此处删节)
R2#
第3段:直接更改接口相关Cost
R2(config)#int s0
R2(config-if)#ip ospfcost 200
R2(config-if)#^Z
R2#sh ip ospf int s0
Serial0 is up, line protocol is up
Internet Address 192.168.1.5/30, Area 0
Process ID 100, Router ID 10.1.2.1, Network Type POINT_TO_POINT,Cost:200
Transmit Delay is 1 sec. State POINT_TO_POINT,
Timer intervals configured. Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:05
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 4 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 192.168.1.6
Suppress hello for 0 neighbor(s)
R2#sh ip route ospf
172.16.0.0/24 is subnetted, 2 subnets
O 172.16.1.0 [110/1572] via 192.168.1.1, 00:00:11, Serial1
O 172.16.3.0 [110/210] via 192.168.1.6, 00:00:11, Serial0
R2#
(1)在第1段开始时 , 首先在R2路由器上把S0接口加入到OSPF路由进程中 , 恢复全网的连通性 。
使用show ip route ospf命令查看OSPF路由表 , 会看到经由S0和S1的2条路由的Cost值均为74 。
这一结果是我们在以前的实验中没有注重到的 , 显然它不是我们所希望看到的 , 因为我们预期中的Cost值是S1比S0低 , 因为S1的带宽(125kbit/s)要比S0的带宽(64kbit/s)高 。
(2)通过发出show interface命令对S0和S1的带宽进行考察发现 , 它们的带宽(BW)均为1544kbit/s , 这是串行接口的缺省带宽 。可见路由器并不能根据时钟的设置而自动更改带宽的设置 。
推荐阅读
- 中国和泰国接壤,泰国和中国接壤不
- 小结 配置RIP和IGRP协议
- 三亚中学和三亚上外附哪个好
- 提拉米苏慕斯蛋糕配方比例 提拉米苏和慕斯蛋糕有区别吗
- 哪些措施可以解决城市内涝,医院如何防范和应对城市内涝
- 考研有年龄限制吗和次数限制吗,考研报名年龄限制
- 索贿和行贿有什么区别
- 白酒一级和优级区别 白酒一级和优级怎么区别
- vs和vscode的区别
- 氪金怎么读 氪金的读音和解释
