当前位置:网站首页>静态路由配置
静态路由配置
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 #右边配置默认路由
边栏推荐
- 小试牛刀之NunJucks模板引擎
- 4种常见的缓存模式,你都知道吗?
- Taffydb open source JS database
- [trusted computing] Lesson 12: TPM authorization and conversation
- Ten thousand words nanny level long article -- offline installation guide for datahub of LinkedIn metadata management platform
- Introduction de l'API commune de programmation de socket et mise en œuvre de socket, select, Poll et epoll
- Hash, bitmap and bloom filter for mass data De duplication
- Wireshark分析抓包数据*.cap
- What skills can you master to be a "master tester" when doing software testing?
- 回归测试的分类
猜你喜欢

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

『HarmonyOS』DevEco的下载安装与开发环境搭建

Chapter 2 build CRM project development environment (database design)

你真的理解粘包与半包吗?3分钟搞懂它

What skills can you master to be a "master tester" when doing software testing?

In depth understanding of USB communication protocol

Skills of embedded C language program debugging and macro use

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

Tips for short-term operation of spot silver that cannot be ignored

Discuss | what preparations should be made before ar application is launched?
随机推荐
云景网络科技面试题【杭州多测师】【杭州多测师_王sir】
Native JS verification code
[tpm2.0 principle and Application guide] Chapter 5, 7 and 8
Debian10 compile and install MySQL
More than 10000 units were offline within ten days of listing, and the strength of Auchan Z6 products was highly praised
Five simple ways to troubleshoot with Stace
“解密”华为机器视觉军团:华为向上,产业向前
Download, installation and development environment construction of "harmonyos" deveco
How to open an account for wealth securities? Is it safe to open a stock account through the link
Pro2: modify the color of div block
Do you really understand sticky bag and half bag? 3 minutes to understand it
Yearning-SQL审核平台
Kirk Borne的本周学习资源精选【点击标题直接下载】
Thread pool and singleton mode and file operation
Nunjuks template engine
高考填志愿规则
nest. Database for getting started with JS
Personal best practice demo sharing of enum + validation
[paper sharing] where's crypto?
通过 Play Integrity API 的 nonce 字段提高应用安全性