当前位置:网站首页>静态路由配置
静态路由配置
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 #右边配置默认路由
边栏推荐
- Slider plug-in for swiper left and right switching
- List selection JS effect with animation
- 备份阿里云实例-oss-browser
- 2022年理财产品的一般收益率是多少?
- Year SQL audit platform
- Explain it in simple terms. CNN convolutional neural network
- Chapter 2 building CRM project development environment (building development environment)
- Classification of regression tests
- [paper sharing] where's crypto?
- Tips for this week 140: constants: safety idioms
猜你喜欢

Wireshark分析抓包数据*.cap

Wireshark analyzes packet capture data * cap

debian10系统问题总结

Introduction de l'API commune de programmation de socket et mise en œuvre de socket, select, Poll et epoll
![[principle and technology of network attack and Defense] Chapter 6: Trojan horse](/img/2f/bd35ca141fad5c85f78fd6340ada1d.png)
[principle and technology of network attack and Defense] Chapter 6: Trojan horse

idea彻底卸载安装及配置笔记

简单几步教你如何看k线图图解

物联网OTA技术介绍

3分钟学会制作动态折线图!

清华、剑桥、UIC联合推出首个中文事实核查数据集:基于证据、涵盖医疗社会等多个领域
随机推荐
低代码助力企业数字化转型会让程序员失业?
DataSimba推出微信小程序,DataNuza接受全场景考验? | StartDT Hackathon
数学分析_笔记_第11章:Fourier级数
Tips of the week 136: unordered containers
Debian10 compile and install MySQL
不能忽略的现货白银短线操作小技巧
Management by objectives [14 of management]
Win11C盘满了怎么清理?Win11清理C盘的方法
Automated testing: a practical skill that everyone wants to know about robot framework
CVPR 2022丨学习用于小样本语义分割的非目标知识
Nunjuks template engine
Hutool - 轻量级 DB 操作解决方案
【蓝桥杯集训100题】scratch从小到大排序 蓝桥杯scratch比赛专项预测编程题 集训模拟练习题第17题
AI 击败了人类,设计了更好的经济机制
用存储过程、定时器、触发器来解决数据分析问题
socket编程之常用api介绍与socket、select、poll、epoll高并发服务器模型代码实现
2022年理财产品的一般收益率是多少?
简单几步教你如何看k线图图解
List selection JS effect with animation
[PaddleSeg源码阅读] PaddleSeg Validation 中添加 Boundary IoU的计算(1)——val.py文件细节提示