当前位置:网站首页>Single arm routing configuration
Single arm routing configuration
2022-07-19 05:20:00 【dafeng2773】
Single arm routing usage scenario :
By default , Different vlan Users are not allowed to access each other , But in some special cases , It is necessary to realize the interaction between different users , At this point, we need to use single arm routing technology ; The principle is to connect a physical interface , Divided into multiple virtual sub interfaces , Each virtual sub interface can be configured with an address as a gateway .
simulation PC Unit network
Experimental equipment : A switch , A router , Two hosts , Build a simple topology
1. Configure switches , Divide vlan, take F0/1 The port belongs to vlan10,F0/2 Belong to vlan20
// Switch settings access mouth , And divide subnets
Switch(config)#interface f0/1 // Get into f0/1 port
Switch(config-if)#switchport mode access // Set the port to access Pattern
Switch(config-if)#switchport access vlan 10 // take f0/1 Port is allocated to vlan10
Switch(config-if)#do show vlan b // See if the configuration is successful
You can see , Switchboard F0/1 Ports are divided into vlan 10,F0/2 Ports are divided into vlan 20
2. To configure PC0 and PC1 Of IP, Attention gateway
3. Configure router , Configure the network port ,
Open the interface of the router
Router(config)#interface f0/0
Router(config-if)#no shutdown
Single arm routing configuration :
1. Open the interface of the router
Router(config)#interface f0/0
Router(config-if)#no shutdown
2. Create a virtual sub interface
Router(config-if)#int f0/0.10 // Get into f0/0 Virtual sub interface of
Router(config-subif)#encapsulation dot1Q 10 // Encapsulate and mark the virtual sub interface vlan10 The label of
Router(config-subif)#ip add 192.168.10.254 255.255.255.0 // To configure IP Address
Router(config-subif)#int f0/0.20
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip add 192.168.20.254 255.255.255.0
3. Set the port between the switch and the router to TRUNK Pattern .
Switch(config)#int f0/3
Switch(config-if)#switchport mode trunk
4. Configuration is complete , test PC1 And PC2 Is your communication successful
Reference link :
One armed route that can be learned _ Gongs and drums Lane shoulder the blog -CSDN Blog
Welcome to reprint 、 Collection 、 Gain some praise and support !
边栏推荐
- 2020-11-10
- <script>标签内容详解
- 无重复字符的最长字串
- Solve the problem of inconsistent prediction effect between text detection training model and information model based on paddleocr
- Pat class B 1017: a divided by B
- Installation and fast use of Mongo DB stand-alone version
- 微信小程序wx.setClipboardData复制文本
- es6新增-Symbol数据类型
- 循环赛制日程表问题
- Get the multi-functional version of the maximum and minimum values of the internal values of the objects in the array and the full version of the roll call system, and show the effect
猜你喜欢
随机推荐
滚动轮加载的两种js方法及模态框拖拽归总
多功能(实现)封装函数
es6新增-数组部分
Pat class B 1002: write this number
STL容器——map的基本操作
ECS deployment web project
字幕文件与视频文件对不上的处理方式
Swagger配置与使用
RK356x U-Boot研究所(命令篇)3.4 mem内存相关命令的用法
Excel template export of easypoi
ES6 real case deconstruction (multidimensional array object) new case:
H5如何获取内网IP和公网IP
STL容器——queue与deque的基本操作
Applet cloud development upload pictures to cloud storage
LeetCode53. 最大子数组和
computed和watch的区别
uniapp中使用ucharts图表,饼状图,柱状图,折线图
Use echars to realize water drop, ring, segmentation, stacking, organization chart, map outline and other charts
Es6最新常用知识宝典(能够帮助你解决面试题困惑,编写程序中出现的问题等)
Solve the problem of inconsistent prediction effect between text detection training model and information model based on paddleocr