当前位置:网站首页>hcip实验
hcip实验
2022-07-30 07:25:00 【缺技术的猪】

配置过程
1、交换机的接口处理
sw1的接口处理
1、向上的接口为混杂
[sw1]vlan batch 2 to 5
[sw1]int e0/0/4
[sw1-Ethernet0/0/4]port hybrid tagged vlan 2
[sw1-Ethernet0/0/4]port hybrid untagged vlan 3 to 5
2、连右边交换机的接口
[sw1-Ethernet0/0/1]int e0/0/3
[sw1-Ethernet0/0/3]port link-type trunk
[sw1-Ethernet0/0/3]port trunk allow-pass vlan 2 to 5
3、连接PC1的接口
[sw1]int e0/0/1
[sw1-Ethernet0/0/1]port link-type access
[sw1-Ethernet0/0/1]port default vlan 2
4、连接PC2的接口
[sw1]int e0/0/2
[sw1-Ethernet0/0/2]port hybrid pvid vlan 3
[sw1-Ethernet0/0/2]port hybrid untagged vlan 3 to 5
sw2的接口处理
1、连接左边交换机的接口调成 trunk或者hybrid 类型(此处用hybrid模拟trunk)
[sw2]vlan batch 2 to 5
[sw2]int e0/0/1
[sw2-Ethernet0/0/1]port hybrid tagged vlan 2 to 5
2、连接PC3的接口
[sw2]int e0/0/2
[sw2-Ethernet0/0/2]port link-type access
[sw2-Ethernet0/0/2]port default vlan 2
3、连接PC4的接口
[sw2-Ethernet0/0/2]int e0/0/3
[sw2-Ethernet0/0/3]port hybrid pvid vlan 4
[sw2-Ethernet0/0/3]port hybrid untagged vlan 3 to 4
4、连接右边交换机的接口
[sw2-Ethernet0/0/3]int e0/0/4
[sw2-Ethernet0/0/4]port link-type trunk
[sw2-Ethernet0/0/4]port trunk allow-pass vlan 2 to 5
sw3的接口处理
1、连接左边交换机的接口
[sw3]vlan batch 2 to 5
[sw3]int e0/0/1
[sw3-Ethernet0/0/1]port link-type trunk
[sw3-Ethernet0/0/1]port trunk allow-pass vlan 2 to 5
2、连接PC5的接口
[sw3]int e0/0/2
[sw3-Ethernet0/0/2]port hybrid pvid vlan 4
[sw3-Ethernet0/0/2]port hybrid untagged vlan 3 to 4
3、连接PC6的接口
[sw3]int e0/0/3
[sw3-Ethernet0/0/3]port hybrid pvid vlan 5
[sw3-Ethernet0/0/3]port hybrid untagged vlan 3 5
2、路由器处理
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[r1]interface GigabitEthernet 0/0/0.1
[r1-GigabitEthernet0/0/0.1]dot1q termination vid 2
[r1-GigabitEthernet0/0/0.1]ip address 192.168.2.1 24
[r1-GigabitEthernet0/0/0.1]arp broadcast enable
[r1]dhcp enable
[r1]ip pool v2
[r1-ip-pool-v2]network 192.168.2.0 ma 24
[r1-ip-pool-v2]gateway-list 192.168.2.1
[r1-ip-pool-v2]dns-list 114.114.114.114 8.8.8.8
[r1]ip pool v345
[r1-ip-pool-v345]network 192.168.1.0 ma 24
[r1-ip-pool-v345]gateway-list 192.168.1.1
[r1-ip-pool-v345]dns-list 114.114.114.114 8.8.8.8
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]dhcp select global
[r1]int g0/0/0.1
[r1-GigabitEthernet0/0/0.1]dhcp select global
边栏推荐
- OA项目之待开会议&历史会议&所有会议
- 2020 ACM | MoFlow: An Invertible Flow Model for Generating Molecular Graphs
- Mybitatis related configuration files
- [Mini Program Column] Summarize the development specifications of uniapp to develop small programs
- 41.【vector应用操作2】
- Architectural Design Guide How to Become an Architect
- 02 多线程与高并发 - synchronized 解析
- Kubernetes 在科技革命中的演变
- 基于SSM实现个性化健康饮食推荐系统
- 【防作弊】Unity防本地调时间作弊
猜你喜欢

2022年施工企业数字化转型思考,施工企业数字化转型之路

41.【vector应用操作2】

K-Net:Towards Unified Image Segmentation,基于动态内核的通用分割网络,(NMS-free and Box-free),从语义/实例分割到全景分割。

蓝牙技术|了解蓝牙LE Audio的Auracast广播音频

谷粒商城--环境部署(2022/7/28最新)
Get all interface paths and names in the controller
![elk报错:[syslogs] index has exceeded [1000000]](/img/f0/45871609ccf25c2bdd0f3ad239ceb7.png)
elk报错:[syslogs] index has exceeded [1000000]

ipset restore命令维护set,但原已存在的条目未删除掉

手把手教学OneOS FOTA升级

C13—使用innosetup工具制作软件安装向导2022-07-23
随机推荐
JS中对事件流的理解
申请内存,std::transform和AVX256指令集用例和执行速度比较
taro package compilation error
[GAN]老照片修复Bringing Old Photos Back to Life论文总结
Monkey and Banana
保存在 redis中的token 如何续期?
【防作弊】Unity防本地调时间作弊
经典毕业设计:基于SSM实现高校后勤报修系统
OA项目之待开会议&历史会议&所有会议
MongoDB - 千万级数据脚本过滤笔记
数据分发服务 (DDS) 内置主题
typescript6 - simplify the steps to run ts
selenium module
一文带你玩转offer-01
孙洪鹤讲教材:原点+众筹+产品,逆向营销实战操作方案
typescript1 - what is typescript
RT-Thread-GD32的SPI在切换同一总线不同挂载设备时会出现切换后乱发送数据的问题
谷粒商城--环境部署(2022/7/28最新)
IDEA search plug-in has no results and the solution has been spinning in circles
ARM体系结构概述