当前位置:网站首页>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 .
边栏推荐
- sqlite sql 异常 near “with“: syntax error
- 强化学习-学习笔记8 | Q-learning
- 【demo】循环队列及条件锁实现goroutine间的通信
- Click on the top of today's headline app to navigate in the middle
- NAT地址转换
- Main work of digital transformation
- 财富证券证券怎么开户?通过链接办理股票开户安全吗
- Slider plug-in for swiper left and right switching
- 【C语言】字符串函数
- AntiSamy:防 XSS 攻击的一种解决方案使用教程
猜你喜欢
讨论 | AR 应用落地前,要做好哪些准备?
[answer] if the app is in the foreground, the activity will not be recycled?
Improve application security through nonce field of play integrity API
标准ACL与扩展ACL
socket編程之常用api介紹與socket、select、poll、epoll高並發服務器模型代碼實現
Slider plug-in for swiper left and right switching
[论文分享] Where’s Crypto?
How to clean when win11 C disk is full? Win11 method of cleaning C disk
The report of the state of world food security and nutrition was released: the number of hungry people in the world increased to 828million in 2021
2021年全国平均工资出炉,你达标了吗?
随机推荐
More than 10000 units were offline within ten days of listing, and the strength of Auchan Z6 products was highly praised
RIP和OSPF的区别和配置命令
Some key points in the analysis of spot Silver
Youth experience and career development
【蓝桥杯集训100题】scratch从小到大排序 蓝桥杯scratch比赛专项预测编程题 集训模拟练习题第17题
SQLite SQL exception near "with": syntax error
idea彻底卸载安装及配置笔记
同消费互联网的较为短暂的产业链不同,产业互联网的产业链是相当漫长的
物联网OTA技术介绍
A few simple steps to teach you how to see the K-line diagram
用存储过程、定时器、触发器来解决数据分析问题
AntiSamy:防 XSS 攻击的一种解决方案使用教程
嵌入式C语言程序调试和宏使用的技巧
Wireshark分析抓包数据*.cap
[answer] if the app is in the foreground, the activity will not be recycled?
低代码助力企业数字化转型会让程序员失业?
保证接口数据安全的10种方案
Introduction to OTA technology of Internet of things
Is it safe to open an online futures account now? How many regular futures companies are there in China?
Wireshark analyzes packet capture data * cap