当前位置:网站首页>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
边栏推荐
- 【Codeforces Round #805 (Div. 3)(A~C)】
- typescript3-ts对比js的差别
- typescript5 - compile and install ts code
- 风靡全球25年的重磅IP,新作沦为脚本乐园
- ES:模板字符串的使用
- AutoSAR EcuM系列01- EcuM模块的功能概述和变体类型
- SQL注入漏洞(postgresql注入)
- Fix datagrip connection sqlserver error: [08S01] The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption.
- MagicDraw二次开发过程
- 「活动推荐」探索未来:数字科技
猜你喜欢

How to calculate the daily cumulative capital flow one by one in real time

Charles通过Rewrite越过OPTIONS请求拦截

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

typescript3-ts对比js的差别

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

DP5340 domestic replacement for CM5340 stereo audio A/D converter chip

数据分发服务 (DDS) 内置主题

一文带你玩转offer-01

Mybitatis related configuration files

01 多线程与高并发 - 基础概念
随机推荐
基于SSM实现个性化健康饮食推荐系统
Delphi仿制Web的导航
Keil compile size and storage instructions
服务器可靠性稳定性调优指引
Why does typescript2-typescript add type support to js
01 多线程与高并发 - 基础概念
Architectural Design Guide How to Become an Architect
潜心打磨,主动求变——这群技术排头兵,如何做好底层开发这件事?
docker部署redis一主二从三哨兵模式
JS中对事件流的理解
Thinking about digital transformation of construction enterprises in 2022, the road to digital transformation of construction enterprises
stack containing min function (js)
经典毕业设计:基于SSM实现高校后勤报修系统
2022牛客暑期多校训练营3(ACFGJ)
muduo库学习记录(一)
AutoSAR EcuM系列02- Fixed EcuM的状态管理
Portable small fan PD power chip
typescript3-ts对比js的差别
智能存储柜——解决您的存储需求
40.【vector的运用】