当前位置:网站首页>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 .
边栏推荐
- 回归测试的分类
- 2021年全国平均工资出炉,你达标了吗?
- Using stored procedures, timers, triggers to solve data analysis problems
- 2022年理财产品的一般收益率是多少?
- 财富证券证券怎么开户?通过链接办理股票开户安全吗
- Learn to make dynamic line chart in 3 minutes!
- Click on the top of today's headline app to navigate in the middle
- [principle and technology of network attack and Defense] Chapter 6: Trojan horse
- socket编程之常用api介绍与socket、select、poll、epoll高并发服务器模型代码实现
- A few simple steps to teach you how to see the K-line diagram
猜你喜欢

Backup Alibaba cloud instance OSS browser

Do you really understand sticky bag and half bag? 3 minutes to understand it

磁盘存储链式的B树与B+树

简单几步教你如何看k线图图解

NAT地址转换

Datasimba launched wechat applet, and datanuza accepted the test of the whole scene| StartDT Hackathon

Mobile pixel bird game JS play code

回归问题的评价指标和重要知识点总结

Introduction de l'API commune de programmation de socket et mise en œuvre de socket, select, Poll et epoll

备份阿里云实例-oss-browser
随机推荐
socket编程之常用api介绍与socket、select、poll、epoll高并发服务器模型代码实现
行业案例|数字化经营底座助力寿险行业转型
Do you really understand sticky bag and half bag? 3 minutes to understand it
More than 10000 units were offline within ten days of listing, and the strength of Auchan Z6 products was highly praised
2022年理财有哪些产品?哪些适合新手?
DataSimba推出微信小程序,DataNuza接受全场景考验? | StartDT Hackathon
List selection JS effect with animation
Using stored procedures, timers, triggers to solve data analysis problems
Pro2: modify the color of div block
Download, installation and development environment construction of "harmonyos" deveco
Unlike the relatively short-lived industrial chain of consumer Internet, the industrial chain of industrial Internet is quite long
Usage of PHP interview questions foreach ($arr as $value) and foreach ($arr as $value)
In depth understanding of USB communication protocol
标准ACL与扩展ACL
NAT地址转换
debian10系统问题总结
Introduction de l'API commune de programmation de socket et mise en œuvre de socket, select, Poll et epoll
Automated testing: a practical skill that everyone wants to know about robot framework
Mui side navigation anchor positioning JS special effect
RIP和OSPF的区别和配置命令