TTEP.CN > 手机 >
Cisco路由器上的RIP偏移列表配置
Cisco路由器上的RIP偏移列表配置
在cisco 路由器上配置偏移列表来控制路由的跳数
在各个路由器上配置好rip后再配置偏移列表。
R3上的配置 www.ttep.cn
interface Ethernet0/3
ip address 172.16.34.3 255.255.255.0
half-duplex
!
router rip
version 2
offset-list 1 in 2 Ethernet0/1
offset-list 1 in 4 Ethernet0/3
network 172.16.0.0
network 192.168.23.0
no auto-summary
!
ip http server
no ip http secure-server
!
!
!
access-list 1 permit 1.1.1.1
!
www.ttep.cn
修改后路由表中将只保存最优路由。
R3#show ip route rip
R 192.168.12.0/24 [120/1] via 192.168.23.2, 00:00:12, Ethernet0/1
[120/1] via 172.16.34.1, 00:00:14, Ethernet0/3
1.0.0.0/32 is subnetted, 1 subnets
R 1.1.1.1 [120/4] via 192.168.23.2, 00:00:12, Ethernet0/1
将其中一个接口shut down,在使用命令:show ip route rip
R3(config)#int e0/1
R3(config-if)#shut
R3(config-if)#end
R3#show ip route rip
R 192.168.12.0/24 [120/1] via 172.16.34.1, 00:00:07, Ethernet0/3
1.0.0.0/32 is subnetted, 1 subnets
R 1.1.1.1 [120/5] via 172.16.34.1, 00:00:07, Ethernet0/3
在offset-list 中,“in”代表从接口学习路由。“out”代表从接口发布路由。
将可看出修改rip跳数成功。
www.ttep.cn
拓扑:
192.168.12.0/24 192.168.1.23.0/24
R1 .1 R2 .2 R3 .3
E0/0 E0/0 E0/1 E0/1
E0/3 E0/3
172.16.34.0/24
在cisco 路由器上配置偏移列表来控制路由的跳数
在各个路由器上配置好rip后再配置偏移列表。
R3上的配置 www.ttep.cn
interface Ethernet0/3
ip address 172.16.34.3 255.255.255.0
half-duplex
!
router rip
version 2
offset-list 1 in 2 Ethernet0/1
offset-list 1 in 4 Ethernet0/3
network 172.16.0.0
network 192.168.23.0
no auto-summary
!
ip http server
no ip http secure-server
!
!
!
access-list 1 permit 1.1.1.1
!
www.ttep.cn
修改后路由表中将只保存最优路由。
R3#show ip route rip
R 192.168.12.0/24 [120/1] via 192.168.23.2, 00:00:12, Ethernet0/1
[120/1] via 172.16.34.1, 00:00:14, Ethernet0/3
1.0.0.0/32 is subnetted, 1 subnets
R 1.1.1.1 [120/4] via 192.168.23.2, 00:00:12, Ethernet0/1
将其中一个接口shut down,在使用命令:show ip route rip
R3(config)#int e0/1
R3(config-if)#shut
R3(config-if)#end
R3#show ip route rip
R 192.168.12.0/24 [120/1] via 172.16.34.1, 00:00:07, Ethernet0/3
1.0.0.0/32 is subnetted, 1 subnets
R 1.1.1.1 [120/5] via 172.16.34.1, 00:00:07, Ethernet0/3
在offset-list 中,“in”代表从接口学习路由。“out”代表从接口发布路由。
将可看出修改rip跳数成功。
www.ttep.cn
拓扑:
192.168.12.0/24 192.168.1.23.0/24
R1 .1 R2 .2 R3 .3
E0/0 E0/0 E0/1 E0/1
E0/3 E0/3
172.16.34.0/24
- 上一篇:华为荣耀7i手机怎么样?华为荣耀7i手机评测
- 下一篇:如何设置二级路由
- 最近发表
- 赞助商链接