1.根据题干思考 将PC1 3划为VLAN 2
PC2划为VLAN3 PC4划为VLAN4 PC5划为VLAN5 PC6划为VLAN6
在各交换机上批量创建VLAN
2.按条件1将PC1 PC3所在接口配置为access,PVID为vlan 2
[SW1]int g0/0/2
[SW1-GigabitEthernet0/0/2]port link-type access
[SW1-GigabitEthernet0/0/2]port default vlan 2
[SW2]int g0/0/2
[SW2-GigabitEthernet0/0/2]port link-type access
[SW2-GigabitEthernet0/0/2]port default vlan 2
3.根据题干分析可得,PC2所在接口通过VLAN 3 to 6, PC4通过VLAN 3 to 5
PC5通过VLAN 3 to 5 PC6通过VLAN 3
[SW1-GigabitEthernet0/0/3]port hybrid untagged vlan 3 to 6
[SW1-GigabitEthernet0/0/3]port hybrid pvid vlan 3
[SW2]int g0/0/3
[SW2-GigabitEthernet0/0/3]port hybrid pvid vlan 4
[SW2-GigabitEthernet0/0/3]port hybrid untagged vlan 3 to 5
[SW3]int g0/0/2
[SW3-GigabitEthernet0/0/2]port hybrid pvid vlan 5
[SW3-GigabitEthernet0/0/2]port hybrid untagged vlan 3 to 5
[SW3-GigabitEthernet0/0/2]int g0/0/3
[SW3-GigabitEthernet0/0/3]port hybrid pvid vlan 6
[SW3-GigabitEthernet0/0/3]port hybrid untagged vlan 3 6
4.配置交换机与交换机连接的接口
[SW1]int g0/0/4
[SW1-GigabitEthernet0/0/4]port link-type trunk
[SW1-GigabitEthernet0/0/4]port trunk allow-pass vlan 2 to 6
[SW2-GigabitEthernet0/0/3]int g0/0/4
[SW2-GigabitEthernet0/0/4]port link-type trunk
[SW2-GigabitEthernet0/0/4]port trunk allow-pass vlan 2 to 6
[SW2-GigabitEthernet0/0/4]int g0/0/5
[SW2-GigabitEthernet0/0/5]port link-type trunk
[SW2-GigabitEthernet0/0/5]port trunk allow-pass vlan 2 to 6
SW3-GigabitEthernet0/0/3]int g0/0/5
[SW3-GigabitEthernet0/0/5]port link-type trunk
[SW3-GigabitEthernet0/0/5]port trunk allow-pass vlan 2 to 6
5.为满足所有PC通过DHCP获取IP地址
在SW1与R1连接的接口上配置vlan 2打标签进入R1创建一个子接口为其划分IP
再配置vlan 3 to 6剥离标签进入R1用物理接口为其划分IP
[SW1]int g0/0/1
[SW1-GigabitEthernet0/0/1]port hybrid tagged vlan 2
[SW1-GigabitEthernet0/0/1]port hybrid untagged vlan 3 to 6
[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 192.168.1.1 24
[R1-GigabitEthernet0/0/1]int g0/0/0.1
[R1-GigabitEthernet0/0/0.1]dot1q termination vid 2
[R1-GigabitEthernet0/0/0.1]ip add 192.168.2.1 24
[R1-GigabitEthernet0/0/0.1]arp broadcast enable
6.在R1上开启DHCP服务建立池塘配置
[R1]ip pool v2
[R1-ip-pool-v2]network 192.168.2.0 mask 24
[R1-ip-pool-v2]gateway-list 192.168.2.1
[R1]ip pool v3-6
[R1-ip-pool-v3-6]network 192.168.1.0 mask 24
[R1-ip-pool-v3-6]gateway-list 192.168.1.1
[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]dhcp select global
[R1-GigabitEthernet0/0/1]int g0/0/0.1
[R1-GigabitEthernet0/0/0.1]dhcp select global
通过ping测试 实验完成
该实验考察了HCIP交换技术中的接口类型知识点,灵活运用hybrid混杂模式来实现多种多要的要求。