静态路由的配置实验报告

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

静态路由的配置实验报告

实验名称:静态路由的配置

实验目的:实现网络之间的全网互通

实验环境:2811路由器3台,主机两台,链接线缆若干。

项目需求:为方便操作,为三台路由器命名,依次为R1、R2、R3;

实验命令:R1(config)#ip route 目标网络子网掩码下一跳

R1#show ip route查看路由记录

R1#show running-config 查看设备当前运行的配置信息

实验步骤:PC0:IP地址192.168.1.1

子网掩码255.255.255.0

网关192.168.1.254

PC2:IP地址192.168.2.1

子网掩码255.255.255.0

网关192.168.2.254

R1:配置Router>en

Router#conf t.

Router(config)#host

Router(config)#hostname R1

R1(config)#int f0/1

R1(config-if)#ip add

R1(config-if)#ip address 192.168.1.254 255.255.255.0

R1(config-if)#no shutdown

R1(config-if)#exit

R1(config)#int f0/0

R1(config-if)#ip address 192.168.3.1 255.255.255.0

R1(config-if)#no shutdown

R1(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

R1(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.2

R1(config)#ip route 192.168.4.0 255.255.255.0 192.168.3.2

R1(config)#exit

R1#show 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 192.168.1.0/24 is directly connected, FastEthernet0/1

R2:配置Router>en

Router#conf t

Router#(config)#hostname R2

R2(config)#int f0/0

R2(config-if)#ip address 192.168.3.2 255.255.255.0

Router(config-if)#no shutdown

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R2(config-if)#exit

R2(config)#interface f0/1

R2(config-if)#ip address 192.168.4.1 255.255.255.0

R2(config-if)#no shutdown

R2(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

R2(config-if)#exit

R2(config)#ip route 192.168.2.0 255.255.255.0 192.168.4.2

R2(config)#ip route 192.168.1.0 255.255.255.0 192.168.3.1

R2(config)#exit

R2#show 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

S 192.168.1.0/24 [1/0] via 192.168.3.1

C 192.168.3.0/24 is directly connected, FastEthernet0/0

Router>en

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R3

R3(config)#interface f0/0

R3(config-if)#exit

R3(config)#interface f0/1

R3(config-if)#ip address 192.168.2.254 255.255.255.0

R3(config-if)#no shutdown

相关文档
最新文档