03-0 交换-第3章 虚拟局域网VLAN.ppt
文本预览下载声明
学习内容 一.VLAN优点 广播控制 安全 灵活性与可扩展性 二.VLAN的原理及配置 Vlan的原理 静态VLAN 动态VLAN 三.VLAN的识别 访问端口 中继端口 交换机间链路(Inter-Switch Link,ISL) IEEE 802.1Q 四.VLAN中继协议(VTP) VTP的操作模式(服务器,客户端,透明模式) VTP修剪 五.VLAN间路由 一.VLAN优点 二、VLAN原理 VLAN原理 VLAN Trunk VLAN Trunk VLAN Trunk(cont.) ISL标识(Cisco私有) 通过硬件(ASIC)实现 ISL标识不会出现在工作站,客户端并不知道ISL的封装信息 在交换机或路由器与交换机之间,在交换机与具有ISL网卡的服务器之间可以实现 ISL封装 用ISL头与CRC进行帧封装 可以支持多个VLAN (1024) VLAN号 BPDU控制位 ISL封装(cont.) IEEE公共帧标记协议802.1Q VLAN配置的步骤 配置实例 配置实例Cont. 交换机Asuqa配置如下: Asuqa#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Asuqa(config)#vlan 2 Asuqa(config-vlan)#name Sales Asuqa(config-vlan)#vlan 3 Asuqa(config-vlan)#name Tech Asuqa(config-vlan)#interface f0/2 Asuqa(config-if)#switchport mode access Asuqa(config-if)#switchport access vlan 2 Asuqa(config-if)#no shutdown Asuqa(config-if)#interface f0/3 Asuqa(config-if)#switchport mode access Asuqa(config-if)#switchport access vlan 3 Asuqa(config-if)#no shutdown Asuqa(config-if)#interface f0/1 Asuqa(config-if)#switchport trunk encapsulation dot1q Asuqa(config-if)#switchport mode trunk Asuqa(config-if)#no shutdown Asuqa(config-if)#end Asuqa# 配置实例Cont. 交换机Aiko配置如下: Aiko#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Aiko(config)#vlan 2 Aiko(config-vlan)#name Sales Aiko(config-vlan)#vlan 3 Aiko(config-vlan)#name Tech Aiko(config-vlan)#interface f0/3 Aiko(config-if)#switchport mode access Aiko(config-if)#switchport access vlan 2 Aiko(config-if)#no shutdown Aiko(config-if)#interface f0/5 Aiko(config-if)#switchport mode access Aiko(config-if)#switchport access vlan 3 Aiko(config-if)#no shutdown Aiko(config-if)#interface f0/1 Aiko(config-if)#switchport trunk encapsulation dot1q Aiko(config-if)#switchport mode trunk Aiko(config-if)#no shutdown Aiko(config-if)#end Aiko# 配置实例Cont. Asuqa#show vlan brief VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default
显示全部