




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、3560客户中文配置手册 第1章概述1-1 1.1 概述1-1 1.2初次访问设备1-1 1.2.1 通过Console 口访问设备1-2 第2章 命令行方式访问设备2-1 2.1.1命令行模式2-1 2.1.2基本设置命令2-1 2.2通过Console 口进入命令行接口2-2 2.3通过Telnet进入命令行接口2-2 第3章接口配置3-1 3.1 概述3-1 3.2二层口配置3-1 3.2.1配置端口速率及双工模式3-1 3.3配置一组端口3-2 3.4配置三层口3-3 3.5监控及维护端口3-5 3.5.1监控端口和控制器的状态3-5 3.5.2刷新、重置端口及计数器3-7 3.5.3
2、 关闭和打开端口3-8 3.6交换机端口镜像配置3-9 3.6.1 创建一个本地 SPAN会话3-10 3.7 以太通道端口组(Ethernet Port Groups )3-11 第4章配置VLAN4-12 4.1 简介4-12 4.2可支持的VLAN4-12 4.3配置正常范围的 VLAN4-12 4.3.1 删除 VLAN4-14 4.3.2 将端口分配给一个 VLAN4-15 4.4 配置 VLAN Trunks 4-16 4.5 配置 VTP DOMAIN 4-18 4.6 配置 VLAN 接口地址4-18 第5章 交换机HSRP配置5-1 第6章 路由协议配置6-3 6.1.1 静
3、态路由6-3 6.1.2 RIP 路由6-3 6.1.3 OSPF 路由6-5 第 1章 概 述 1.1 概述 3560 交换机是支持二层、三层功能的交换机,共分为 EMI,SMI 两个版本 Enhanced Multilayer Software Image 增强多层软件镜像软件 (EMI) ?EMI 提供了一组更加丰富的企业级功能,包括基于硬件的高级IP 单播和多播路由。 ?支持双机热备 (HSRP),OSPF 路由功能 . Standard Multilayer Software Image 标准多层软件镜像软件 (SMI) ?SMI功能集包括高级 QoS、速率限制、访问控制列表(ACL
4、),以及基本的静态和路由信息协议(RIP) 路由功能 支持 VLAN 到 1005 个 VLAN 支持 VLAN ID 从 1 到 4094 ( IEEE 802.1Q 标准) 支持ISL 及 IEEE 802.1Q封装 安全 支持IOS 标准的密码保护 静态MAC 地址映射 标准及扩展的访问列表支持,对于路由端口支持入出双向的访问列表,对于二层端口支持入的访 问列表 支持基于 VLAN 的访问列表 3 层支持(需要多层交换的 IOS) HSRP IP 路由协议 oRIP versions 1 and 2 oOSPF oIGRP 及 EIGRP oBGP Version 4 支持以下SFP模块
5、: 1000BASE-T SFP: 铜线最长 100 m 1000BASE-SX SFP: 光纤最长 1804 feet (550 m) 1000BASE-LX/LH SFP: 光纤最长 32,808 feet (6 miles or 10 km) 1000BASE-ZX SFP: 光纤最长 328,084 feet (62 miles or 100 km) 管理 从用户与设备交互的特点来分,访问设备的方式可以分为命令行方式和Web 方式。 l命令行方式:包括从 Console 口登录进行访问和通过 Telnet 登录进行访问; lWeb 方式:包括通过 HTTP 进行的普通 Web 访问。
6、1.2 初次访问设备 1.2.1 通过 Console 口访问设备 用户接收到除去包装的新设备后一般通过 Console 口第一次登录设备并开始对设备进行配置,过程如下: 第一步:建立本地配置环境,只需将计算机(或终端)的串口通过标准 RS-232 电缆与此 Catalyst 3560 设 备的 Console 口连接 第二步: 在计算机上运行终端仿真程序 (如 WinXP 的超级终端等) ,设置终端通信参数为 9600bps 、 8 位数 据位、 1 位停止位、无奇偶校验和无流量控制,如图 1-1 至图1-3 所示。 图 1-1 新建连接 图 1-2 连接端口设置 图 1-3 端口通信参数设
7、置 第四步: Catalyst 3560 设备上电自检,出现命令行提示符 ,如: Switch 。 此时用户已经进入到设备命令行配置接口的用户模式,从这里开始就可以参考本手册其余章节对设备进行 配置。 第2 章 命令行方式访问设备 如果用户通过 Console 口登录,或者通过 Telne 从设备管理口登录都将进入到设备的命令行接口,对系统 的配置和交互都通过命令行的方式进行。 。 2.1.1 命令行模式 命令行接口提供的命令行视图和各视图的功能特性、进入各视图的命令等的细则如表 2-1 所示。 表 2-1 命令视图功能特性列表 模式 功能 提示符 进入命令 退出命令 非特权模式 查看 CIS
8、CO 设备的简单运行状态 Switch 开机时自动进入 特权模式 配置系统参数, 升级 IOS 软件, 备份配置文件 Switch# 在非特权模式下键入 ENABLE quit 返回非特权模式 全局模式 CISCO 交换机大部分配置都是在这个模式下进行 Switch(config)# 在特权模 式下键入 configure terminal quit 返回特权模式 监控模式升级IOS系统软件Switch :开机时摁住面板上的 MODE键约5秒钟 2.1.2 基本设置命令 基本设置命令 任务 命令 全局设置 config terminal 设置访问用户及密码Username username p
9、assword password 设置特权密码 enable secret password 设置路由器名 Hostname name 设置静态路由 ip route destination subnet-mask next-hop 启动 IP 路由 ip routing 启动 IPX 路由 ipx routing 端口设置 interface type slot/number 设置 IP 地址 ip address address subnet-mask 设置 IPX 网络 ipx network network 激活端口 no shutdown 物理线路设置 line type numbe
10、r 启动登录进程 login local|tacacs server 设置登录密码 Password password 显示命令 任务 命令 查看版本及引导信息show version 查看运行设置 show running-config 查看开机设置 show startup-config 显示端口信息 show interface type slot/number 显示路由信息 show ip route 2.2 通过 Console 口进入命令行接口 详细内容请参见“ 1.2.1 通过 Console 口访问设备” 。 2.3 通过 Telnet 进入命令行接口 Telnet 协议在 T
11、CP/IP 协议族中属于应用层协议,通过网络提供远程登录和虚拟终端功能。 CATALYST 3560 向用户提供 Telnet 服务, 第一步:在计算机上运行 Telnet 程序,键入 CATALYST 3560设备管理 IP 地址 Switchenable Switch#conf t Switch(config)# interface vlan 1 Switch(config-if)#ip address 0 Switch(config-if)#no shutdown Switch(config-if)#exit Switch(config)#li
12、ne vty 0 4 Switch(config line)#login Switch(config line)#password cisco 如图 2-1 所示。 图 2-1 与 CATALYST 3560 建立 Telnet 连接 但对于 SFP 端 口则不能配置速率及双工模式,有时可以配置 nonegotiate, 当需要联接不支持自适应的其它千兆端口时 表 3-2 管理口配置 命令 目的 Step 1 configure terminal 进入配置状态 . Step 2 interface interface-id 进入端口配置状态 . Step 3 speed 10 | 100 |
13、1000 | auto | nonegotiate 设置端口速率 注 1000 只工作在千 兆口 . GBIC 模块只工作在 1000 Mbps 下.nonegotiate只能在这些 GBIC 上用 1000BASE-SX, -LX, and -ZX GBIC. Step 4duplex auto | full | half设置全双工或半双工 . Step 5end退出 Step 6show interfaces interface-id显示有关配置情况 Step 7copy running-config startup-config保存 Switch# configure terminal
14、Switch(config)# interface fastethernet0/3 Switch(config-if)# speed 10 Switch(config-if)# duplex half 3.3 配置一组端口 命令 目的 Step 1configure terminal 进入配置状态 Step 2interface range port-range 进入组配置状态 Step 3可以使用平时的端口配置命令进行配置 Step 4end 退回 Step 5show interfaces interface-id 验证配置 Step 6copy running-config startu
15、p-config 保存 见以下例子 : Switch# configure terminal Switch(config)# interface range fastethernet0/1 - 5 Switch(config-if-range)# no shutdown Switch(config-if-range)# *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/2,
16、 changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/3, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/4, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/5, changed state to up *Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: L
17、ine protocol on Interface FastEthernet0/05, changed state to up *Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up *Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up 以下的例子显示使用句号来配置不同类型端口的组 : Switch#
18、 configure terminal Switch(config)# interface range fastethernet0/1 - 3, gigabitethernet0/1 - 2 Switch(config-if-range)# no shutdown Switch(config-if-range)# *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet0/2, ch
19、anged state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet0/3, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet0/1, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet0/2, changed state to up *Oct 6 08:29:29: %LINEPROTO-5-UPDOWN
20、: Line protocol on Interface GigabitEthernet0/ 1, changed state to up *Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/ 2, changed state to up *Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/ 3, changed state to up 3.4 配置三层口 Catalyst 3560
21、支持三种类型的三层端口 : SVIs:即 inteface vlan Note 当生成一个 interface Vlan 时,只有当把某一物理端口分配给它时才能被激活 三层以太网通道口( EtherChannel ):以太通道由被路由端口组成。以太通道端口接口在“配置 以太通道”中被描述。 . 路由口:路由口是指某一物理端口在端口配置状态下用 no switchport 命令生成的端口 所有的三层都需要 IP 地址以实现路由交换 配置步骤如下: 命令 目的 Step 1configure terminal进入配置状态 Step 2interface fastethernet | gigabit
22、ethernet interface-id | vlan vlan-id | port-channel port-channel-number进入端口配置状态 Step 3no switchport把物理端口变成三层口 Step 4ip address ip_address subnet_mask配置 IP 地址和掩码 Step 5no shutdown激活端口 Step 6End退出 Step 7show interfaces interface-idshow ip interface interface-idshow running-config interface interface-i
23、d验证配置 Step 8copy running-config startup-config保存配置 配置举例如下: Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface gigabitethernet0/2 Switch(config-if)# no switchport Switch(config-if)# ip address 1 Switch(config-if)
24、# no shutdown Switch(config-if)# end 3.5 监控及维护端口 3.5.1 监控端口和控制器的状态 主要命令见下表: Show Commands for Interfaces Command目的 show interfaces interface-id 显示所有端口或某一端口的状态和配置 显示一系列端口的状态或错误关闭的状态 显示二层端口的状态,可以用来决定此口是否为二层或三 show interfaces interface-id status err-disabled show interfaces interface-id switchport 层口。
25、show interfaces interface-id description显示端口描述 显示当前配置中的端口配置情况 show ip interface interface-id显示所有或某一端口的 IP 可用性状态 show running-config interface interface-id show version显示软硬件等情况 举例如下 : Switch# show interfaces status Port NameStatus Gi0/1 connected Vlan Duplex Speed Type a-full a-100 10/100/1000Base ro
26、uted TX Gi0/2 wce server 20.20.2 disabled routed auto auto 10/100/1000Base TX Gi0/3 ip wccp web-cache notconnect routed auto auto 10/100/1000Base TX Gi0/4 notconnect routed auto auto 10/100/1000Base TX Gi0/5 notconnect routed auto auto 10/100/1000Base TX Gi0/6 disabled routed auto auto 10/100/1000Ba
27、se TX Gi0/7 disabled routed auto auto 10/100/1000Base TX Gi0/8 disabled routed auto 100 10/100/1000Base TX Gi0/9 notconnect routed auto auto 10/100/1000Base TX Gi0/10 notconnect routed auto auto 10/100/1000Base TX Gi0/11 disabled routed auto auto unknown Gi0/12 notconnect routed auto auto unknown Sw
28、itch# show interfaces fastethernet 0/1 switchport Name: Fa0/1 Switchport: Enabled Administrative Mode: static access Operational Mode: down Administrative Trunking Encapsulation: dot1q Negotiation of Trunking: Off Access Mode VLAN: 1 (default) Trunking Native Mode VLAN: 1 (default) Trunking VLANs En
29、abled: ALL Pruning VLANs Enabled: 2-1001 Protected: false Unknown unicast blocked: disabled Unknown multicast blocked: disabled Voice VLAN: dot1p (Inactive) Appliance trust: 5 Switch# show running-config interface fastethernet0/2 Building configuration. Current configuration : 131 bytes ! interface
30、FastEthernet0/2 switchport mode access switchport protected no ip address mls qos cos 7 mls qos cos override end 3.5.2 刷新、重置端口及计数器 Clear 命令 目的 clear counters interface-id 清除端口计数器 . clear interface interface-id 重置某一端口的硬件逻辑 重置异步串口的硬件逻辑 clear line number | console 0 | vty number Note clear counters 命令只
31、清除用 show interface 所显示的计数,不影响用 snmp 得到的计数 举例如下: Switch# clear counters fastethernet0/5 Clear show interface counters on this interface confirm y Switch# *Sep 30 08:42:55: %CLEAR-5-COUNTERS: Clear counter on interface FastEthernet0/5 by vty1 (0) 可使用 clear interface 或 clear line 命令来清除或重置某一
32、端口或串口,在大部分情况下并不需要这样做 Switch# clear interface fastethernet0/5 3.5.3 关闭和打开端口 命令 目的 Step 1configure terminal 进入配置状态 Step 2interface vlan vlan-id | fastethernet | gigabitethernet interface-id | port-channel port-channel-number 选择要关闭的端口 Step 3Shutdown 关闭 Step 4End 退出 Step 5show running-config验证 使用 no shu
33、tdown 命令重新打开端口 . 举例如下 : Switch# configure terminal Switch(config)# interface fastethernet0/5 Switch(config-if)# shutdown Switch(config-if)# *Sep 30 08:33:47: %LINK-5-CHANGED: Interface FastEthernet0/5, changed state to a administratively down Switch# configure terminal Switch(config)# interface fast
34、ethernet0/5 Switch(config-if)# no shutdown Switch(config-if)# *Sep 30 08:36:00: %LINK-3-UPDOWN: Interface FastEthernet0/5, changed state to up 3.6 交换机端口镜像配置 端口镜像的数据流程 基于端口的镜像是把被镜像端口的进出数据报文完全拷贝一份到镜像端口,这样来进行流量观测或者故障 定位。 Figure 27-1 Example of Local SPAN Configuration on a Single Switch 3.6.1 创建一个本地 SP
35、AN 会话 Beginning in privileged EXEC mode, follow these steps to create a SPAN session and specify the source (monitored) ports or VLANs and the destination (monitoring) ports: Command Purpose Step 1configure terminalEnter global configuration mode. Step 2no monitor session session_number | all | loca
36、l | remoteRemove any existing SPAN configuration for the session. For session_number, the range is 1 to 66. Specify all to remove all SPAN sessions, local to remove all local sessions, or remote to remove all remote SPAN sessions. Step 3monitor session session_number source interface interface-id |
37、vlan vlan-id , | - both | rx | txSpecify the SPAN session and the source port (monitored port). For session_number , the range is 1 to 66. For interface-id, specify the source port or source VLAN to monitor . ? For source interface-id, specify the source port to monitor . Valid interfaces include ph
38、ysical interfaces and port-channel logical interfaces (port-channel port-channel-number). Valid port-channel numbers are 1 to 48. ? For vlan -id, specify the source VLAN to monitor . The range is 1 to 4094 (excluding the RSPAN VLAN). Note A single session can include multiple sources (ports or VLANs
39、), defined in a series of commands, but you cannot combine source ports and source VLANs in one session. (Optional) , | - Specify a series or range of interfaces. Enter a space before and after the comma; enter a space before and after the hyphen. (Optional) Specify the direction of traffic to monit
40、or. If you do not specify a traffic direction, the SPAN monitors both sent and received traffic. ? both Monitor both received and sent traffic. This is the default. ? rx Monitor received traffic. ? tx Monitor sent traffic. Note You can use the monitor session session_number source command multiple t
41、imes to configure multiple source ports. Step 4monitor session session_number destination interface interface-id , | - encapsulation replicate Specify the SPAN session and the destination port (monitoring port). For session_number , specify the session number entered in step 3. Note For local SPAN,
42、you must use the same session number for the source and destination interfaces. For interface-id, specify the destination port. The destination interface must be a physical port; it cannot be an EtherChannel, and it cannot be a VLAN. (Optional) , | - Specify a series or range of interfaces. Enter a
43、space before and after the comma; enter a space before and after the hyphen. (Optional) Enter encapsulation replicate to specify that the destination interface replicates the source interface encapsulation method. If not selected, the default is to send packets in native form (untagged). Note You ca
44、n use monitor session session_number destination command multiple times to configure multiple destination ports. Step 5endReturn to privileged EXEC mode. Step 6 show monitor session session_number show running-config Verify the configuration. Step 7 copy running-config startup-config (Optional) Save
45、 the configuration in the configuration file. 举例:通过交换机的第 2 号口监控第 1 号口的流量 Switch(config)# monitor session 1 source interface gigabitethernet0/1 Switch(config)# monitor session 1 destination interface gigabitethernet0/2 Switch(config)# end 删除一个 span 会话 : Switch(config)# no monitor session 1 source int
46、erface gigabitethernet0/1 Switch(config)# end 3.7 以太通道端口组( Ethernet Port Groups ) 以太通道端口组提供把多个交换机端口像一个交换端口对待。这些端口组为交换机之间或交换机和服务器 之间提供一条单独的高带宽连接的逻辑端口。以太通道在一个通道中提供穿越链路的负载平衡。如果以太 通道中的一个链路失效,流量会自动从失效链路转移到被用链路。你可以把多干道端口加到一个逻辑的干 道端口;把多访问端口加到一个逻辑访问端口;或者多隧道端口加到一个逻辑的隧道接口。绝大多数的协 议能够在单独或是集合的接口上运行,并且不会意识到在端口组中的
47、物理端口。除了DTP、CDP 和 PAgP, 这些协议只能在物理接口上运行。 当你配置一个以太通道,你创建一个端口通道逻辑接口,并且指派一个接口给以太通道。对于三层接口, 你人工创建该逻辑接口: Figure 33-1 Typical EtherChannel Configuration 举例:把交换机 A , B的1,2号口添加到同一个组 5里面 SwitchA# configure terminal SwitchA (config)# interface range gigabitethernet0/1 -2 SwitchA (config-if-range)# switchport mo
48、de access SwitchA (config-if-range)# switchport access vlan 10 SwitchA (config-if-range)# channel-group 5 mode ON Switch(config-if-range)# end SwitchB# configure terminal SwitchB(config)# interface range gigabitethernet0/1 -2 SwitchB(config-if-range)# switchport mode access SwitchB(config-if-range)#
49、 switchport access vlan 10 SwitchB(config-if-range)# channel-group 5 mode ON SwitchB(config-if-range)# end 第4章 配置 VLAN 4.1 简介 VLAN(Virtual Local Area Network ),是一种通过将局域网内的设备逻辑地而不是物理地划分成一个个网段 从而实现虚拟工作组的技术。IEEE于1999年颁布了用以标准化VLAN实现方案的IEEE 802.1Q协议标准 草案。 VLAN技术允许网络管理者将一个物理的LAN逻辑地划分成不同的广播域(或称虚拟LAN,即VLAN)
50、,每 一个VLAN都包含一组有着相同需求的计算机,由于VLAN是逻辑地而不是物理地划分,所以同一个VLAN 内的各个计算机无须被放置在同一个物理空间里,即这些计算机不一定属于同一个物理LAN 网段。 VLAN 的优势在于 VLAN 内部的广播和单播流量不会被转发到其它 VLAN 中,从而有助于控制网络流量、减 少设备投资、简化网络管理、提高网络安全性。 4.2 可支持的 VLAN Catalyst 3560 交换机支持 1005 个 VLAN,可以分别是 VTP client, server,及 transparent modes. VLAN 号可以从1到4094. VLAN号1002到100
51、5保留给令牌环及 FDDI VLAN. VTP只能学习到普通范围的 VLAN, 即从VLAN到1到1005; VLAN号大于1005属于扩展VLAN,不存在VLAN数据庫中。交换机必须配置成 VTP透明模式当需要生成 VLAN号从1006到4094. 本交换机支持基于每一 VLAN的生成树(PVST),最多支持128个生成树。本交换机支持ISL及IEEE 802.1Q trunk 二种封装。 VLAN 号 1 ,1002 到 1005 是自动生成的不能被去掉。 VLAN 号 1 到 4.3 配置正常范围的 VLAN 1005 的配置被写到文件 vlan.dat 中, 可以用 show vlan
52、 命令查看, vlan.dat 文件存放在 用 no vlan name 或 no vlan mtu 退回到缺省的 vlan 配置状态 举例如下 : NVRAM 中 . 命令 目的 Step 1 configure terminal 进入配置状态 Step 2 号或旧的来进行修改。 vlan vlan-id 输入一个 VLAN 号, 然后进入 vlan 配置状态,可以输入一个新的 VLAN name vlan-name Step 3 VLAN 号前面用 0 填满的 4 位数, (可选)输入一个VLAN名,如果没有配置 VLAN名,缺省的名字是 VLAN0004 是 VLAN4 的缺省名字 St
53、ep 4 Step 5 mtu mtu-size end 退出 Step 6 Step 7 (可选) 改变 MTU 大小 show vlan name vlan-name | id vlan-id copy running-config startup config 验证 (可选 ) 保存配置 Switch# configure terminal Switch(config)# vlan 20 Switch(config-vlan)# name test20 Switch(config-vlan)# end 也可以在 VLAN 状态下,进行 VLAN 配置 : 目的 命令 Step 1 vla
54、n database 进入 VLAN 配置状态 Step 2 vlan vlan-id name vlan-name 加入 VLAN 号及 VLAN 名 Step 3 Step 4 Step 5 Step 6 举例如下: (可选 ) 修改 MTU 大小 更新 VLAN 数据庫并退出 vlan vlan-id mtu mtu-size exit show vlan name vlan-name | id vlan-id copy running-config startup config 验证配置 保存配置(可选) Switch# vlan database Switch(vlan)# vlan
55、 20 name test20 Switch(vlan)# exit APPLY completed. Exiting Step 8 使用 default interface interface-id copy running-config startup-config 还原到缺省配置状态。 Switch# 注意 当删除一个 VLAN 时, 原来属于此 VLAN 的端口将处于非激活的状态,直到将其分配给某一 VLAN。 命令 目的 Step 1 configure terminal 进入配置状态 Step 2 no vlan vlan-id 删除某一 VLAN. Step 3 end 退出 S
56、tep 4 show vlan brief 验证 Step 5 copy running-config startup config 保存 也可用 vlan database 进入 VLAN 配置状态,用 no vlan vlan-id 来删除。 4.3.2 将端口分配给一个 VLAN 命令 目的 Step 1 configure terminal 进入配置状态 Step 2 interface interface-id 进入要分配的端口 Step 3 switchport mode access 定义二层口 Step 4 switchport access vlan vlan-id把端口分配
57、给某一 VLAN Step 5 end 退出 Step 6 show running-config interface interface-id 验证端口的 VLAN 号 在透明模式下删除时,只在当前交换机上删除。 验证端口的管理模式和 VLAN 情况 Step 7 show interfaces interface-id switchport 保存配置 4.3.1 删除 VLAN 当删除一个处于 VTP服务器的交换机上删除 VLAN时,则此VLAN将在所有相同VTP的交换机上删除。当 举例如下: Switch# configure terminal Enter configuration c
58、ommands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet0/1 Switch(config-if)# switchport mode access Switch(config-if)# switchport access vlan 2 Switch(config-if)# end Switch# 4.4 配置 VLAN Trunks 以太网端口有二种链路类型:Access和Trunk。Access类型的端口只能属于 1个VLAN,般用于连接计 算机的端口; Trunk类型的端口可以属于多个VLA
59、N,可以接收和发送多个 VLAN的报文,一般用于交换机 之间连接的端口;这里的 trunk 并不是端口干路的概念,即端口汇聚或者链路聚合,而是允许 vlan 透传的 一个概念 命令 Step 1 Step 2 目的 configure terminal interface interface-id 进入配置状态 进入端口配置状态 Step 3switchport trunk encapsulation isl | dot1q | negotiate配置 trunk 封装 ISL 或 802.1Q 或自动协商 Step 4switchport mode dynamic auto | desira
60、ble | trunk配置 二层 trunk 模 式。dynamic auto 自动协商是否成为 trunk dynamic desirable 把端口设置为 trunk如 果对方端口是trunk, desirable, 或自动模式 端口是否为 trunk Step 5switchport access vlan vlan-id Step 6switchport trunknative vlan vlan-id Step 7end退出 Step 8show interfacesinterface-id switchport Step 9show interfacesinterface-id t
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年运动捕捉软件合作协议书
- 丽江酒店转让合同范本
- 上海粒子仓储托管合同范例
- 冲床钢板采购合同范例
- led车度合同范例
- 初中生几何素养培养的教学实践研究
- 制式服装供货合同范本
- 农民秸秆采购合同范本
- 上游合同和下游合同范例
- pvc吊顶合同范例
- DL-T5002-2021地区电网调度自动化设计规程
- 2024年个人信用报告(个人简版)样本(带水印-可编辑)
- 天然装饰石材
- 经典导读与欣赏-知到答案、智慧树答案
- DB32T3610.3-2019道路运输车辆主动安全智能防控系统技术规范第3部分:通讯协议
- 信息资源建设-习题集(含答案)
- 2024年湖南铁道职业技术学院单招职业技能测试题库及答案解析
- 2024年合肥职业技术学院单招职业适应性测试题库及答案解析
- 2024年西安医学高等专科学校单招职业技能测试题库及答案解析
- 2024年事业单位考试云南省昭通市A类《职业能力倾向测验》深度预测试题含解析
- 火灾自动报警系统检查表
评论
0/150
提交评论