您好,欢迎来到尚车旅游网。
搜索
您的当前位置:首页Cisco DS系列光纤交换机配置实例

Cisco DS系列光纤交换机配置实例

来源:尚车旅游网
Cisco DS系列光纤交换机配置实例

使用交换机配的串口线连接交换机CONSOLE口和计算机Com口,通过“超级终端”或Putty软件对交换机进行配置。 (软件连接参数如下: •9600 baud rate •8 data bits •1 stop bit •No parity) 以下内容为登陆到交换机命令行管理界面后的全部信息: (交换机通电后的自检信息) >> MDS-Bootloader-01.00.21 (Jan 27 2014 - 12:18:44), Build: 01.00.21

PowerPC

CPU: 8548E, Version: 3.1, (SVR:0x80390031) Core: E500, Version: 2.2, (PVR:0x80210022) Clocks: CPU:1333 MHz, CCB: 533 MHz, DDR: 266 MHz, LBC: 33 MHz L1: D-cache 32 kB enabled I-cache 32 kB enabled INFO: Booting off primary flash. I2C: ready

DRAM: DDR: ddrioovcr 0x70000000 Total SDRAM memory is 1024 MB 40000000

INFO: SDRAM tests PASSED.

DRAM: ECC initialization in progress...Done. done.

INFO: Board rev = 2 type = 4 index 9037 L2 cache 512KB: enabled IDE: Bus 0: OK

Device 0: Model: SGCF1GHYB4P1M001 Firm: FW981 Ser#: STP183614S Type: Hard Disk

Capacity: 977.4 MB = 0.9 GB (2001888 x 512)

Booting bootflash:/m9100-s3ek9-kickstart-mz.5.0.1a.bin ... .................

Automatic boot of image at addr 0x00000000 ... Starting kernel...

Entered kgdb_console_init:1975 INIT: version 2.85 booting

1 / 5

Checking all filesystems....r. done. Setting kernel variables done.

Setting the System Clock using the Hardware Clock as reference...System Clock set. Local time: Fri Dec 12 00:13:45 UTC 2014 Loading system software

Uncompressing system image: bootflash:/m9100-s3ek9-mz.5.0.1a.bin

CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

INIT: Entering runlevel: 3

Starting NFS servers: nfsd mountd.

2014 Dec 12 00:14:23 %KERN-2-SYSTEM_MSG: Starting kernel... - kernel

2014 Dec 12 00:14:23 %KERN-1-SYSTEM_MSG: Entered kgdb_console_init:1975 - kernel

---- System Admin Account Setup ----

Do you want to enforce secure password standard (yes/no) [y]: 2014 Dec 12 00:14:47 switch %DAEMON-2-SYSTEM_MSG: <<%PLATFORM-2-PS_OK>> Power supply 1 ok (Serial number QCS18310YW7) - platform[2244]

2014 Dec 12 00:14:47 switch %DAEMON-2-SYSTEM_MSG: <<%PLATFORM-2-PS_FANOK>> Fan in Power supply 1 ok - platform[2244]

2014 Dec 12 00:14:47 switch %DAEMON-2-SYSTEM_MSG: <<%PLATFORM-2-PS_OK>> Power supply 2 ok (Serial number QCS18310Y14) - platform[2244]

2014 Dec 12 00:14:47 switch %DAEMON-2-SYSTEM_MSG: <<%PLATFORM-2-PS_FANOK>> Fan in Power supply 2 ok - platform[2244]

2014 Dec 12 00:14:47 switch %DAEMON-2-SYSTEM_MSG: <<%PLATFORM-2-FAN_OK>> Fan module ok - platform[2244]

(初次启动交换机会出现以下信息) Enter the password for \"admin\": (输入admin管理员密码,默认为P@ssw0rd) Confirm the password for \"admin\": (再次输入admin管理员密码,P@ssw0rd)

---- Basic System Configuration Dialog ----

This setup utility will guide you through the basic configuration of

the system. Setup configures only enough connectivity for management of the system.

Please register Cisco MDS 9000 Family devices promptly with your supplier. Failure to register may affect response times for initial

2 / 5

service calls. MDS devices must be registered to receive entitled support services.

Press Enter at anytime to skip a dialog. Use ctrl-c at anytime to skip the remaining dialogs.

Would you like to enter the basic configuration dialog (yes/no): no (询问是否进入配置向导模式,此例中选no进行手动配置。)

User Access Verification switch login: admin (登陆管理员账号admin) Password: (密码默认为P@ssw0rd) Cisco Nexus Operating System (NX-OS) Software TAC support: http://www.cisco.com/tac

