3.6 静态路由.ppt_第1页
3.6 静态路由.ppt_第2页
3.6 静态路由.ppt_第3页
3.6 静态路由.ppt_第4页
3.6 静态路由.ppt_第5页
已阅读5页,还剩17页未读, 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、静态路由Static Route,深圳职业技术学院计算机系网络专业,教学目标( Objectives ),1.IP路由(IP Routing) 2.路由选择和路由表 (Path Determination and IP Routing Table) 3.路由数据包( Routing Packets ) 4.路径交换( Path Switching ) 5.被路由协议与路由协议 ( Routed Protocol and Routing Protocol ) 6.静态路由和动态路由 (Static Routes and Dynamic Routes) 7.静态路由( Static Route )

2、 8.默认路由(Default Route),路由选择和路由表 (Path Determination and IP Routing Table),为了路由数据包,路由器应该知道: To route, a router needs to know: 目的地址 (Destination addresses ) 源地址 ( Sources it can learn from) 可能路由 ( Possible routes ) 最佳路由 ( Best route ) 维护和更新路由信息 (Maintain and verify routing information),路由选择和路由表 (Path

3、Determination and IP Routing Table),路由器怎样传递数据包(How Routers Route Packets from Source to Destination ),1.拆包(remove the data link layer address) 2.查表(refer to the routing table) 3.打包(encapsulating a new frame) 4.转发(forwarding the packet),路由器怎样传递数据包How Routers Route Packets from Source to Destination,主

4、机地址和网络地址(Network Addressing and Host Addressing ),路由器用网络地址来确定数据包的目的网络。 The router uses the network address to identify the destination network (LAN) of a packet within an internetwork.,路由器确定网络地址(Determining Network Address),路径交换(Path Switching),数据包在传递过程中,网络地址保持不变,MAC地址在不断的变化。 As the packet move thro

5、ugh the internetwork,its MAC address changes,but its network address remains the same.,被路由协议和路由协议(Routed Protocol and Routing Protocol),被路由协议:用来在路由器之间传递用户的信息 Routed protocols: transport data across a network.(IP,IPX) 路由协议:用于维护路由器的路由表 Routing protocols: allow routers to choose the best path for data

6、from source to destination. (RIP,OSPF,EIGRP),1. 静态路由:网络管理员手工定义 Static Route:Uses a route that a network administrator enters into the router manually,2. 动态路由:自动适应网络拓扑结构变化 Dynamic Route :Uses a route that a network routing protocol adjusts automatically for topology or traffic changes,静态路由和动态路由 (Stat

7、ic Routes and Dynamic Routes),172.16.2.1,S0/0,静态路由(Static Routes),172.16.1.0,B,172.16.2.2,Network,A,B,Stub Network,S0/0,静态路由操作(Static Route Operation ),1.网络管理员配置静态路由 Network administrator configures the route 2.路由器将静态路由装入路由表中 Router installs the route in the routing table 3.使用静态路由转发数据包 Packets are r

8、outed using the static route,存根网络(Stub Network),存根网络对外只有一个出口,配置静态路由就足够了 When a network is accessible by only one path, a static route to the network can be sufficient. This type of network is called a stub network.,静态路由定义了一条到目标网络或子网的路径 Defines a path to an IP destination network or subnet,Router(con

9、fig)#ip route network mask address | interfacedistance,配置静态路由(Static Route Configuration),ip route :静态路由配置命令(command) Network:目标网络(destination network) mask:网络掩码(subnet mask) Address:下一跳地址(Next-hop address) Interface:本地出接口(Local outgoing interface) Distance:管理距离(administrative distance ),Stub Networ

10、k,ip route 172.16.1.0 255.255.255.0 172.16.2.1,172.16.2.1,S0/0,配置静态路由实例(Static Route Example),172.16.1.0,B,172.16.2.2,Network,A,B,这只是单向配置,在另一端也必须有相应的路由,网络才通 This is a unidirectional route. You must have a route configured in the opposite direction.,10.0.0.0,验证静态路由配置(Verifying Static Route Configurat

11、ion ),R1# show ip route(查看路由表) Gateway of last resort is not set 1.0.0.0/24 is subnetted, 1 subnets C 1.1.1.0 is directly connected, Loopback0 2.0.0.0/24 is subnetted, 1 subnets S 2.2.2.0 1/0 via 12.12.12.2 12.0.0.0/24 is subnetted, 1 subnets C 12.12.12.0 is directly connected, Serial0/0,默认路由(Defaul

12、t Routes ),当数据包的网络在路由表中每匹配的时候,就使用默认路由转发数据包。如果没有默认路由,则丢包。 Default routes are used to route packets with destinations that do not match any of the other routes in the routing table. If default route is not configred,just drop it。,Stub Network,ip route 0.0.0.0 0.0.0.0 172.16.2.2,默认路由配置实例(Default Routes

13、 Example ),172.16.2.1,S0/0,172.16.1.0,B,172.16.2.2,Network,A,B,This route allows the stub network to reach all known networks beyond router A. 0.0.0.0 0.0.0.0用于默认路由,10.0.0.0,验证默认路由配置(Verifying Default Route Configuration ),R1# show ip route(查看路由表) 1.0.0.0/24 is subnetted, 1 subnets C 1.1.1.0 is directly connected, Loopback0 2.0.0.0/24 is subnetted, 1 subnets S* 0.0.0.0 1/0 via 12.12.12.2 12.0.0.0/24 is sub

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论