当前位置:网站首页>One-arm routing and 30% switch
One-arm routing and 30% switch
2022-08-05 06:10:00 【Magic star】
One-arm routing and Layer 3 switch
One-arm routing
One-arm routing refers to the interconnection between different VLANs (Virtual Local Area Networks) that were originally isolated from each other by configuring sub-interfaces on one interface of the router.
- Advantages: Realize communication between different vlans, help to understand and learn vlan principles and sub-interface concepts
- Disadvantages: It is easy to become a single point of failure in the network, the configuration is slightly complicated, and it is of little practical significance
Experimental topology one
Switch Configuration
Configuring routing (one-arm routing)
PC1 ping 192.168.2.1
Layer 3 switch
- Layer 3 switching = Layer 2 switching + Layer 3 forwarding
- Layer 3 switches have some router functions and work at the network layer
The Forwarding Principle of Layer 3 Switches
In this network, the source host, destination of communicationThe hosts are connected to the same Layer 3 switch, but they are in different VLANs (network segments).
For the Layer 3 switch, the two hosts are located in its directly connected network segment, and the routes corresponding to their IPs are all directly connected routes.
Function:
Layer 3 switching technology can realize inter-vlan communication;
speed up data exchange within large local area networks.
Advantages:
Can do one routing, multiple forwarding
one routing: The first packet is processed by the three-layer engine, re-encapsulates the MAC, and then routes and forwards the packet;
multiple exchanges: After the first packet is forwarded, an MSL entry will be created in the hardware. The MSL contains the FIB (forwarding information base: including the adjacent host IP and vlanid),Adjacency table (including MAC addresses of adjacent hosts), Re-encapsulate data frames by querying FIB and adjacency table, and forward data from corresponding ports.
Experimental topology two
Configure Layer 2 switches, create vlans in batches, enter ports e0/0/1, e0/0/2, and e0/0/4, set the ports to access mode, and setPut each vlan into the corresponding vlan; enter the e0/0/3 port, set the port to trunk mode, and allow all vlan communication.
Configure the Layer 3 switch, enter port g0/0/1, set the port to Trunk mode, and allow all vlan communication; set vlan in batches, then enter the logical interface of VLAN10, set the port'sIP address and subnet mask
PC1 communicates with PC2, PC3 (ping 192.168.2.1, ping192.168.3.1)
Command extension:
One-arm routing:
- dotlq termination vid //The single-layer VLAN ID used to configure the sub-interface dotlq termination
- arp broadcast enble //If not configured, the arp broadcast cannot be actively sent, and the IP packet will be directly discarded and not forwarded
Layer 3 switch;
- interface vlanif //Used to enter the vlanif interface view
- display ip interface brief //View port IP information
边栏推荐
猜你喜欢
【Day8】 RAID磁盘阵列
【Day8】RAID Disk Array
Getting Started 05 Using cb() to indicate that the current task is complete
错误类型:reflection.ReflectionException: Could not set property ‘xxx‘ of ‘class ‘xxx‘ with value ‘xxx‘
IJCAI 2022|Boundary-Guided Camouflage Object Detection Model BGNet
Unity中的GetEnumerator 方法及MoveNext、Reset方法
网络布线与数制转换
论那些给得出高薪的游戏公司底气到底在哪里?
Autoware--北科天绘rfans激光雷达使用相机&激光雷达联合标定文件验证点云图像融合效果
TCP/IP四层模型
随机推荐
每日一题-寻找两个正序数组的中位数-0713
D41_缓冲池
Dsf5.0 bounced points determine not return a value
每日一题-最长回文子串-0714
入门文档01 series按顺序执行
硬盘分区和永久挂载
腾讯云云函数SCF—入门须知
[Day5] Soft and hard links File storage, deletion, directory management commands
PVE 直通硬盘到TrueNAS
spark源码-任务提交流程之-7-流程梳理总结
Spark源码-任务提交流程之-6.1-sparkContext初始化-创建spark driver端执行环境SparkEnv
每日一题-有效的括号-0719
lvm logical volume and disk quota
SSL证书提示过期或者无效,该怎么处理呢?
虚幻引擎5都有哪些重要新功能?
spark源码-任务提交流程之-3-ApplicationMaster
ACL 和NAT
Why can't I add a new hard disk to scan?How to solve?
每日一题-合并K个升序链表-0722
D39_向量