当前位置:网站首页>静态路由配置
静态路由配置
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 #右边配置默认路由
边栏推荐
- [4500 word summary] a complete set of skills that a software testing engineer needs to master
- debian10编译安装mysql
- 不能忽略的现货白银短线操作小技巧
- Nunjuks template engine
- Mobile app takeout ordering personal center page
- [demo] circular queue and conditional lock realize the communication between goroutines
- 高考填志愿规则
- What is the general yield of financial products in 2022?
- 开发一个小程序商城需要多少钱?
- Do you really understand sticky bag and half bag? 3 minutes to understand it
猜你喜欢

清华、剑桥、UIC联合推出首个中文事实核查数据集:基于证据、涵盖医疗社会等多个领域
![[论文分享] Where’s Crypto?](/img/27/9b47bfcdff8307e63f2699d6a4e1b4.png)
[论文分享] Where’s Crypto?

Introduction de l'API commune de programmation de socket et mise en œuvre de socket, select, Poll et epoll

Target detection 1 -- actual operation of Yolo data annotation and script for converting XML to TXT file

Taffydb open source JS database

Chapter 3 business function development (user access project)

Year SQL audit platform

【C语言】字符串函数

Five network IO models

socket編程之常用api介紹與socket、select、poll、epoll高並發服務器模型代碼實現
随机推荐
Native JS verification code
Target detection 1 -- actual operation of Yolo data annotation and script for converting XML to TXT file
Tips of this week 135: test the contract instead of implementation
[principles and technologies of network attack and Defense] Chapter 3: network reconnaissance technology
简单几步教你如何看k线图图解
Classification of regression tests
CVPR 2022丨学习用于小样本语义分割的非目标知识
备份阿里云实例-oss-browser
Youth experience and career development
小试牛刀之NunJucks模板引擎
磁盘存储链式的B树与B+树
[PaddleSeg源码阅读] PaddleSeg Validation 中添加 Boundary IoU的计算(1)——val.py文件细节提示
直播软件搭建,canvas文字加粗
Improve application security through nonce field of play integrity API
Thread pool and singleton mode and file operation
『HarmonyOS』DevEco的下载安装与开发环境搭建
Mui side navigation anchor positioning JS special effect
Idea completely uninstalls installation and configuration notes
The report of the state of world food security and nutrition was released: the number of hungry people in the world increased to 828million in 2021
Personal best practice demo sharing of enum + validation