当前位置:网站首页>Static routing configuration
Static routing configuration
2022-07-07 18:32:00 【Chen chacha__】
Simple static routing configuration
Simple configuration such as host is omitted
Configure the router on the left
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
Configure the router on the right
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
On two routers respectively Configure static routing
Left router Only with 172.16.1.1 Host communication , Which is set to Host routing ( Match single IP Address )
ip route 172.16.1.1 255.255.255.255 12.12.12.2
Router settings on the right And 192.168.0.0 Network segment communication , Which is set to Subnet routing ( Indicates that a subnet is matched )
ip route 192.168.0.0 255.255.0.0 12.12.12.1 # The setting here is 16 Bit subnet mask , contain 24 Bit subnet mask
Route summary and default route topology
Router0 Basic configuration
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 Basic configuration
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 Basic configuration
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 Route summary :76.12.0.0/16
ip route 76.12.0.0 255.255.0.0 12.12.12.2
CopyR0 Default routing settings
ip route 0.0.0.0 0.0.0.0 76.12.16.133
R1 Routing settings
ip route 76.12.0.0 255.255.0.0 76.12.16.134 # Configure subnet routing on the left
ip route 0.0.0.0 0.0.0.0 12.12.12.1 # Configure the default route on the right
边栏推荐
- [principle and technology of network attack and Defense] Chapter 7: password attack technology Chapter 8: network monitoring technology
- Introduction of common API for socket programming and code implementation of socket, select, poll, epoll high concurrency server model
- sqlite sql 异常 near “with“: syntax error
- 【C语言】字符串函数
- 小程序中实现付款功能
- Chapter 3 business function development (user login)
- [answer] if the app is in the foreground, the activity will not be recycled?
- Taffydb open source JS database
- 你真的理解粘包与半包吗?3分钟搞懂它
- golang 客户端服务端登录
猜你喜欢
4种常见的缓存模式,你都知道吗?
Mobile app takeout ordering personal center page
元宇宙带来的创意性改变
Click on the top of today's headline app to navigate in the middle
Learn to make dynamic line chart in 3 minutes!
AntiSamy:防 XSS 攻击的一种解决方案使用教程
不能忽略的现货白银短线操作小技巧
Ten thousand words nanny level long article -- offline installation guide for datahub of LinkedIn metadata management platform
CVPR 2022丨学习用于小样本语义分割的非目标知识
Test for 3 months, successful entry "byte", my interview experience summary
随机推荐
Learn to make dynamic line chart in 3 minutes!
Ten thousand words nanny level long article -- offline installation guide for datahub of LinkedIn metadata management platform
保证接口数据安全的10种方案
Backup Alibaba cloud instance OSS browser
线程池和单例模式以及文件操作
Taffydb open source JS database
“解密”华为机器视觉军团:华为向上,产业向前
高考填志愿规则
Interviewer: why is the page too laggy and how to solve it? [test interview question sharing]
Click on the top of today's headline app to navigate in the middle
SD_DATA_RECEIVE_SHIFT_REGISTER
socket编程之常用api介绍与socket、select、poll、epoll高并发服务器模型代码实现
go语言的字符串类型、常量类型和容器类型
持续测试(CT)实战经验分享
【demo】循环队列及条件锁实现goroutine间的通信
Mobile pixel bird game JS play code
[tpm2.0 principle and Application guide] Chapter 5, 7 and 8
NAT地址转换
Tips for this week 131: special member functions and ` = Default`
How to open an account for wealth securities? Is it safe to open a stock account through the link