作业相关
学习教程
总 结
链 接
表扬栏
   返回主页   后退          

静态路由设置:



静态路由必须写出每个路由器除直连网络外的所有网络包括不同VLAN
R0:3.0.0.0,4.0.0.0,6.0.0.0,8.0.0.0四个非直连网络
R1:1.0.0.0,2.0.0.0,8.0.0.0三个非直连网络
R2:1.0.0.0,2.0.0.0,3.0.0.0,4.0.0.0,5.0.0.0五个非直连网络

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname r0
r0(config)#conf t
%Invalid hex value
r0(config)#ip route 3.0.0.0 255.0.0.0 5.5.5.101
r0(config)#ip route 4.0.0.0 255.0.0.0 5.5.5.101
r0(config)#ip route 6.0.0.0 255.0.0.0 5.5.5.101
r0(config)#ip route 8.0.0.0 255.0.0.0 6.6.6.101
声明直连网络时必须至少有一组是连到当前路由器的直连接口同一网段,如上例中的5.5.5.101
r0(config)#^Z
r0#
%SYS-5-CONFIG_I: Configured from console by console

r0#sh ip route
Codes: C - connected, S - static, I - IGRP, 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 1.0.0.0/8 is directly connected, FastEthernet0/0.1
C 2.0.0.0/8 is directly connected, FastEthernet0/0.2
S 3.0.0.0/8 [1/0] via 5.5.5.101
S 4.0.0.0/8 [1/0] via 5.5.5.101
C 5.0.0.0/8 is directly connected, Serial2/0
S 6.0.0.0/8 [1/0] via 5.5.5.101
S 8.0.0.0/8 [1/0] via 6.6.6.101
r0#

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no route rip
Router(config)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#hostname R1
^
% Invalid input detected at '^' marker.

Router#CONF T
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#conf t
%Invalid hex value
R1(config)#ip route 1.0.0.0 255.0.0.0 5.5.5.100
R1(config)#ip route 2.0.0.0 255.0.0.0 5.5.5.100
R1(config)#ip route 8.0.0.0 255.0.0.0 6.6.6.101
R1(config)#

R2#conf
Configuring from terminal, memory, or network [terminal]? t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#no route rip
R2(config)#^Z
R2#
%SYS-5-CONFIG_I: Configured from console by console

R2#sh ip route
Codes: C - connected, S - static, I - IGRP, 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 6.0.0.0/8 is directly connected, Serial3/0
C 8.0.0.0/8 is directly connected, FastEthernet0/0
R2#
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#ip route 1.0.0.0 255.0.0.0 5.5.5.100
R2(config)#ip route 2.0.0.0 255.0.0.0 5.5.5.100
R2(config)#ip route 3.0.0.0 255.0.0.0 6.6.6.100
R2(config)#ip route 4.0.0.0 255.0.0.0 6.6.6.100
R2(config)#ip route 5.0.0.0 255.0.0.0 6.6.6.100
R2(config)#


2025促销:香港特价空间,最低仅需20元,可永久使用!
本站空间由 三维免费空间 友情提供