文档详情

chapter1-交换机基础.ppt

发布:2018-05-18约8.07千字共41页下载文档
文本预览下载声明
交换机硬件 交换机硬件 交换机硬件 交换机配置基础 交换机的命令模式相互转化 模式转换图 交换机的端口类型 交换机端口类型 交换机端口类型 交换机的端口类型 交换机端口类型 交换机的端口配置实验 【实验配置】 (1)配置接口基本信息 Switch# config terminal Switch(config)# interface FastEthernet0/2 Switch(config-if)# description Port_A /*配置接口的描述*/ Switch(config-if)# shutdown /*关闭此接口*/ Switch(config-if)# no shutdown /*启动此接口*/ Switch(config-if)# switchport port-security Switch(config-if)# speed {10 | 100 | 1000 | auto } /*配置接口的速度*/ Switch(config-if)# duplex {auto | full | half} /*配置双工否*/ Switch(config-if)# flowcontrol {auto | on | off} /*配置接口的流控模式*/ Switch(config-if)# end Switch# 交换机的端口配置实验 (2)配置2 层接口 Switch# configure terminal Switch(config)# interface FastEthernet0/2 Switch(config-if)# switchport mode access /* 配置Switch Port */ Switch(config-if)# switchport access vlan 10 /* 配置access port 所属的VLAN */ Switch(config-if)# end Switch# (3)配置trunk口 Switch# configure terminal Switch(config)# interface FastEthernet0/24 Switch(config-if)# switchport mode trunk /*定义该接口的类型为二层Trunk口*/ Switch(config-if)# switchport trunk native vlan 10 /* 为这个口指定一个native VLAN */ 交换机的端口配置实验 (4)配置L2 aggregate port 将二层的以太网接口0/1 和0/5 配置成2 层aggregate port 5 成员 Switch# configure terminal Switch(config)# interface range fastethernet 0/1-5 Switch(config-if-range)# port-group 5 /*将接口加入aggregate port 5(如果不存在,则同时创建它) */ Switch(config-if-range)# exit Switch(config)# interface fastethernet 0/3 Switch(config-if)# no port-group /*删除aggregate port 5 成员接口fastethernet 0/3 */ Switch(config-if)# end 交换机的端口配置实验 (5)配置L3 aggregate port Switch# configure termininal Switch(config)# interface range fastethernet 0/20-23 Switch(config-if-range)# no switchport /*将该接口设置为三层模式*/ Switch(config-if-range)# port-group 2 /*将接口加入aggregate port 2(如果不存在,则同时创建它) */ Switch(config-if-range)# exit Switch(config)# interface aggregate-port 2 /*进入接口配置模式,如果这个aggregate port不存在则创建它*/ Switch(config-if)# no switchport 将该接口设置为三层模式。 Switch(config-if)# ip address /*给接口配置地址和子网掩码*/ Switch(config-if)# no shutdown Switch(config-if)# end 回到特权模式
显示全部
相似文档