当前位置:网站首页>静态路由配置
静态路由配置
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 #右边配置默认路由
边栏推荐
- pip相关命令
- Wireshark analyzes packet capture data * cap
- Unlike the relatively short-lived industrial chain of consumer Internet, the industrial chain of industrial Internet is quite long
- Download, installation and development environment construction of "harmonyos" deveco
- 元宇宙带来的创意性改变
- Five simple ways to troubleshoot with Stace
- 磁盘存储链式的B树与B+树
- 回归测试的分类
- Hutool - 轻量级 DB 操作解决方案
- Discuss | what preparations should be made before ar application is launched?
猜你喜欢
Learn to make dynamic line chart in 3 minutes!
Interviewer: why is the page too laggy and how to solve it? [test interview question sharing]
Wireshark analyzes packet capture data * cap
Management by objectives [14 of management]
Chapter 3 business function development (user login)
[4500 word summary] a complete set of skills that a software testing engineer needs to master
Kubernetes DevOps CD工具对比选型
卖空、加印、保库存,东方甄选居然一个月在抖音卖了266万单书
Click on the top of today's headline app to navigate in the middle
AntiSamy:防 XSS 攻击的一种解决方案使用教程
随机推荐
线程池和单例模式以及文件操作
Chapter 1 Introduction to CRM core business
你真的理解粘包与半包吗?3分钟搞懂它
[deep learning] 3 minutes introduction
Kirk Borne的本周学习资源精选【点击标题直接下载】
2021年全国平均工资出炉,你达标了吗?
物联网OTA技术介绍
Taffydb open source JS database
Unlike the relatively short-lived industrial chain of consumer Internet, the industrial chain of industrial Internet is quite long
【C语言】字符串函数
Personal best practice demo sharing of enum + validation
Thread pool and singleton mode and file operation
JS pull down the curtain JS special effect display layer
财富证券证券怎么开户?通过链接办理股票开户安全吗
数学分析_笔记_第11章:Fourier级数
Chapter 3 business function development (user access project)
元宇宙带来的创意性改变
Chapter 2 build CRM project development environment (database design)
Download, installation and development environment construction of "harmonyos" deveco
Easy to understand [linear regression of machine learning]