当前位置:网站首页>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 !
边栏推荐
猜你喜欢

Uni app conditional compilation ifdef ENDIF compatible with multiple terminals

es6新增-数组/对象的解构赋值

Excel calculates the remaining days of the month

Shell script configures root to login to other hosts without secret

es6新增-Symbol数据类型

Applet cloud development form submission and data acquisition in the page

Solve the problem of inconsistent prediction effect between text detection training model and information model based on paddleocr

Addition and removal of cesium geojson data

Ucharts chart, pie chart, bar chart and line chart are used in uniapp

Cesium 绑定鼠标事件和移除鼠标事件
随机推荐
uniapp 使用uview实现折叠面板
mysql - 索引
(精讲)Es6 剩余参数,ES6内置对象,模板字符串内容(详例宝典)及灵活运用项目的实战案例
STL容器——queue与deque的基本操作
Wechat applet cloud development and use method-1
js 原生对象加属性
Uniapp uses uview to realize folding panel
Wechat applet obtains the week, morning, noon and evening of month, year and day
Cesium 綁定鼠標事件和移除鼠標事件
SQL注入
Nacos配置管理
Internship project 1 - personalized homepage configuration
小程序云开发表单提交并在页面中获取数据
Applet editor rich text editing and rich text parsing
Bi design: distributed high concurrency epidemic prevention health management system based on vue+socket+redis
RK356x U-Boot研究所(命令篇)3.4 mem内存相关命令的用法
Switch user mode, privileged mode, global mode, port mode
Log4j的使用
Shell script configures root to login to other hosts without secret
无重复字符的最长字串