一.实验拓扑图

二.实验步骤
LSW1
-
vlan batch 2 to 6
LSW2
-
vlan batch 2 to 6
LSW1
int Ethernet0/0/1 -------pc1
port link-type access
port default vlan 2
interface Ethernet0/0/2-------pc2
port link-type hybrid
port hybrid pvid vlan 3
port hybrid untagged vlan 3 4 5 6
interface Ethernet0/0/3------pc3
port link-type access
[LSW1-Ethernet0/0/3]port default vlan 2
interface Ethernet0/0/4-----pc4
port link-type hybrid
port hybrid pvid vlan 4
port hybrid untagged vlan 3 4
interface Ethernet0/0/6
port link-type hybrid
port hybrid untagged vlan 3 4 5 6
port hybrid tagged vlan 2
LSW2
interface Ethernet0/0/2----pc5
port link-type hybrid
port hybrid pvid vlan 5
port hybrid untagged vlan 3 5
interface Ethernet0/0/3----pc6
port link-type hybrid
port hybrid pvid vlan 6
port hybrid untagged vlan 3 6
LSW1
interface Ethernet0/0/5
port link-type trunk
port trunk allow-pass vlan all
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan all
R1
int g0/0/0
ip add 192.168.1.1 24
int g0/0/0.1
ip add 192.168.2.1 24
dot1q termination vid 2
arp broadcast enable
ip pool 1
network 192.168.1.0 mask 24
gateway-list 192.168.1.1
dns-list 114.114.114.114
q
ip pool 2
network 192.168.2.0 mask 24
gateway-list 192.168.2.1
dns-list 114.114.114.114
q
int g0/0/0
dhcp select global
int g0/0/0.1
dhcp select global
pc 端ip配置
pc1:192.168.2.254
pc2:192.168.1.254
pc3:192.168.2.253
pc4:192.168.1.253
pc5:192.168.1.252
pc6:192.168.1.251
1543

被折叠的 条评论
为什么被折叠?



