三台路由器两台PC的网络配置

这篇具有很好参考价值的文章主要介绍了三台路由器两台PC的网络配置。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

目录

一、拓扑图

二、路由器配置

 R0路由器配置

R1路由器配置

R1路由器配置

三、检查路由器未知路由条目

R0路由器

R1路由器

R2路由器

四、添加路由器未知条目

R0路由器

R1路由器

R2路由器

五、调试

PC0到PC1是否能ping通

PC1到PC0是否能ping通


一、拓扑图

三台路由器和两台pc间的连接,网络,智能路由器,计算机网络

二、路由器配置

 R0路由器配置

Router>en(进入特权模式

Router#conf t(进入全局配置模式

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

Router(config)#int f0/1(进入R0路由器的0/1接口

Router(config-if)#ip add(简写按Tab

Router(config-if)#ip address 192.168.1.254 255.255.255.0(对R1路由器0/1接口配置ip地址

Router(config-if)#ex(退出特权、配置模式

Router(config)#int f0/0(继续进入0/0接口

Router(config-if)#ip add

Router(config-if)#ip address 192.168.2.1 255.255.255.0(对R1路由器0/0接口配置ip地址

Router(config-if)#end(返回特权模式

Router#

%SYS-5-CONFIG_I: Configured from console by console

Router#

Router>en

Router#conf t

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

Router(config)#int f0/0

Router(config-if)#no shut(激活f0/0接口

Router(config-if)#

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

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

Router(config-if)#ex

Router(config)#int f0/1

Router(config-if)#no shut(激活f0/1接口

R1路由器配置

Router>en

Router#conf t

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

Router(config)#int f0/0

Router(config-if)#ip add

Router(config-if)#ip address 192.168.2.2 255.255.255.0

Router(config-if)#ex

Router(config)#int f0/1

Router(config-if)#ip add

Router(config-if)#ip address 192.168.3.1 255.255.255.0

Router(config-if)#end

Router#

%SYS-5-CONFIG_I: Configured from console by console

Router#conf t

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

Router(config)#int f0/1

Router(config-if)#no shut(激活f0/1接口

Router(config-if)#

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

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

Router(config-if)#ex

Router(config)#int f0/0

Router(config-if)#no shut(激活f0/0接口

Router(config-if)#

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

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

R1路由器配置

Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int f0/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.3.2 255.255.255.0
Router(config-if)#ex
Router(config)#int f0/1
Router(config-if)#ip add
Router(config-if)#ip address 192.168.4.254 255.255.255.0
Router(config-if)#end
Router#

Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int f0/1
Router(config-if)#no shut(激活f0/1接口

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

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

Router(config-if)#ex
    
Router(config)#int f0/0
Router(config-if)#no shut(激活f0/0接口

三、检查路由器未知路由条目

R0路由器

Router(config-if)#end

Router#

%SYS-5-CONFIG_I: Configured from console by console

Router#show ip route(检查路由器R0已知的路由条目

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(已知条目

C 192.168.2.0/24 is directly connected, FastEthernet0/0(已知条目

R1路由器

Router(config-if)#end

Router#

%SYS-5-CONFIG_I: Configured from console by console

Router#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.2.0/24 is directly connected, FastEthernet0/0(已知条目

C 192.168.3.0/24 is directly connected, FastEthernet0/1(已知条目

R2路由器

Router(config-if)#end

Router#

%SYS-5-CONFIG_I: Configured from console by console

Router#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.3.0/24 is directly connected, FastEthernet0/0(已知条目

C 192.168.4.0/24 is directly connected, FastEthernet0/1(已知条目

四、添加路由器未知条目

R0路由器

Router#conf t

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

Router(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.2(添加未知路由条目和下一跳地址

Router(config)#ip route 192.168.4.0 255.255.255.0 192.168.2.2(添加未知路由条目和下一跳地址

Router(config)#ex

Router#

%SYS-5-CONFIG_I: Configured from console by console

Router#

R1路由器

Router#conf t

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

Router(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1(添加未知路由条目和下一跳地址

Router(config)#ip route 192.168.4.0 255.255.255.0 192.168.3.2(添加未知路由条目和下一跳地址

Router(config)#ex

Router#

%SYS-5-CONFIG_I: Configured from console by console

R2路由器

Router#conf t

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

Router(config)#ip route 192.168.1.0 255.255.255.0 192.168.3.1(添加未知路由条目和下一跳地址

Router(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.1(添加未知路由条目和下一跳地址

Router(config)#ex

Router#

五、调试

PC0到PC1是否能ping通

三台路由器和两台pc间的连接,网络,智能路由器,计算机网络

PC1到PC0是否能ping通

三台路由器和两台pc间的连接,网络,智能路由器,计算机网络文章来源地址https://www.toymoban.com/news/detail-723429.html

到了这里,关于三台路由器两台PC的网络配置的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 路由器怎么设置连接两台电脑上网[图文]

    步骤/方法 1.使用宽带路由器组网 本内容以D-Link DI-504家用宽带路由器为例,谈一谈如何使用宽带路由器共享上网,如图2008112864所示。 图2008112864 DI-504家用宽带路由器 DI-504内置一个4口的交换机,也就是拥有4个连接到计算机的LAN端口。使用直通网线将计算机连接到LAN端口,然

    2024年02月05日
    浏览(35)
  • 不用路由器也可以两台电脑共享上网的方法

    不用路由器也可以两台电脑共享上网 假设有两台电脑,电脑A和B,其中一台A有网线,B没有,那么在没有路由器的时候B如何上网呢 首先A电脑 右击网上邻居!点击属性! 出现图一: 右击无线网卡属性,进入TCP/IP协议配置窗口 见图2: 按照图2来配置 再点击“无线网络配置标签

    2024年02月07日
    浏览(52)
  • 【网络】路由器和无线路由器就这么配置

    目录 🍒常见的接入互联网方式 🍓WAN配置 🍓LAN口配置 🍓WLAN配置 🍓WLAN安全 🍒路由设备管理 🍓路由器内部组件 🍓Cisco路由器的启动过程 🍓基础命令 🍎show running-config 🍎show startup-config 🍎copy running-config startup-config 🍎erase startup-config 🍓密码设置 🍎配置Console口密码 🍎

    2024年02月10日
    浏览(41)
  • 教你如何通过设置路由器连接两台电脑上网 图文

    家用电脑经常遇到很多比较麻烦的问题。比如两台电脑之间有时需要用路由器进行连接。路由器跟交换机对比下的好处就是不会影响网速,那么家用电脑 路由器怎么连接两台电脑 呢?如果遇到这些问题大家也莫要惊慌,土巴兔小编将为你解决以上的问题。 路由器怎么连接两台

    2024年02月05日
    浏览(40)
  • 两台电脑简单的通信过程详解(经过两个路由器,不同网段)

         注意拓扑图的接口与本博客是否相符,判断以下命令中的ip是否需要修改。 1.AR1-接口对应IP 2.AR2-接口对应IP 3.AR1-配置路由 4.AR2-配置路由   1.AR1的g0/0/0接口   2.AR2的g0/0/0接口 mac全0代表这个地址待填充,全1代表广播  1.先看IP是否是同网段的,不是同网段,使用ARP获取网关

    2024年03月23日
    浏览(30)
  • 直连路由---直连路由器的两台主机可以相互ping通---直连在同一台路由器的主机和路由器(直连端口)相互ping不通

            PC3可以ping通PC2,因为PC2和PC3直连R2路由器,R2路由器路由表中有到1.0.0.0/24和1.0.2.0/24网段的直连路由,路由器R2的数据可以到PC2和PC3;PC2网关地址为路由器端口地址1.0.0.1/24,PC2的数据可以到路由器R2;PC3网关地址为路由器端口地址1.0.2.1/24,PC3的数据可以到路由器R

    2024年02月11日
    浏览(35)
  • 用两台腾达W311R无线路由器实现WDS桥接

    两台路由器,先假设作为主路由功能的是A(本人实验时的固件号是V3.2.4.02s_CN),而另一台就是从路由B(本人实验时的固件号是H1_V3.3.5r)了,首先确保A路由能单独正常上网并且无线部分工作正常后就可以 进行如下步骤了: 1、如果A路由的LAN口设置中的IP地址是192.168.0.1,则首

    2024年02月06日
    浏览(33)
  • 【计算机网络】6 路由器与静态路由配置

    目录 概览 环境 配置VLAN 连接路由器 登录并命名路由器1(Figure 4) 配置路由器1 WAN口(Figure 5) 配置路由器1 LAN口和路由表 登录并命名路由器2 配置路由器2WAN口(Figure 8) 配置路由器2 LAN口和路由表(Figure 8) 结果: 总结 ▪ 掌握交换机和路由器的连接方法 ▪ 掌握路由器常用

    2024年02月11日
    浏览(37)
  • 两台TP-LINK路由器均带WDS功能实现桥接之方法

    两台TPLINK路由器均带WDS功能实现桥接 A路由设置如下 : 登录路由器设置页面(这个应该不用说怎么做了吧?) 1、点击进入运行状态,主要是检查ADSL状态中的PVC开启情况,看看PVC0(VPI8/VCI35,电信用的参数值)、PVC1(VPI0/VCI35,网通/联通用的参数值)这两个开启了没有,其它的

    2024年02月05日
    浏览(27)
  • 「网络工程师必会技能」-路由器介绍和路由器基本配置

    「网络工程师必会技能」-路由器介绍和路由器基本配置,这是每个网络必须会的技能,不是你有证书就一个网络工程师了哦! 以Cisco路由器为例说明: (1)访问路由器。访问路由器与访问交换机一样,可以通过Console(控制台)端口连接终端或安装了终端仿真软件的PC;通过

    2024年02月11日
    浏览(30)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包