HCIP交换技术(接口类型考察)实验

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混杂模式来实现多种多要的要求。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值