当前位置:网站首页>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 .
边栏推荐
- What are the financial products in 2022? What are suitable for beginners?
- Datasimba launched wechat applet, and datanuza accepted the test of the whole scene| StartDT Hackathon
- sqlite sql 异常 near “with“: syntax error
- Chapter 2 building CRM project development environment (building development environment)
- Learn to make dynamic line chart in 3 minutes!
- Five simple ways to troubleshoot with Stace
- AI defeated mankind and designed a better economic mechanism
- SQLite SQL exception near "with": syntax error
- More than 10000 units were offline within ten days of listing, and the strength of Auchan Z6 products was highly praised
- 同消费互联网的较为短暂的产业链不同,产业互联网的产业链是相当漫长的
猜你喜欢
Click on the top of today's headline app to navigate in the middle
Chapter 3 business function development (to remember account and password)
Chapter 3 business function development (user access project)
讨论| 坦白局,工业 AR 应用为什么难落地?
[paddleseg source code reading] add boundary IOU calculation in paddleseg validation (1) -- val.py file details tips
标准ACL与扩展ACL
科学家首次观察到“电子漩涡” 有助于设计出更高效的电子产品
Classification of regression tests
Chapter 3 business function development (user login)
Disk storage chain B-tree and b+ tree
随机推荐
现货白银分析中的一些要点
Tips for this week 140: constants: safety idioms
Learn to make dynamic line chart in 3 minutes!
Automated testing: a practical skill that everyone wants to know about robot framework
Skills of embedded C language program debugging and macro use
< code random recording two brushes> linked list
能同时做三个分割任务的模型,性能和效率优于MaskFormer!Meta&UIUC提出通用分割模型,性能优于任务特定模型!开源!...
What skills can you master to be a "master tester" when doing software testing?
pip相关命令
嵌入式C语言程序调试和宏使用的技巧
[demo] circular queue and conditional lock realize the communication between goroutines
[principles and technologies of network attack and Defense] Chapter 3: network reconnaissance technology
云安全日报220707:思科Expressway系列和网真视频通信服务器发现远程攻击漏洞,需要尽快升级
Click on the top of today's headline app to navigate in the middle
标准ACL与扩展ACL
高考填志愿规则
现在网上期货开户安全吗?国内有多少家正规的期货公司?
zdog. JS rocket turn animation JS special effects
Summary of evaluation indicators and important knowledge points of regression problems
Yearning-SQL审核平台