当前位置:网站首页>静态路由配置
静态路由配置
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 #右边配置默认路由
边栏推荐
- 云安全日报220707:思科Expressway系列和网真视频通信服务器发现远程攻击漏洞,需要尽快升级
- Introduction of common API for socket programming and code implementation of socket, select, poll, epoll high concurrency server model
- Cf:c. factors and powers of two [DP + sort + Select Board + select several numbers equal to the minimum number of known sums]
- pip相关命令
- Tips for this week 140: constants: safety idioms
- 云景网络科技面试题【杭州多测师】【杭州多测师_王sir】
- Chapter 3 business function development (user login)
- Performance test process and plan
- 『HarmonyOS』DevEco的下载安装与开发环境搭建
- Tips for this week 131: special member functions and ` = Default`
猜你喜欢
Datasimba launched wechat applet, and datanuza accepted the test of the whole scene| StartDT Hackathon
[OKR target management] case analysis
Ten thousand words nanny level long article -- offline installation guide for datahub of LinkedIn metadata management platform
Kubernetes DevOps CD工具对比选型
[OKR target management] value analysis
Explain it in simple terms. CNN convolutional neural network
Mui side navigation anchor positioning JS special effect
Discuss | frankly, why is it difficult to implement industrial AR applications?
Easy to understand [linear regression of machine learning]
讨论 | AR 应用落地前,要做好哪些准备?
随机推荐
What skills can you master to be a "master tester" when doing software testing?
数学分析_笔记_第11章:Fourier级数
嵌入式C语言程序调试和宏使用的技巧
nest.js入门之 database
Sanxian Guidong JS game source code
Main work of digital transformation
财富证券证券怎么开户?通过链接办理股票开户安全吗
元宇宙带来的创意性改变
Idea completely uninstalls installation and configuration notes
[network attack and defense principle and technology] Chapter 4: network scanning technology
开发一个小程序商城需要多少钱?
Mui side navigation anchor positioning JS special effect
Pro2: modify the color of div block
Discuss | what preparations should be made before ar application is launched?
云安全日报220707:思科Expressway系列和网真视频通信服务器发现远程攻击漏洞,需要尽快升级
In depth understanding of USB communication protocol
Performance test process and plan
Personal best practice demo sharing of enum + validation
Target detection 1 -- actual operation of Yolo data annotation and script for converting XML to TXT file
Mobile pixel bird game JS play code