首页 > 其他分享 >静态路由配置

静态路由配置

时间:2022-12-20 17:36:38浏览次数:30  
标签:ip 静态 0.0 route 配置 255.255 172.16 config 路由


静态路由

  • ​​实验目的​​
  • ​​实验拓扑​​
  • ​​ip配置​​
  • ​​实验步骤​​
  • ​​配置路由器端口​​
  • ​​配置静态路由​​
  • ​​实验结果​​

实验目的

·了解静态路由
·掌握IPv4 默认静态路由配置
·怎样通过指定下一跳地址配置IPv4 静态路由

实验拓扑

静态路由配置_R3

ip配置

设备主机

接口

IP地址

子网掩码

默认网关

PC0

172.16.1.194

255.255.255.240

172.16.1.193

PC1

172.16.1.130

255.255.255.192

172.16.1.129

PC2

172.16.1.2

255.255.255.128

172.16.1.1

PC3

172.16.0.2

255.255.255.0

172.16.0.1

R1

F0/0

172.16.1.193

255.255.255.240

ip route 0.0.0.0 0.0.0.0 172.16.1.210

R1

S0/0/0

172.16.1.209

255.255.255.252

Rate 9600

R2

F0/0

172.16.1.129

255.255.255.192

ip route 172.16.1.192 255.255.255.240 172.16.1.209 ip route 172.16.1.0 255.255.255.128 172.16.1.214 ip route 172.16.0.0 255.255.255.0 172.16.1.214 ip route 172.16.1.216 255.255.255.252 172.16.1.214

R2

F0/1

172.16.1.213

255.255.255.252

R2

S0/0/0

172.16.1.210

255.255.255.252

R3

F0/0

172.16.1.1

255.255.255.128

ip route 172.16.1.128 255.255.255.128 172.16.1.213 ip route 172.16.1.192 255.255.255.240 172.16.1.213 ip route 172.16.1.208 255.255.255.252 172.16.1.213 ip route 172.16.0.0 255.255.255.0 172.16.1.218

R3

F0/1

172.16.1.214

255.255.255.252

R3

S0/0/1

172.16.1.217

255.255.255.252

Rate 9600

R4

F0/0

172.16.0.1

255.255.255.0

ip route 0.0.0.0 0.0.0.0 172.16.2.22 ip route 0.0.0.0 0.0.0.0 172.16.2.25 ip route 0.0.0.0 0.0.0.0 172.16.1.217 ip route 0.0.0.0 0.0.0.0 Serial0/0/0

R4

S0/0/0

172.16.1.218

255.255.255.252

实验步骤

配置路由器端口

R1(config)#interface F0/0
R1(config-if)#ip address 172.16.1.193 255.255.255.240
R1(config-if)#no shutdown
R1(config)#interface S0/0/0
R1(config-if)#ip address 172.16.1.209 255.255.255.252
R1(config-if)#clock rate 9600
R1(config-if)#no shutdown
R1(config-if)#

R2(config)#interface F0/0
R2(config-if)#ip address 172.16.1.129 255.255.255.192
R2(config-if)#no shutdown
R2(config-if)#interface F0/1
R2(config-if)#ip address 172.16.1.213 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#interface s0/0/0
R2(config-if)#ip address 172.16.1.210 255.255.255.252
R2(config-if)#no shutdown


R3(config)#interface F0/0
R3(config-if)#ip address 172.16.1.1 255.255.255.128
R3(config-if)#no shutdown
R3(config-if)#interface F0/1
R3(config-if)#ip address 172.16.1.214 255.255.255.252
R3(config-if)#no shutdown
R3(config)#interface s0/0/1
R3(config-if)#ip address 172.16.1.217 255.255.255.252
R3(config-if)#clock rate 9600
R3(config-if)#no shutdown

R4(config)#interface F0/0
R4(config-if)#ip address 172.16.0.1 255.255.255.0
R4(config-if)#no shutdown
R4(config)#interface s0/0/0
R4(config-if)#ip address 172.16.1.218 255.255.255.252
R4(config-if)#no shutdown

配置静态路由

R1(config)#ip route 0.0.0.0 0.0.0.0 172.16.1.210
R1(config)#

R2(config)#ip route 172.16.1.192 255.255.255.240 172.16.1.209
R2(config)#ip route 172.16.1.0 255.255.255.128 172.16.1.214
R2(config)#ip route 172.16.1.216 255.255.255.252 172.16.1.214
R2(config)#ip route 172.16.0.0 255.255.255.0 172.16.1.214

R3(config)#ip route 172.16.1.128 255.255.255.128 172.16.1.213
R3(config)#ip route 172.16.1.192 255.255.255.240 172.16.1.213
R3(config)#ip route 172.16.1.208 255.255.255.252 172.16.1.213
R3(config)#ip route 172.16.0.0 255.255.255.0 172.16.1.218
R3(config)#

R4(config)#ip route 0.0.0.0 0.0.0.0 172.16.1.217

实验结果

静态路由配置_网络_02


标签:ip,静态,0.0,route,配置,255.255,172.16,config,路由
From: https://blog.51cto.com/u_15918664/5956349

相关文章

  • OSPF配置
    OSPF配置​​实验拓扑​​​​端口配置​​​​OSPF配置,进程号1​​​​避免不必要的路由流量,设置被动端口​​​​配置路由器的router-id​​​​实验结果​​主机端口Ip......
  • STP配置
    STP配置​​学习目标​​​​实验拓扑​​学习目标检查STP默认状态配置根网桥配置备份根桥接器确定STP配置实验拓扑任务1:检查STP默认状态步骤1。检查链路的链接。当ST......
  • django取消debug获取不到静态资源
    1.debug=True状态下我们可以看到mysql查询语句的打印,如何不显示这些打印呢2.setting修改一下内容DEBUG=FalseifDEBUGisTrue:STATICFILES_DIRS=(os.path.j......
  • 配置zookeeper服务器
    配置zk服务器基本配置名称作用默认clientPort客户端所连接的服务器所监听的TCP端口2181dataDir于配置内存数据库保存的模糊快照的⽬录,如果某个服务器为......
  • SpringBoot - 配置包扫描注解@ComponentScan
    @ComponentScan作用:配置包扫描规则范围:主程序类上(被@SpringBootApplication修饰),或配置类上(被@Configuration修饰)参数:value指定要扫描的包,excludeFilters配置排除......
  • swagger-ui-express 配置 Authorize
    swagger-ui-express配置Authorize在路径中这样配"security":[{"Bearer":[]}]在securitySchemes中这样配"securitySchemes":{......
  • Angular JS入门 (一)事件监听(二)多控制器思想与模块化编程(三)路由router
    AngularJS入门☀️将流式结构--->模块化一、事件监听1.事件监听前言NG框架中通过对元素标签添加[ng-事件名]指令,来对元素添加事件监听而事件监听的回调函数需要在con......
  • ubuntu配置nfs
    服务器sudoaptinstallnfs-kernel-server/etc/exports中添加共享目录/home/xpy/cig*(rw,sync,no_root_squash)客户端sudoaptinstallnfs-commonmount-tnfs19......
  • Python 任务自动化工具:nox 的配置与 API
    英文|​​Configuration&API​​​译者|豌豆花下猫@Python猫Github地址:​​https://github.com/chinesehuazhou/nox_doc_cn​​声明:本翻译基于CCBY-NC-SA4.0授权协......
  • fast-livo 配置问题
    问题一:Ubuntu安装Sophus报错:so2.cpp:error:lvaluerequiredasleftoperandofassignment.unit_complex_.real()=1.; 遇到的问题: /Sophus/sophus/so2.cpp......