当前位置:网站首页>vlan试验2021.1.14
vlan试验2021.1.14
2022-07-27 17:11:00 【拥抱mo mo】
vlan大实验
一,搭建拓扑
二,划分vlan
1,将pc1 pc3划分入vlan2,
2,将pc2划分为vlan2
3,将pc4,pc5划分为vlan4
4,将pc6划分为vlan5
三,配置交换机vlan
[Huawei-Ethernet0/0/1]port link-type access 先将该接口定义为接入模式
*
四,创建trunk干道
trunk干道—中继干道 不属于任何一个vlan;承载所有vlan的流量转发;具有标记(封装VLANID)和识别(读取,解封装VLANID)的能力;
[sw1]interface GigabitEthernet 0/0/1
[sw1-GigabitEthernet0/0/1]port link-type trunk 定义接口为trunk模式;

五,dhcp 获取IP地址。
6,单臂路由,创建子接口。多层交换机(SVI)

在这里插入
七,获取地址
八,ping,使全网可达。
不同端口区别

图片描述
*
vlan配置基础命令
①VLAN建立:全局模式下 vlan 1
②改变接口模式:接口模式下 switchport mode + 模式
③将端口加入到VLAN:接口模式下 switchport access VLAN
④将端口改变为Trunk模式:接口模式下 switchport mode trunk
⑤为接口封装802.1:接口模式下 switchport trunk encapsulation dot1q
⑥启用路由功能:全局模式下 ip routing
⑦为配置ip地址:接口模式下 ip address ip地址 子网掩码
⑧开启端口:接口模式下 no shutdown
⑨虚拟端口:全局模式下 interface fastEthernet 0/0._ _为VLAN号
⑩封装802.1:Router(config-subif)# encapsulation dot1Q VLAN号
边栏推荐
- [basic knowledge of deep learning - 50] PCA dimensionality reduction principal component analysis
- JS 寻找所有节点sibling childNodes children
- Come to sword finger offer 03. Repeated numbers in the array
- 【深度学习基础知识 - 47】贝叶斯网络与朴素贝叶斯
- 【深度学习基础知识 - 48】贝叶斯网络的特点
- Uncover the mystery of Qualcomm ultrasonic fingerprint being "cracked by film"
- Intel releases horse ridge chip: 22nm process, which can control multiple qubits
- Oppo released the first AR glasses and announced that it would invest 50billion in research and development in the next three years
- 【深度学习基础知识 - 46】贝叶斯定理与条件概率公式
- GestureDetector(手势识别)
猜你喜欢

BroadcastReceiver(广播)
![[basic knowledge of deep learning - 37] solve the imbalance between positive and negative samples](/img/71/4052607951eb52862a6fd36366f216.png)
[basic knowledge of deep learning - 37] solve the imbalance between positive and negative samples
Dry goods of technical practice | preliminary exploration of large-scale gbdt training

Flink introduction and operation architecture

S32K系列芯片--简介

An unknown fastcgi error occurred in IIS: 0x80070005

访问控制

Introduction to socke programming

A lock faster than read-write lock. Don't get to know it quickly

VS2017#include 'xxx.h'
随机推荐
一种比读写锁更快的锁,还不赶紧认识一下
Transaction log full problem handling in sqlserver 2008
MarqueeTextview(跑马灯)
Turn Hyper-V on and off
Embedded C language structure
【深度学习基础知识 - 40】CNN为什么比DNN在图像领域更具优势
redis底层数据结构详解
【日常积累 - 06】查看cuda和cudnn版本
Intent(有无返回值得跳转)
几种无线协议简介
DNSSEC verification with dig [verify DNSSEC with dig]
OneNote code highlighting
[basic knowledge of deep learning - 48] characteristics of Bayesian network
首发骁龙765G!Redmi K30 5G版发布:支持5G双模120Hz屏,定价1999元起
发布自己的npm组件库
【华为云Stack】【大架光临】第13期:管理区解耦架构见过吗?帮政企客户搞定大难题
I want to consult. Our maxcompute spark program needs to access redis, development environment and production environment redis
Introduction to socke programming
王牌代码静态测试工具Helix QAC 2022.2中的新增功能(2)
记一次无准备的实习面试