当前位置:网站首页>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
边栏推荐
猜你喜欢

01 多线程与高并发 - 基础概念

【day5】数组

typescript2-typescript为什么给js添加类型支持

hicp第六天

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

Interview with Ant: How do these technology pioneers do the bottom-level development well?| Excellent technical team interview

英语语法-名词性从句

40.【vector的运用】

Basic usage of tree arrays

typescript6-简化运行ts的步骤
随机推荐
hcip第八天
Two Permutations(2022杭电杯)
typescript6 - simplify the steps to run ts
01 多线程与高并发 - 基础概念
typescript7-typescript常用类型
MagicDraw secondary development process
[GAN]老照片修复Bringing Old Photos Back to Life论文总结
Limit injection record of mysql injection in No. 5 dark area shooting range
typescript5 - compile and install ts code
一文带你玩转offer-01
【BERT-多标签文本分类实战】之二——BERT的地位与名词术语解释
K-Net:Towards Unified Image Segmentation,基于动态内核的通用分割网络,(NMS-free and Box-free),从语义/实例分割到全景分割。
BGP:边界网关路由协议 无类别的路径矢量EGP协议
代币(双代币)系统研究
The full arrangement of the 46th question in C language.Backtracking
Max Sum Plus Plus HDU - 1024
The blockbuster IP that has been popular in the world for 25 years, the new work has become a script paradise
redis伪集群搭建
智能存储柜——解决您的存储需求
经典毕业设计:基于SSM实现高校后勤报修系统