网络技术-利用静态路由实现网络互通-3(1)
网络技术-利用静态路由实现网络互通-3(1)
已补
1,利用静态路由实现网络互通(两个公司互相通信)
完整图:
2,配置路由器
2.1,此时可以看到电脑和路由器之间是红色的,即不可通信,解决:
Router(config)#interface fa0/0
Router(config-if)#no shutdown
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
2.2,此时ping本机IP即可正常通信
2.3,分别启用两台路由器的serial 0/0/0接口
Router(config)#interface serial 0/0/0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
2.4,设置路由器的网关
路由器0
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0 # 设置此IP地址为本网段的网关
路由器1
Router(config)#interface fa0/0
Router(config-if)#ip address 10.1.1.1 255.255.255.0
此时,PC电脑即可与路由器通信
2.5,配置路由表(路由表是表达到达目的地的下一跳地址)
路线0:
Router(config)#ip route 10.1.1.0 255.255.255.0 2.2.2.2
路线1:
Router(config)#ip route 192.168.1.0 255.255.255.0 2.2.2.3
此时,即可相互通信:
PC>ping 10.1.1.5Pinging 10.1.1.5 with 32 bytes of data:Reply from 10.1.1.5: bytes=32 time=11ms TTL=126
Reply from 10.1.1.5: bytes=32 time=8ms TTL=126
Reply from 10.1.1.5: bytes=32 time=3ms TTL=126
Reply from 10.1.1.5: bytes=32 time=7ms TTL=126Ping statistics for 10.1.1.5:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:Minimum = 3ms, Maximum = 11ms, Average = 7msPC>ping 192.168.1.1Pinging 192.168.1.1 with 32 bytes of data:Reply from 192.168.1.1: bytes=32 time=0ms TTL=255
Reply from 192.168.1.1: bytes=32 time=0ms TTL=255
Reply from 192.168.1.1: bytes=32 time=0ms TTL=255
Reply from 192.168.1.1: bytes=32 time=10ms TTL=255Ping statistics for 192.168.1.1:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 10ms, Average = 2msPC>ping 2.2.2.2Pinging 2.2.2.2 with 32 bytes of data:Reply from 2.2.2.2: bytes=32 time=1ms TTL=255
Reply from 2.2.2.2: bytes=32 time=0ms TTL=255
Reply from 2.2.2.2: bytes=32 time=0ms TTL=255
Reply from 2.2.2.2: bytes=32 time=0ms TTL=255Ping statistics for 2.2.2.2:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 1ms, Average = 0msPC>ping 2.2.2.3Pinging 2.2.2.3 with 32 bytes of data:Reply from 2.2.2.3: bytes=32 time=6ms TTL=254
Reply from 2.2.2.3: bytes=32 time=3ms TTL=254
Reply from 2.2.2.3: bytes=32 time=17ms TTL=254
Reply from 2.2.2.3: bytes=32 time=3ms TTL=254Ping statistics for 2.2.2.3:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:Minimum = 3ms, Maximum = 17ms, Average = 7msPC>ping 10.1.1.0Pinging 10.1.1.0 with 32 bytes of data:Reply from 2.2.2.3: bytes=32 time=4ms TTL=254
Reply from 2.2.2.3: bytes=32 time=1ms TTL=254
Reply from 2.2.2.3: bytes=32 time=3ms TTL=254
Reply from 2.2.2.3: bytes=32 time=6ms TTL=254Ping statistics for 10.1.1.0:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:Minimum = 1ms, Maximum = 6ms, Average = 3msPC>ping 10.1.1.1Pinging 10.1.1.1 with 32 bytes of data:Reply from 10.1.1.1: bytes=32 time=4ms TTL=254
Reply from 10.1.1.1: bytes=32 time=9ms TTL=254
Reply from 10.1.1.1: bytes=32 time=12ms TTL=254
Reply from 10.1.1.1: bytes=32 time=22ms TTL=254Ping statistics for 10.1.1.1:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:Minimum = 4ms, Maximum = 22ms, Average = 11msPC>ping 10.1.1.5Pinging 10.1.1.5 with 32 bytes of data:Reply from 10.1.1.5: bytes=32 time=2ms TTL=126
Reply from 10.1.1.5: bytes=32 time=3ms TTL=126
Reply from 10.1.1.5: bytes=32 time=1ms TTL=126
Reply from 10.1.1.5: bytes=32 time=12ms TTL=126Ping statistics for 10.1.1.5:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:Minimum = 1ms, Maximum = 12ms, Average = 4
好!!!
网络技术-利用静态路由实现网络互通-3(1)相关推荐
- 网络系统管理之静态路由配置
下面,我们主要讨论一下网络系统管理中静态路由配置的问题.公司用的服务器种类繁多,有FreeBSD8.1-64bit.windows2003_R2-64bit和cetnos5.5-64bit,而规划的网 ...
- 思科三层交换机不同vlan互通_cisco(三层交换和动态路由,不同vlan间的通信,静态路由实现全网互通)...
之前是同vlan的通信 现在是不同vlan间的通信,不同网络之间的通信,不同网段间的通信,要用到路由器. 路由器上一个接口只能配一个网关.路由器接口少,怎么办? 在一个接口上划分出多个子接口. 单肩路 ...
- 引入静态路由_网络工程师提高篇 | 路由重发布你了解多少?从原理到配置,瑞哥带你学习一波!...
技术背景 实施要点 路由优先级问题 路由倒灌 路由重发布的配置 OSPF与RIP的互重发布 重发布直连路由到OSPF 重发布静态路由到OSPF 技术背景 在同一个网络拓扑结构中,如果存在两种不同的路由 ...
- 网络基础之静态路由配置及网络问题排查思路
目录 一.路由器原理及路由表形成 ①路由器原理 ②路由表形成 ③路由表表头含义 二.静态路由优缺点及特殊静态路由默认路由 ①静态路由优缺点及下一跳地址解释 ②默认路由 三.静态路由实战配置 ①实战过程 ...
- Linux 虚拟化网络技术 — KVM + Linux Bridge 的网络虚拟化解决方案
目录 文章目录 目录 KVM 虚拟机应用 Linux Bridge + VLAN 实现网络隔离 TSG: Failed to restart network KVM 虚拟机应用 Linux Bridg ...
- 计算机系统与网络技术简答题,计算机与网络技术基础 简答题
1如何对计算机进行分类? 按计算机原理分类:电子数字式计算机.电子模拟式计算机和混合式计算机.按用途分类:2计算机采用的数制是什么?它的特点是什么?一共有多少个数字符号? 计算机采用的数制是二进制,它 ...
- 荣耀手机显示不了4g网络连接服务器,荣耀路由Pro网络连接不上怎么办?荣耀路由Pro网络连接常见问题及解决方法...
荣耀路由Pro网络连接不上怎么办?荣耀路由Pro在设置网络进行上网的时候要是遇到一些问题,比如界面提示"请插入网线"."宽带帐号或密码错误"等问题时要如何的解决 ...
- H3C模拟器实现vlan与静态路由,ospf互通
H3C版本 HCL_V2.1.2_Setup VirtualBox版本 VirtualBox-6.0.14-Win 一.实验目的 1.掌握vlan配置 2.掌握静态路由的配置 3.掌握静态路由与osp ...
- 5g网络技术目前怎么样?5g网络什么时候出?
5g网络什么时候出呢?近日,5G成了一个比较热的话题.我国IMT-2020(5G)峰会不久前举办,<5G愿景和需求>白皮书也随之发布;2014亚洲移动通讯博览会上,贝尔实验室专家的话题就是 ...
最新文章
- Google Chrome 增加拦截恶意下载的支持
- 实训项目1-熟练使用VMware安装Windows server 2012
- 连载《一个程序猿的生命周期》- 32、两个企业急着上项目,紧急赶赴现场了解情况...
- 新的一年,请以这样的标准完善自我
- shell变量,管道符,作业控制,shell变量,以及变量配置文件
- python算闰年和平年的天数_Python自定义函数计算给定日期是该年第几天的方法示例...
- 计算机应用基础专科,2019年自考《计算机应用基础》专科模拟试题及答案
- html css3模拟心的跳动
- 移动端真机测试怎么做
- bitmap 转 drawable
- 提取某一个镇的行政边界_关于获取某个省份下面的 镇的 行政区划编码。
- 某 iOS 零点击 0day 漏洞已存在8年之久且正遭利用?苹果称正在调查并将推出补丁...
- 学习(踩坑)记录——新建工程
- 不得不收藏的大数据Hadoop教程:Hadoop集群搭建
- CSS学习总结(5)——列表/表格/链接/鼠标光标样式
- UEFI的诞生与优势
- 短信验证码功能(阿里云版)
- 【Python | 杂代码】Python 里Blueprint(蓝图)的运用
- win10下出现.net framework 3.5错误代码0x800F081F的问题
- C++编程练习3--给出年、月、日,计算该日是该年的第几天