侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

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

2023-01-27 星期五 / 0 评论 / 0 点赞 / 56 阅读 / 2042 字

一、实验环境两个路由器和两台PC机,并且实现两台PC机之间的互通,如下图二、操作脚本1.在路由器R1中R1#config terminalR1(config)#interface fastEthern

.

一、实验环境

两个路由器和两台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通。

.

广告 广告

评论区