首页 > 其他 > 详细

配置静态路由并实现两台PC机之间的互通

时间:2018-05-19 16:49:13      阅读:519      评论:0      收藏:0      [点我收藏+]
一、实验环境

两个路由器和两台PC机,并且实现两台PC机之间的互通,如下图
技术分享图片

二、操作脚本

1.在路由器R1中

R1#config terminal

R1(config)#interface fastEthernet 0/0

R1(config-if)#ip add 12.0.0.1 255.255.255.0

R1(config-if)#no shut

R1(config-if)#int f0/1

R1(config-if)#ip add 13.0.0.1 255.255.255.0

R1(config-if)#no shut

R1(config-if)#exit

R1(config)#ip route 14.0.0.0 255.255.255.0 13.0.0.2

R1(config)#do show ip int b

R1(config)#do show ip route

2.在路由器R2中

R2#conf t

R2(config)#int f0/0

R2(config-if)#ip add 13.0.0.2 255.255.255.0

R2(config-if)#no shut

R2(config-if)#int f0/1

R2(config-if)#ip add 14.0.0.1 255.255.255.0

R2(config-if)#no shut

R2(config-if)#ex

R2(config)#ip route 12.0.0.0 255.255.255.0 13.0.0.1

R2(config)#do show ip int b

R2(config)#do show ip route

3.在VPCS中

VPCS[1]> ip 12.0.0.2 12.0.0.1

VPCS[1]> 2

VPCS[2]> ip 14.0.0.2 14.0.0.1

VPCS[2]> ping 12.0.0.2

三、实验操作步骤示图
1.在路由器R1中
技术分享图片
技术分享图片
2.在路由器R2中
技术分享图片
技术分享图片
3.在VPCS中
技术分享图片

四、实验结果

两台PC机之间能互相ping通。
技术分享图片

配置静态路由并实现两台PC机之间的互通

原文:http://blog.51cto.com/13643697/2118212

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!