当前位置:网站首页>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 .
边栏推荐
- 万字保姆级长文——Linkedin元数据管理平台Datahub离线安装指南
- 行业案例|数字化经营底座助力寿险行业转型
- AI defeated mankind and designed a better economic mechanism
- zdog. JS rocket turn animation JS special effects
- Yearning-SQL审核平台
- 讨论| 坦白局,工业 AR 应用为什么难落地?
- 数学分析_笔记_第11章:Fourier级数
- Chapter 3 business function development (user access project)
- [principles and technologies of network attack and Defense] Chapter 5: denial of service attack
- Tear the Nacos source code by hand (tear the client source code first)
猜你喜欢

Mobile pixel bird game JS play code

性能测试过程和计划

Tips of the week 136: unordered containers

Nunjuks template engine

标准ACL与扩展ACL

Chapter 3 business function development (safe exit)

debian10系统问题总结

Using stored procedures, timers, triggers to solve data analysis problems
![[tpm2.0 principle and Application guide] Chapter 5, 7 and 8](/img/38/93fd986916193803bbd90805f832fa.png)
[tpm2.0 principle and Application guide] Chapter 5, 7 and 8

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
随机推荐
What is the general yield of financial products in 2022?
Is it safe to open an online futures account now? How many regular futures companies are there in China?
Do you really understand sticky bag and half bag? 3 minutes to understand it
Improve application security through nonce field of play integrity API
清华、剑桥、UIC联合推出首个中文事实核查数据集:基于证据、涵盖医疗社会等多个领域
Download, installation and development environment construction of "harmonyos" deveco
[trusted computing] Lesson 11: TPM password resource management (III) NV index and PCR
Using stored procedures, timers, triggers to solve data analysis problems
性能测试过程和计划
How to open an account for wealth securities? Is it safe to open a stock account through the link
能同时做三个分割任务的模型,性能和效率优于MaskFormer!Meta&UIUC提出通用分割模型,性能优于任务特定模型!开源!...
同消费互联网的较为短暂的产业链不同,产业互联网的产业链是相当漫长的
Test for 3 months, successful entry "byte", my interview experience summary
Idea completely uninstalls installation and configuration notes
golang 客户端服务端登录
2021年全国平均工资出炉,你达标了吗?
[principles and technologies of network attack and Defense] Chapter 5: denial of service attack
Chapter 3 business function development (user login)
[principles and technologies of network attack and Defense] Chapter 3: network reconnaissance technology
socket编程之常用api介绍与socket、select、poll、epoll高并发服务器模型代码实现