当前位置:网站首页>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 .
边栏推荐
- Improve application security through nonce field of play integrity API
- Skills of embedded C language program debugging and macro use
- [paddleseg source code reading] add boundary IOU calculation in paddleseg validation (1) -- val.py file details tips
- 现在网上期货开户安全吗?国内有多少家正规的期货公司?
- C语言中匿名的最高境界
- Introduction de l'API commune de programmation de socket et mise en œuvre de socket, select, Poll et epoll
- Pro2: modify the color of div block
- 保证接口数据安全的10种方案
- 备份阿里云实例-oss-browser
- Five simple ways to troubleshoot with Stace
猜你喜欢
[论文分享] Where’s Crypto?
不能忽略的现货白银短线操作小技巧
标准ACL与扩展ACL
【蓝桥杯集训100题】scratch从小到大排序 蓝桥杯scratch比赛专项预测编程题 集训模拟练习题第17题
idea彻底卸载安装及配置笔记
磁盘存储链式的B树与B+树
Summary of evaluation indicators and important knowledge points of regression problems
The highest level of anonymity in C language
Kirk Borne的本周学习资源精选【点击标题直接下载】
你真的理解粘包与半包吗?3分钟搞懂它
随机推荐
通过 Play Integrity API 的 nonce 字段提高应用安全性
sqlite sql 异常 near “with“: syntax error
String type, constant type and container type of go language
Usage of PHP interview questions foreach ($arr as $value) and foreach ($arr as $value)
Pro2: modify the color of div block
Summary of debian10 system problems
[4500 word summary] a complete set of skills that a software testing engineer needs to master
Youth experience and career development
【Unity Shader】插入Pass实现模型遮挡X光透视效果
PIP related commands
小试牛刀之NunJucks模板引擎
Chapter 3 business function development (to remember account and password)
Using stored procedures, timers, triggers to solve data analysis problems
保证接口数据安全的10种方案
简单几步教你如何看k线图图解
Cf:c. factors and powers of two [DP + sort + Select Board + select several numbers equal to the minimum number of known sums]
Idea completely uninstalls installation and configuration notes
备份阿里云实例-oss-browser
Kubernetes DevOps CD工具对比选型
AI 击败了人类,设计了更好的经济机制