当前位置:网站首页>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 !
边栏推荐
- Pat class B 1002: write this number
- Excel template export of easypoi
- ArcMap 创建常量栅格并镶嵌至新栅格
- (elaborate) ES6 remaining parameters, ES6 built-in objects, template string content (detailed example Dictionary) and practical cases of flexible use of the project
- ECS deployment web project
- Two methods of obtaining URL parameters and various methods of obtaining location objects
- 指针进阶简单总结
- Flex弹性布局
- 网络命令:网卡信息,netstat,arp
- 字幕文件与视频文件对不上的处理方式
猜你喜欢
随机推荐
js 原生对象加属性
es6新增-字符串部分
Cesium bind mouse events and remove mouse events
BUUCTF 杂项——二维码
Addition and removal of cesium geojson data
ES6 latest commonly used knowledge dictionary (which can help you solve interview questions, problems in programming, etc.)
使用Echars实现水滴状、环形图、分割图、堆叠、组织架构图、地图轮廓等图表
Cesium 获取鼠标点击处经纬度的三种方法
Applet editor rich text editing and rich text parsing
【C语言_复习_学习第二课】什么是进制?进制之间应该如何转换
2020-11-10
(精讲)Es6 剩余参数,ES6内置对象,模板字符串内容(详例宝典)及灵活运用项目的实战案例
ECS deployment web project
Excel calculates the remaining days of the month
Wechat applet cloud development and use method-1
Uniapp uses uview to realize folding panel
轮播图的两种方法及自动轮播
Easypoi excel simple export
Easypoi excel multi sheet import
Interface parameters return encapsulated class result









![[AI] action recognition using simple neural network -- Based on coco key points](/img/67/cd6be6e070fb5d4d44ee043ebd7fac.png)