cisco路由的ip静态路由添加(二)

路由器Corp 配置
Corp(config)#ip route 192.168.20.0 255.255.255.0 10.1.3.2 150
Corp(config)#ip route 192.168.10.0 255.255.255.0 10.1.2.2 150
Corp(config)#ip route 192.168.30.0 255.255.255.0 10.1.4.2 150
Corp(config)#ip route 192.168.40.0 255.255.255.0 10.1.4.2 150
Corp(config)#ip route 172.16.10.0 255.255.255.0 10.1.5.2 150
Corp(config)#do sh run | begin ip route
ip route 192.168.20.0 255.255.255.0 10.1.3.2 150
ip route 192.168.10.0 255.255.255.0 10.1.2.2 150
ip route 192.168.30.0 255.255.255.0 10.1.4.2 150
ip route 192.168.40.0 255.255.255.0 10.1.4.2 150
ip route 172.16.10.0 255.255.255.0 10.1.5.2 150
路由器R1配置
R1(config)#ip route 10.1.1.0 255.255.255.0 10.1.2.1 150
R1(config)#ip route 10.1.4.0 255.255.255.0 10.1.3.1 150
R1(config)#ip route 10.1.5.0 255.255.255.0 10.1.2.1 150
R1(config)#ip route 192.168.30.0 255.255.255.0 10.1.3.1 150
R1(config)#ip route 192.168.40.0 255.255.255.0 10.1.2.1 150
R1(config)#ip route 172.16.10.0 255.255.255.0 10.1.3.1 150
R1(config)#do sh run | begin ip route
ip route 10.1.1.0 255.255.255.0 10.1.2.1 150
ip route 10.1.4.0 255.255.255.0 10.1.3.1 150
ip route 10.1.5.0 255.255.255.0 10.1.2.1 150
ip route 192.168.30.0 255.255.255.0 10.1.3.1 150
ip route 192.168.40.0 255.255.255.0 10.1.2.1 150
ip route 172.16.10.0 255.255.255.0 10.1.3.1 150
R1(config)#do sh ip rout
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
10.0.0.0/24 is subnetted, 5 subnets
S 10.1.1.0 [150/0] via 10.1.2.1
C 10.1.2.0 is directly connected, Serial0/0/0
C 10.1.3.0 is directly connected, Serial0/0/1
S 10.1.4.0 [150/0] via 10.1.3.1
S 10.1.5.0 [150/0] via 10.1.2.1
172.16.0.0/24 is subnetted, 1 subnets
S 172.16.10.0 [150/0] via 10.1.3.1
C 192.168.10.0/24 is directly connected, FastEthernet0/0
C 192.168.20.0/24 is directly connected, FastEthernet0/1
S 192.168.30.0/24 [150/0] via 10.1.3.1
S 192.168.40.0/24 [150/0] via 10.1.2.1
路由器R2的配置
R2(config)#ip route 10.1.1.0 255.255.255.0 10.1.4.1 150
R2(config)#ip route 10.1.2.0 255.255.255.0 10.1.4.1 150
R2(config)#ip route 10.1.3.0 255.255.255.0 10.1.4.1 150
R2(config)#ip route 10.1.5.0 255.255.255.0 10.1.4.1 150
R2(config)#ip route 192.168.10.0 255.255.255.0 10.1.4.1 150
R2(config)#ip route 192.168.20.0 255.255.255.0 10.1.4.1 150
R2(config)#ip route 172.16.10.0 255.255.255.0 10.1.4.1 150
R2(config)#do sh run | begin ip route
ip route 10.1.1.0 255.255.255.0 10.1.4.1 150
ip route 10.1.2.0 255.255.255.0 10.1.4.1 150
ip route 10.1.3.0 255.255.255.0 10.1.4.1 150
ip route 10.1.5.0 255.255.255.0 10.1.4.1 150
ip route 192.168.10.0 255.255.255.0 10.1.4.1 150
ip route 192.168.20.0 255.255.255.0 10.1.4.1 150
ip route 172.16.10.0 255.255.255.0 10.1.4.1 150
R2(config)#do sh ip rou
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
10.0.0.0/24 is subnetted, 5 subnets
S 10.1.1.0 [150/0] via 10.1.4.1
S 10.1.2.0 [150/0] via 10.1.4.1
S 10.1.3.0 [150/0] via 10.1.4.1
C 10.1.4.0 is directly connected, Serial0/0/0
S 10.1.5.0 [150/0] via 10.1.4.1
172.16.0.0/24 is subnetted, 1 subnets
S 172.16.10.0 [150/0] via 10.1.4.1
S 192.168.10.0/24 [150/0] via 10.1.4.1
S 192.168.20.0/24 [150/0] via 10.1.4.1
C 192.168.30.0/24 is directly connected, FastEthernet0/0
C 192.168.40.0/24 is directly connected, FastEthernet0/1
路由器R3的配置
R3(config)#ip route 10.1.1.0 255.255.255.0 f0/0 150
R3(config)#ip route 10.1.2.0 255.255.255.0 f0/0 150
R3(config)#ip route 10.1.3.0 255.255.255.0 f0/0 150
R3(config)#ip route 10.1.4.0 255.255.255.0 f0/0 150
R3(config)#ip route 192.168.10.0 255.255.255.0 f0/0 150
R3(config)#ip route 192.168.20.0 255.255.255.0 f0/0 150
R3(config)#ip route 192.168.30.0 255.255.255.0 f0/0 150
R3(config)#ip route 192.168.40.0 255.255.255.0 f0/0 150
R3(config)#do sh run | begin ip rout
ip route 10.1.1.0 255.255.255.0 FastEthernet0/0 150 / * 注:此处的FastEthernet 0/0端口为R3的端口 而不是Corp路由端口/
ip route 10.1.2.0 255.255.255.0 FastEthernet0/0 150
ip route 10.1.3.0 255.255.255.0 FastEthernet0/0 150
ip route 10.1.4.0 255.255.255.0 FastEthernet0/0 150
ip route 192.168.10.0 255.255.255.0 FastEthernet0/0 150
ip route 192.168.20.0 255.255.255.0 FastEthernet0/0 150
ip route 192.168.30.0 255.255.255.0 FastEthernet0/0 150
ip route 192.168.40.0 255.255.255.0 FastEthernet0/0 150
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 5 subnets
S 10.1.1.0 is directly connected, FastEthernet0/0
S 10.1.2.0 is directly connected, FastEthernet0/0
S 10.1.3.0 is directly connected, FastEthernet0/0
S 10.1.4.0 is directly connected, FastEthernet0/0
C 10.1.5.0 is directly connected, FastEthernet0/0
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.10.0 is directly connected, Dot11Radio0/3/0
S 192.168.10.0/24 is directly connected, FastEthernet0/0
S 192.168.20.0/24 is directly connected, FastEthernet0/0
S 192.168.30.0/24 is directly connected, FastEthernet0/0
S 192.168.40.0/24 is directly connected, FastEthernet0/0
默认路由选择 (e.g. 将R3设置为根路由)
R3(config)#no ip route 10.1.1.0 255.255.255.0
R3(config)#no ip route 10.1.2.0 255.255.255.0
R3(config)#no ip route 10.1.3.0 255.255.255.0
R3(config)#no ip route 10.1.4.0 255.255.255.0
R3(config)#no ip route 192.168.10.0 255.255.255.0
R3(config)#no ip route 192.168.20.0 255.255.255.0
R3(config)#no ip route 192.168.30.0 255.255.255.0
R3(config)#no ip route 192.168.40.0 255.255.255.0
R3(config)#do sh ip
sh ip
% Incomplete command.
R3(config)#do sh ip rout
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 10.1.5.1 to network 0.0.0.0
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.5.0 is directly connected, FastEthernet0/0
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.10.0 is directly connected, Dot11Radio0/3/0
S* 0.0.0.0/0 [1/0] via 10.1.5.1
R3(config)#ip route 0.0.0.0 0.0.0.0 10.1.5.1
R3(config)#ip classless
R3(config)#do sh ip rout
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.5.0 is directly connected, vlan 1
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.10.0 is directly connected, Dot11Radio0/3/0
S* 0.0.0.0/0 [1/0] via 10.1.5.1
is directly connected, FastEthernet0/0 /*注:默认路由 10.1.5.1为下一跳ip fastEthernet 0/0为R3出端口/
cisco路由的ip静态路由添加(二)的更多相关文章
- Cisco模拟器使用和静态路由配置
一. 模拟器使用 网络拓扑图 1. 模拟器搭建环境及网络结构 2. 使用ios系统加载并配置 3. 加载3745ios后计算pc值以减小cpu的消耗 4. 然后使用CTRL+]+i得到最大的一个值(如 ...
- 路由与交换,cisco路由器配置,静态路由
网络是一个大型的拓扑结构,在路由表中,最重要的是管理距离和度量值 管理距离 管理距离用来确定路由的优先级.管理距离的范围是0-255之间的整数值.值越低代表优先级越高.0代表最高优先级.并且只有直连路 ...
- 《TCP/IP 详解 卷一》读书笔记-----IP静态 路由
1.主机中的路由表只能被守护进程routing daemon或者“redirect”类型的ICMP报文所更新. 2.在根据路由表进行路由选择时,判断的优先级从高到低依次为1)表中存在与目的IP完全匹配 ...
- IP和静态路由技术概述
1. IP地址的构成 IP地址:32比特的二进制数字,通常采用点分十进制方式表示. IP地址由两部分组成. 网络号码字段(Net-id)用于区分不同的网络.网络号码字段的前几位成为类别字段(又称为类别 ...
- 华为eNSP路由交换-静态路由
静态路由 一. 静态路由及默认路由基本配置 1.1实验内容 在由三台路由器所组成的简单网络中,R1和R3各连着一台PC,现在要求能够实现PC-1和PC-2之间的通信.本实验将通过配置基本的静态路由和默 ...
- H3C路由器配置——静态路由
一.网络畅通条件及排错思路 1.网络畅通的条件 网络畅通的条件:数据包能去能回,也是我们排除网络故障的理论依据. 2.网络不畅通示列 ①.目标主机不可达 原因分析:可能是数据包没有到达目的地,在中途就 ...
- 总结:BGP和静态路由并存,达到故障自动倒换的目的。
总体结论: 在上云的场景中,客户需要本地数据中心到云上VPC,出现网络故障时做到自动倒换,保证业务不中断. 一.客户需求 1.客户有总厂.分厂.总厂是通过专线和VPN连接上云,分厂是通过专线先连接到总 ...
- Linux服务器静态路由配置
转载自:点击打开链接 静态路由是在路由器中设置的固定的路由表.除非网络管理员干预,否则静态路由不会发生变化.由于静态路由不能对网络的改变作出反映,一般用于网络规模不大.拓扑结构固定的网络中.静态路由的 ...
- 静态路由、RIP、SOPF、VLAN间的路由
常用命令: clear ip router * --清楚全部路由 show ip route --显示路由表 show ip inter b--显示接口信息 show ip protocols -- ...
随机推荐
- IDEA 使用LiveEdit插件
第一步: 第二步: 第三步: 第四步: 等待下载完成 第五步: 第六步: 第七步: 配置tomcat时注意选择chrome浏览器,并勾选右边的多选框 完成之后,就可以启动项目了,然后可以改变html代 ...
- 洛谷-P2292-L语言(字典树)
链接: https://www.luogu.org/problem/P2292 题意: 标点符号的出现晚于文字的出现,所以以前的语言都是没有标点的.现在你要处理的就是一段没有标点的文章. 一段文章T是 ...
- 《Learning Structured Representation for Text Classification via Reinforcement Learning》论文翻译.md
摘要 表征学习是自然语言处理中的一个基本问题.本文研究了如何学习文本分类的结构化表示.与大多数既不使用结构又依赖于预先指定结构的现有表示模型不同,我们提出了一种强化学习(RL)方法,通过自动覆盖优化结 ...
- webpack打包工具之ts版开发框架搭建
本文用两个框架,一个是threejs,一个是phaser3,其实流程都是一样. nodejs.npm是基础,不再多说! 首先新建一个文件夹命名three-study,然后npm init -y 用we ...
- nu.random.seed()如何理解
结论: np.random.seed(a) # 按照规定的顺序生成随机数 # 参数a指定了随机数生成的起始位置: # 如果两处都采用了np.random.seed(a),且两处的参数a相同,则生成的随 ...
- 关于在mac上使用valet集成环境添加memcache扩展
由于业务要求需要使用到memcache,直接使用brew安装在phpinfo上面显示并没有加载成功,使用以下方法时我们需要先卸载之前已经安装完成的memcache brew unlink php70- ...
- axios的post传参时,将参数转为form表单格式
import axios from 'axios'; import alert from './alert.js'; import Qs from 'qs' //引入qs 时axios的自带模块 le ...
- AcWing:131. 直方图中最大的矩形(贪心 + 单调栈)
直方图是由在公共基线处对齐的一系列矩形组成的多边形. 矩形具有相等的宽度,但可以具有不同的高度. 例如,图例左侧显示了由高度为2,1,4,5,1,3,3的矩形组成的直方图,矩形的宽度都为1: 通常,直 ...
- Java_GUI小游戏--贪吃蛇
贪吃蛇游戏:是一条蛇在封闭围墙里,围墙里随机出现一个食物,通过按键盘四个光标键控制蛇向上下左右四个方向移动,蛇头撞倒食物,则食物被吃掉,蛇身体长一节,接着又出现食物,等待蛇来吃,如果蛇在移动中撞到墙或 ...
- 8 Linux 文件类型
Linux 系统中的文件是没有扩展名的. 1.通过 ls -l 文件名,看第一个字符判断文件类型: - 普通文件(文本文件.二进制文件.压缩文件.电影.图片等) d 目录文件 b 设备文件(块设 ...