当前位置:网站首页>Simple configuration of single arm routing and layer 3 switching
Simple configuration of single arm routing and layer 3 switching
2022-07-07 18:32:00 【Chen chacha__】
First, configure the switch
take f0/1 Ports only allow vlan 10,f0/11 Ports only allow vlan 20, take f0/24 The port is set to truck Pattern
int f0/1
switchport mode access
switchport access vlan 10
exi
int f0/11
switchport mode access
switchport access vlan 20
exit
int f0/24
switchport mode trunk
switchport trunk allowed vlan all
Configure single arm routing on the router
int f0/0
int f0/0.10 # Enter sub interface
encapsulation dot1Q 10 # encapsulate 802.1q agreement , In the play vlan 10 The label of
ip add 192.168.10.254 255.255.255.0 # To configure valn 10 Gateway for
int f0/0.20
encapsulation dot1Q 20 # encapsulate 802.1q agreement , In the play vlan 20 The label of
ip add 192.168.20.254 255.255.255.0 # To configure vlan 20 Gateway for
At this time, the two hosts successfully communicate .
Configure layer 3 switching
First, configure the layer-2 switch
take f0/1 Ports only allow vlan 10,f0/11 Ports only allow vlan 20, take f0/24 Port is enabled trunk Pattern
int f0/1
switchport mode access
switch access vlan 10
int f0/11
switchport mode access
switch access vlan 20
int f0/24
switchport mode trunk
switch trunk allowed vlan all
Then configure the layer 3 switch
ip routing # Turn on the routing function
int f0/1
switchport trunk encapsulation dot1q # encapsulation dot1q agreement , It's not specified here vlan Number
switchport trunk allowed vlan all # Allow all vlan adopt
exit
int vlan 10
ip add 192.168.10.254 255.255.255.0 # Set up vlan 10 Gateway for
int vlan 20
ip add 192.168.20.254 255.255.255.0 # Set up vlan 20 Gateway for
The above basic command configuration is completed .
边栏推荐
- 开发一个小程序商城需要多少钱?
- Tips of this week 141: pay attention to implicit conversion to bool
- List selection JS effect with animation
- Download, installation and development environment construction of "harmonyos" deveco
- [answer] if the app is in the foreground, the activity will not be recycled?
- [principles and technologies of network attack and Defense] Chapter 3: network reconnaissance technology
- Win11C盘满了怎么清理?Win11清理C盘的方法
- How to open an account for wealth securities? Is it safe to open a stock account through the link
- Chapter 1 Introduction to CRM core business
- Summary of debian10 system problems
猜你喜欢
Tips of the week 136: unordered containers
Win11C盘满了怎么清理?Win11清理C盘的方法
[PaddleSeg源码阅读] PaddleSeg Validation 中添加 Boundary IoU的计算(1)——val.py文件细节提示
[4500 word summary] a complete set of skills that a software testing engineer needs to master
socket編程之常用api介紹與socket、select、poll、epoll高並發服務器模型代碼實現
String type, constant type and container type of go language
Disk storage chain B-tree and b+ tree
数学分析_笔记_第11章:Fourier级数
socket编程之常用api介绍与socket、select、poll、epoll高并发服务器模型代码实现
AI 击败了人类,设计了更好的经济机制
随机推荐
Classification of regression tests
“解密”华为机器视觉军团:华为向上,产业向前
Youth experience and career development
sqlite sql 异常 near “with“: syntax error
Improve application security through nonce field of play integrity API
Learn to make dynamic line chart in 3 minutes!
Idea completely uninstalls installation and configuration notes
海量数据去重的hash,bitmap与布隆过滤器Bloom Filter
将模型的记忆保存下来!Meta&UC Berkeley提出MeMViT,建模时间支持比现有模型长30倍,计算量仅增加4.5%...
In depth understanding of USB communication protocol
Chapter 3 business function development (user login)
用存储过程、定时器、触发器来解决数据分析问题
[trusted computing] Lesson 13: TPM extended authorization and key management
不能忽略的现货白银短线操作小技巧
Slider plug-in for swiper left and right switching
卖空、加印、保库存,东方甄选居然一个月在抖音卖了266万单书
Click on the top of today's headline app to navigate in the middle
Discuss | what preparations should be made before ar application is launched?
现货白银分析中的一些要点
How to open an account for wealth securities? Is it safe to open a stock account through the link