当前位置:网站首页>静态路由配置
静态路由配置
2022-07-07 16:36:00 【陈叉叉__】
简单静态路由配置

主机等简单配置省略
配置左边的路由器
int eth0/0/0
ip add 192.168.1.254 255.255.255.0
no shut
int f0/0
ip add 12.12.12.1 255.255.255.0
no shut
配置右边路由器
int eth0/0/0
ip add 172.16.1.254 255.255.255.0
no shut
int f0/0
ip add 12.12.12.2 255.255.255.0
no shut
分别在两台路由器上配置静态路由
左边路由器只与172.16.1.1主机通信,也就是设置为主机路由(匹配单一IP地址)
ip route 172.16.1.1 255.255.255.255 12.12.12.2
右边路由器设置与192.168.0.0 网段通信,也就是设置为子网路由(表明匹配一个子网)
ip route 192.168.0.0 255.255.0.0 12.12.12.1 #这里设置是16位子网掩码,包含24位子网掩码
路由汇总及默认路由拓扑

Router0的基本配置
int f0/0
ip add 192.168.1.254 255.255.255.0
no shut
int f0/1
ip add 12.12.12.1 255.255.255.0
no shut
Router1的基本配置
int f0/1
ip add 12.12.12.2 255.255.255.0
no shut
int f0/0
ip add 76.12.16.133 255.255.255.252
no shut
CopyRouter0的基本配置
int f0/0
ip add 76.12.16.134 255.255.255.252
no shut
int e0/2/0
ip add 76.12.96.254
no shut
int e0/0/0
ip add 76.12.32.254 255.255.255.0
no shut
R0路由汇总:76.12.0.0/16
ip route 76.12.0.0 255.255.0.0 12.12.12.2
CopyR0默认路由设置
ip route 0.0.0.0 0.0.0.0 76.12.16.133
R1路由设置
ip route 76.12.0.0 255.255.0.0 76.12.16.134 #左边配置子网路由
ip route 0.0.0.0 0.0.0.0 12.12.12.1 #右边配置默认路由
边栏推荐
- Afghan interim government security forces launched military operations against a hideout of the extremist organization "Islamic state"
- Do you really understand sticky bag and half bag? 3 minutes to understand it
- [OKR target management] value analysis
- [4500 word summary] a complete set of skills that a software testing engineer needs to master
- 2021年全国平均工资出炉,你达标了吗?
- 高考填志愿规则
- Tips of the week 136: unordered containers
- Click on the top of today's headline app to navigate in the middle
- DataSimba推出微信小程序,DataNuza接受全场景考验? | StartDT Hackathon
- 讨论 | AR 应用落地前,要做好哪些准备?
猜你喜欢
![Management by objectives [14 of management]](/img/7b/412d4865be8453af93f57e54ff991f.png)
Management by objectives [14 of management]
![[trusted computing] Lesson 12: TPM authorization and conversation](/img/ce/619141fa0387ba42528f93b1781038.png)
[trusted computing] Lesson 12: TPM authorization and conversation

万字保姆级长文——Linkedin元数据管理平台Datahub离线安装指南

嵌入式C语言程序调试和宏使用的技巧

【Unity Shader】插入Pass实现模型遮挡X光透视效果
![[answer] if the app is in the foreground, the activity will not be recycled?](/img/b7/a749d7220c22f92080b71fd3859b8d.png)
[answer] if the app is in the foreground, the activity will not be recycled?

CVPR 2022丨学习用于小样本语义分割的非目标知识

Performance test process and plan

小试牛刀之NunJucks模板引擎
![Interviewer: why is the page too laggy and how to solve it? [test interview question sharing]](/img/0d/5d27c71a80e89b6bdea30672423004.png)
Interviewer: why is the page too laggy and how to solve it? [test interview question sharing]
随机推荐
Chapter 2 build CRM project development environment (database design)
备份阿里云实例-oss-browser
线程池和单例模式以及文件操作
go语言的字符串类型、常量类型和容器类型
Easy to understand [linear regression of machine learning]
简单几步教你如何看k线图图解
What skills can you master to be a "master tester" when doing software testing?
[4500 word summary] a complete set of skills that a software testing engineer needs to master
Ten thousand words nanny level long article -- offline installation guide for datahub of LinkedIn metadata management platform
[paper sharing] where's crypto?
Performance test process and plan
Year SQL audit platform
保证接口数据安全的10种方案
现货白银分析中的一些要点
[principle and technology of network attack and Defense] Chapter 6: Trojan horse
JS pull down the curtain JS special effect display layer
Wireshark analyzes packet capture data * cap
磁盘存储链式的B树与B+树
[OKR target management] case analysis
PHP面试题 foreach($arr as &$value)与foreach($arr as $value)的用法