数据网组建 VLAN的基本配置 【课前】多交换机Trunk连接.pptVIP

  • 7
  • 0
  • 约2.12千字
  • 约 14页
  • 2021-02-23 发布于北京
  • 举报

数据网组建 VLAN的基本配置 【课前】多交换机Trunk连接.ppt

* * * * * * * * * * * 【 共23页 第*页 】 第*页 共35页 【 共23页 第*页 】 第*页 共35页 【 共23页 第*页 】 第*页 共35页 【 共23页 第*页 】 第*页 共35页 【 共23页 第*页 】 第*页 共35页 【 共23页 第*页 】 第*页 共35页 【 共23页 第*页 】 第*页 共35页 【 共23页 第*页 】 第*页 共35页 【 共23页 第*页 】 第*页 共35页 【 共23页 第*页 】 第*页 共35页 【 共23页 第*页 】 第*页 共35页 【 共23页 第*页 】 第*页 共35页 多交换机Trunk连接 主讲老师:王文轩 通信学院数据微课制作团队 五分钟碎片化学习系列 Packet Tracer版 所属知识点: 局域网组建与维护 局域网广播域隔离保护技术 Trunk示例 三 Trunk原理 一 Trunk配置 二 提纲 跨交换机VLAN工作 1 2 3 4 1 2 3 4 交换机 1 交换机 2 市场部 市场部 财务部 财务部 5 5 vlan10 vlan10 vlan20 vlan20 vlan10 vlan20 A A A A A A A A T T 报文 报文 v10 报文 Vlan untag tag 10 p1,p2 p5 20 p3,p4 p5 Vlan untag tag 10 p1,p2 p5 20 p3,p4 p5 端口类型 Access 1个access 端口只属于1个VLAN access端口发送不带标签的报文 缺省所有端口都包含在vlan1中,且都是access ports 一般与pc、server相连时使用 Trunk 1个trunk 端口可以属于多个VLAN trunk 端口通过发送带标签的报文来区别某一数据包属于哪一VLAN 标签遵守IEEE802.1Q协议标准 一般用于交换机级联端口,传递多组VLAN信息时使用 Trunk示例 三 Trunk原理 一 Trunk配置 二 提纲 Trunk链路配置 命令格式: Switch(config-if)#switchport mode trunk Switch(config-if)#switchport trunk allowed vlan vlan编号 注意:交换机接口模式 查看端口switchport状态 命令格式: Switch#show interfaces fastethernet 端口号 switchport Trunk示例 三 Trunk原理 一 Trunk配置 二 提纲 网络拓扑 S1(config)#vlan 100 //创建VLAN 100 S1(config)#vlan 200 //创建VLAN 200 S1(config)#vlan 300 //创建VLAN 300 S1(config)#interface fastethernet 0/1 S1(config-if)#switchport mode access S1(config-if)#switchport access vlan 100 //把Fa0/1口定义为A口,并属于VLAN 100 S1(config)#interface fastethernet 0/2 S1(config-if)#switchport mode trunk S1(config-if)#switchport trunk allowed vlan 100-300 //把Fa0/2口定义为T口,属于VLAN 100、200、300多个VLAN S1#show interface fastethernet 0/2 switchport //S2与S1的配置相同,大家自行完成 配置内容 操作验证 配置前:PC1 ping PC2, 配置后:PC1 ping PC2, 前后结果请比较(截图1) S1#show vlan(截图2) S2#show vlan(截图3) 操作演示 感谢同学们观看! 祝学有所获! * * * 【 共23页 第*页 】 第*页 共35页 【 共23页 第*页 】 第*页 共35页 【 共23页 第*页 】 第*页 共35页 【 共23页 第*页 】 第*页 共35页 【 共23页 第*页 】 第*页 共35页 【 共23页 第*页 】 第*页 共35页 【 共23页 第*页 】 第*页 共35页 【 共23页 第*页 】 第*页 共35页 【 共2

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档