当前位置:网站首页>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 .
边栏推荐
- 【demo】循环队列及条件锁实现goroutine间的通信
- String type, constant type and container type of go language
- 『HarmonyOS』DevEco的下载安装与开发环境搭建
- 元宇宙带来的创意性改变
- RIP和OSPF的区别和配置命令
- Chapter 3 business function development (to remember account and password)
- Native JS verification code
- PHP面试题 foreach($arr as &$value)与foreach($arr as $value)的用法
- 【蓝桥杯集训100题】scratch从小到大排序 蓝桥杯scratch比赛专项预测编程题 集训模拟练习题第17题
- Wireshark analyzes packet capture data * cap
猜你喜欢

go语言的字符串类型、常量类型和容器类型

能同时做三个分割任务的模型,性能和效率优于MaskFormer!Meta&UIUC提出通用分割模型,性能优于任务特定模型!开源!...

How to clean when win11 C disk is full? Win11 method of cleaning C disk

海量数据去重的hash,bitmap与布隆过滤器Bloom Filter

Idea completely uninstalls installation and configuration notes

回归测试的分类
![[论文分享] Where’s Crypto?](/img/27/9b47bfcdff8307e63f2699d6a4e1b4.png)
[论文分享] Where’s Crypto?

debian10系统问题总结

Hash, bitmap and bloom filter for mass data De duplication

socket编程之常用api介绍与socket、select、poll、epoll高并发服务器模型代码实现
随机推荐
Five network IO models
Personal best practice demo sharing of enum + validation
【demo】循环队列及条件锁实现goroutine间的通信
Taffydb open source JS database
[paddleseg source code reading] add boundary IOU calculation in paddleseg validation (1) -- val.py file details tips
[principle and technology of network attack and Defense] Chapter 6: Trojan horse
Kubernetes DevOps CD工具对比选型
nest.js入门之 database
元宇宙带来的创意性改变
讨论 | AR 应用落地前,要做好哪些准备?
物联网OTA技术介绍
Unlike the relatively short-lived industrial chain of consumer Internet, the industrial chain of industrial Internet is quite long
手撕Nacos源码(先撕客户端源码)
Do you really understand sticky bag and half bag? 3 minutes to understand it
Datasimba launched wechat applet, and datanuza accepted the test of the whole scene| StartDT Hackathon
[4500 word summary] a complete set of skills that a software testing engineer needs to master
[demo] circular queue and conditional lock realize the communication between goroutines
Hutool - 轻量级 DB 操作解决方案
Hash, bitmap and bloom filter for mass data De duplication
讨论| 坦白局,工业 AR 应用为什么难落地?