Vlan 、trunk技术

准备工具:Cisco Packet Tracer Student

实验拓扑:
Vlan 、trunk技术
一、配置SW1:
Switch>ena 进入特权模式
Switch#conf 进入全局模式
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10 创建vlan10
Switch(config-vlan)#vlan 20 创建vlan20
Switch(config-vlan)#exit
Switch(config)#int f0/1 进入接口模式
Switch(config-if)#sw acc vlan 10 把端口划分到vlan10
Switch(config-if)#int f0/2
Switch(config-if)#sw acc vlan 20
Switch(config-if)#int f0/3
Switch(config-if)#sw mode trunk 把端口设置为trunk模式
Switch(config-if)#do show vlan 查看VLAN信息

Vlan 、trunk技术
二、配置SW2:同上

三、按拓扑配置主机IP地址

四、测试:同vlan的主机互ping
PC0 ping PC2
Vlan 、trunk技术
PC1 ping PC3
Vlan 、trunk技术

ping通了,就是这样子做!

相关文章:

  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-13
  • 2022-02-24
  • 2022-12-23
猜你喜欢
  • 2021-11-22
  • 2021-03-29
  • 2021-10-07
  • 2021-10-06
  • 2021-06-02
  • 2022-02-21
相关资源
相似解决方案