赞
踩
一、实验内容:
二、实验拓扑图:
三、实验操作:
SW1
[SW1]vlan batch 2 to 6
[SW1]int g 0/0/3
[SW1-GigabitEthernet0/0/3]port link-type access
[SW1-GigabitEthernet0/0/3]port default vlan 2
[SW1-GigabitEthernet0/0/3]int g 0/0/5
[SW1-GigabitEthernet0/0/5]port link-type access
[SW1-GigabitEthernet0/0/5]port default vlan 2
[SW1]int g 0/0/4
[SW1-GigabitEthernet0/0/4]port hybrid untagged vlan 3 to 6
[SW1-GigabitEthernet0/0/4]port hybrid pvid vlan 3
[SW1-GigabitEthernet0/0/4]int g 0/0/1
[SW1-GigabitEthernet0/0/1]port hybrid pvid vlan 4
[SW1-GigabitEthernet0/0/1]port hybrid untagged vlan 1 to 4
[SW1]int g 0/0/6
[SW1-GigabitEthernet0/0/6]port link-type trunk
[SW1-GigabitEthernet0/0/6]port trunk allow-pass vlan 2 to 6
[SW1-GigabitEthernet0/0/6]int g 0/0/2
[SW1-GigabitEthernet0/0/2]port hybrid tagged vlan 2
[SW1-GigabitEthernet0/0/2]port hybrid untagged vlan 3 to 6
SW2
[SW2]vlan batch 2 to 6
[SW2]int g 0/0/1
[SW2-GigabitEthernet0/0/1]port hybrid pvid vlan 5
[SW2-GigabitEthernet0/0/1]port hybrid untagged vlan 3 to 5
[SW2-GigabitEthernet0/0/1]int g 0/0/2
[SW2-GigabitEthernet0/0/2]port hybrid pvid vlan 6
[SW2-GigabitEthernet0/0/2]port hybrid untagged vlan 3 6
[SW2]int g 0/0/3
[SW2-GigabitEthernet0/0/3]port link-type trunk
[SW2-GigabitEthernet0/0/3]port trunk allow-pass vlan 2 to 6
R1
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.2.1 24
[r1-GigabitEthernet0/0/0]int g0/0/0.1
[r1-GigabitEthernet0/0/0.1]dot1q termination vid 2
[r1-GigabitEthernet0/0/0.1]ip add 192.168.1.1 24
[r1]ip pool v2
[r1-ip-pool-v2]network 192.168.1.0 mask 24
[r1-ip-pool-v2]gateway-list 192.168.1.1
[r1-ip-pool-v2]q
[r1]ip pool v3-6
[r1-ip-pool-v3-6]network 192.168.2.0 mask 24
[r1-ip-pool-v3-6]gateway-list 192.168.2.1
[r1-ip-pool-v3-6]q
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]dhcp select global
[r1-GigabitEthernet0/0/0]int g0/0/0.1
[r1-GigabitEthernet0/0/0.1]dhcp select global
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。