当前位置:网站首页>静态路由配置
静态路由配置
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 #右边配置默认路由
边栏推荐
- 高考填志愿规则
- Improve application security through nonce field of play integrity API
- 现在网上期货开户安全吗?国内有多少家正规的期货公司?
- 通过 Play Integrity API 的 nonce 字段提高应用安全性
- Management by objectives [14 of management]
- 回归测试的分类
- Introduction to OTA technology of Internet of things
- 上市十天就下线过万台,欧尚Z6产品实力备受点赞
- 开发一个小程序商城需要多少钱?
- ICer知识点杂烩(后附大量题目,持续更新中)
猜你喜欢

List selection JS effect with animation

Mobile app takeout ordering personal center page

Introduction to OTA technology of Internet of things

4种常见的缓存模式,你都知道吗?

AntiSamy:防 XSS 攻击的一种解决方案使用教程
![[4500 word summary] a complete set of skills that a software testing engineer needs to master](/img/82/acae52928b3ab48e9ecbf4ec436e5e.jpg)
[4500 word summary] a complete set of skills that a software testing engineer needs to master

简单几步教你如何看k线图图解
![[paddleseg source code reading] add boundary IOU calculation in paddleseg validation (1) -- val.py file details tips](/img/f2/b6a0e5512b35cf1b695a8feecd0895.png)
[paddleseg source code reading] add boundary IOU calculation in paddleseg validation (1) -- val.py file details tips

Chapter 2 build CRM project development environment (database design)

回归测试的分类
随机推荐
Summary of debian10 system problems
Classification of regression tests
[OKR target management] case analysis
直播软件搭建,canvas文字加粗
通过 Play Integrity API 的 nonce 字段提高应用安全性
Five network IO models
Automated testing: a practical skill that everyone wants to know about robot framework
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
Tips for this week 140: constants: safety idioms
Machine vision (1) - Overview
socket编程之常用api介绍与socket、select、poll、epoll高并发服务器模型代码实现
The highest level of anonymity in C language
元宇宙带来的创意性改变
数学分析_笔记_第11章:Fourier级数
AI 击败了人类,设计了更好的经济机制
Wireshark analyzes packet capture data * cap
PIP related commands
Introduction of common API for socket programming and code implementation of socket, select, poll, epoll high concurrency server model
2022年理财产品的一般收益率是多少?
go语言的字符串类型、常量类型和容器类型