实验要求:
- pc0与pc1互通
- pc2与pc3互通
实验步骤:
A交换机配置:
enable
config t
hostname switch-A
vlan 10
vlan 20
exit
interface f0/1
switch access vlan 10
no shutdown
interface f0/2
switch access vlan 20
no shutdown
interface f0/24
switch mode trunk
no shutdown
end
show vlan
B交换机配置:
enable
config t
hostname switch-B
vlan 10
vlan 20
exit
interface f0/1
switch access vlan 10
no shutdown
interface f0/2
switch access vlan 20
no shutdown
interface f0/24
switch mode trunk
no shutdown
end
show vlan