Copyright (c) 2002-2010, Cisco Systems, Inc. All rights reserved. The copyrights to certain works contained in this software are owned by other third parties and used and distributed under license. Certain components of this software are licensed under the GNU General Public License (GPL) version 2.0 or the GNU Lesser General Public License (LGPL) Version 2.1. A copy of each such license is available at

http://www.opensource.org/licenses/gpl-2.0.php and http://www.opensource.org/licenses/lgpl-2.1.php

switch# conf t (进入配置模式)

Enter configuration commands, one per line. End with CNTL/Z.

switch(config)# int fc1/1-48 (对交换机的端口进行配置。交换机名称默认为fc1,该例中的交换机有48个端口)

switch(config-if)# no shutdown (Cisco光纤交换机的端口默认为关闭状态,初次使用时需通过此命令激活)

switch(config-if)# switchport rate-mode s (配置端口带宽占用类型。dedicated模式会锁定端口组内的带宽,shared模式与其他端口共享带宽,通常情况下使用shared模式。) fc1/48: (error) Invalid rate mode for the port (该例中无法设置shared模式) (此处省略部分显示信息……)

switch(config-if)# switchport mode auto (配置端口类型为自动配置)

switch(config-if)# switchport speed auto (配置端口速率为自适应模式)

switch(config-if)# vsan database (配置VSAN)

switch(config-vsan-db)# vsan 1 interface fc1/1-48 (把端口1-48加入vsan 1) 3 / 5

Traffic on fc1/1 may be impacted. Do you want to continue? (y/n) [n] y (此端口正在使用,进行vsan配置会导致连接中断,选y确认继续配置。下同。) (此处省略部分显示信息……)

fc1/8:membership being configured is already configured for the interface (此处省略部分显示信息……)

switch(config-vsan-db)# zone default-zone permit vsan 1 (设置缺省zone为vsan 1)

switch(config)# fcdomain fcid persistent vsan 1 (Cisco交换机对光纤设备分配的FC ID是按照设备的login次序自动分配的,当来回拔插光纤或者交换机重启后很容易造成设备的FC ID改变。该问题会影响光纤磁盘在服务器上被识别顺序,因此这个参数要设置成persistent模式,以保证设备的WWN与它的FC ID有固定的对应关系。)

FCID persistent feature is enabled.

switch(config)# fcdomain domain 21 static vsan 1

(为避免Domain ID自由变动影响存储设备在服务器上的hardware path,把vsan的Domain ID设置为static模式,并指定一个跟其它交换机及光纤设备不冲突的Domain ID。该例中设为21。)

switch(config)# copy run start (保存当前交换机配置!!!) [########################################] 100% switch(config)#

switch(config)# exit (退出交换机配置模式)

switch# show run (显示当前系统配置) (此处省略部分显示信息……)

switch# show int (查看全部端口状态) (此处省略部分显示信息……)

switch# exit (退出当前登陆账号)

User Access Verification switch login:

其它常用命令:

switch (config)# switchname FC111 (修改交换机名为FC111)

switch(config)# user admin password zengwei (修改admin账号的密码为zengwei)

switch(config)# interface mgmt 0 (配置交换机管理端口IP和子网掩码(MGMT端口)) switch(config-if)# ip adress 192.168.100.108 255.255.255.0

4 / 5

switch(config)# ip default-gateway 192.168.100.254 (设置默认网关) switch(config)# feature telnet (激活telnet 功能)

switch (config)# vsan database (添加一个序号为222的VSAN) switch(config-vsan-db)# vsan 222 switch(config-vsan-db)# end

switch# zone name zone03 vsan 222 (在VSAN 222中创建一个名称为zone03的ZONE。注:Cisco交换机要在VSAN里面才能创建ZONE) switch (config-zone)# member int FC111/4 (添加FC111的第4个端口到zone03中)

switch (config)# zoneset name zonset555 vsan 222 (在VSAN 222中创建名为zonset55的ZONESET。)

switch (config-zoneset)# member zone03 (把zone03填加到zonset555中)

switch (config)# zoneset activate name zonset555 vsan 222 (激活zoneset555配置)

sw1(config)# zone default-zone permit (关闭默认的ZONE。Cisco有一个默认的default-zone,所有没有分配到特定ZONE中的端口都会被放到该默认ZONE中,且该默认ZONE的端口是不能互相通信的。关闭该默认ZONE,则意味着未划ZONE的端口之间可以互相通信)

switch (config-zone)# show zone (显示当前配置的ZONE的信息) switch (config-zoneset)# show zoneset (显示当前配置的ZONESET的信息) switch# show interface fc1/1 (显示端口fc1/1的信息) switch# show zone activate (显示当前活动的ZONE信息) switch# show zoneset activate (显示当前活动的ZONESET信息)

资料整理:索贝广州·曾伟 日 期:2014-12-13

5 / 5

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- sceh.cn 版权所有

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务