当前位置:网站首页>HCIA-R&S自用笔记(19)VLAN配置及实验、VLAN间路由
HCIA-R&S自用笔记(19)VLAN配置及实验、VLAN间路由
2022-07-26 22:15:00 【筐瓢大师小吕】
VLAN配置及实验(7/22,51min)
| 命令 | 备注 |
| vlan 10 | 创建单个Vlan |
| vlan batch 10 to 20 | 创建多个Vlan |
| port link-type access/trunk/hybrid | 配置接口类型 |
| port default vlan 10 | 配置Access关联Vlan/PVID |
| port truk allow-pass vlan 10 | 配置Trunk允许Vlan通过 (默认只允许Vlan1) |
| port trunk pvid vlan 10 | 配置Trunk的PVID |
| port hybrid tagged/untagged vlan 10 | 配置Hybrid标记Vlan |
| port hybrid pvid vlan 10 | 配置Hybrid的PVID |
| display vlan | 验证vlan |
| display port vlan | 验证vlan |
port hybrid tagged vlan 10+port hybrid pvid vlan 10≈port defalut vlan 10
VLAN基础实验

拓扑如上
从交换机连接终端的设备接口进行分析:终端至交换机以及交换机至终端的流量都不带Tag,故在这里的出方向一定会剥离标签,故这些接口使用Hybrid接口最方便:
仅在SW1 Gi0/0/2做演示:
[SW1]int gi0/0/2
[SW1-GigabitEthernet0/0/2]p l h
[SW1-GigabitEthernet0/0/2]port hybrid untagged vlan 10 100
[SW1-GigabitEthernet0/0/2]port hybrid pvid vlan 10所有连接终端的接口都按如上配置;交换机的级联端口为Trunk模式,全Vlan放行
VLAN间路由(7/22,30min)
二层交换机+路由器/三层交换机实现Vlan之间通信
路由器也无法识别带标签的数据包
VLAN间路由:多层交换(MLS)

在二层交换机上配置Vlan,每一个Vlan使用一条独占的物理链路连接到路由器的一个接口上
VLAN间路由-单臂路由

将交换机和路由器之间的链路配置为Trunk链路,并在路由器上创建子接口以支持VLAN路由
[Huawei]int gi0/0/0.?
<1-4096> GigabitEthernet interface subinterface number
[Huawei-GigabitEthernet0/0/0.10]dot1q termination vid 10
//开启子接口和Vlan
[Huawei-GigabitEthernet0/0/0.10]arp broadcast enable
//开启子接口的ARP广播功能VLAN间路由-三层交换

[SW]vlan 10
[SW-vlan10]int vlanif 10
[SW-Vlanif10]ip add 10.0.0.254 24边栏推荐
- 蔚来杯2022牛客暑期多校训练营2
- 测试开发是开发吗?
- Module 8 (message queue MySQL table storing message data)
- json格式化小工具--pyqt5实例
- Those environment configurations and plug-ins of idea
- Page file system based on C language
- STM32 how to use serial port
- The trailer of Samsung Galaxy Z foldable product leaked: 'flexibility is better than plane'
- App information reconnaissance & night God simulator burp packet capture configuration
- Weilai cup 2022 Niuke summer multi school training camp 1
猜你喜欢

Ribbon load balancing

NVIDIA SMI error: NVIDIA SMI has failed because it could't communicate with the NVIDIA driver complete record

App information reconnaissance & night God simulator burp packet capture configuration

Plato farm is expected to further expand its ecosystem through elephant swap

How to recover the original data when the U disk is damaged, and how to recover the damaged data when the U disk is damaged

VCs compilation and simulation process

Embedded SIG | 分布式软总线

Implementation principle of semaphore in golang

Apifox--比 Postman 还好用的 API 测试工具

Docker uses mysql:5.6 and owncloud image to build a personal network disk, install and build a private warehouse harbor
随机推荐
基于C语言的页式文件系统
Plato farm is expected to further expand its ecosystem through elephant swap
KT6368A蓝牙芯片开发注意事项以及问题集锦--长期更新
Shardingsphere JDBC keyword problem
利用Go制作微信机器人(一)发送消息
《强化学习周刊》第55期:LB-SGD、MSP-DRL & 对抗鲁棒强化学习
Cached database for memcached
Weilai cup 2022 Niuke summer multi school training camp 1
Day07 MySQL knowledge points re summary and multi table query
基于信心上界蒙特卡洛搜索树(UCT)实现四子棋
what is qrc in qt
DTS is equipped with a new self-developed kernel, which breaks through the key technology of the three center architecture of the two places Tencent cloud database
Calendar documents implemented by several qwidgets
『MongoDB』你想要的MongoDB基本操作这里都有
比海豹便宜,造型炸裂空间大,20万左右真没对手?长安全新“王炸”这样选才划算
STM32-如何使用串口
How to recover the original data when the U disk is damaged, and how to recover the damaged data when the U disk is damaged
7.27抢先看 | openEuler 志高远,开源汇智创未来-开放原子全球开源峰会欧拉分论坛最详细议程出炉
Why did kylin 990 series fail to meet cortex-a77 and Mali G77?
Weilai cup 2022 Niuke summer multi school training camp 2