Cisco MDS 交换机基本配置手册
V1
2009.12
Liuxyn@dc
一 Console 线连接 MDS console 口完成初始设置
(不必完全按照以下步骤设置各参数,根据客户实际需求配置即可)
Enter the password for "admin": Cisco.123
Confirm the password for "admin": Cisco.123
---- 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
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): y
Create another login account (yes/no) [n]: n
Configure read-only SNMP community string (yes/no) [n]:
Configure read-write SNMP community string (yes/no) [n]:
Enter the switch name : MDS9124-2
Continue with Out-of-band (mgmt0) management configuration? (yes/no) [y]: Y
Mgmt0 IPv4 address : 128.128.1.22
Mgmt0 IPv4 netmask : 255.255.255.0
Configure the default gateway? (yes/no) [y]: Y
IPv4 address of the default gateway : 128.128.1.1
批注 [l1]: 设置 admin 账户密码,密码
不能太简单
批注 [l2]: 进入基本配置向导
批注 [l3]: 是否创建其他账户
批注 [l4]: 是否配置 SNMP 只读通讯
字符
批注 [l5]: 是否配置 SNMP 读写字符
批注 [l6]: 给设备命名
批注 [l7]: 是否配置带外管理
批注 [l8]: 配置管理口 IP
批注 [l9]: 配置管理口掩码
批注 [l10]: 是否配置默认网关
批注 [l11]: 配置默认网关地址
Configure advanced IP options? (yes/no) [n]: N
Enable the ssh service? (yes/no) [y]: y
Type of ssh key you would like to generate (dsa/rsa) [rsa]: rsa
Number of rsa key bits <768-2048> [1024]: 1024
Enable the telnet service? (yes/no) [n]: y
Enable the http-server? (yes/no) [y]: y
Configure clock? (yes/no) [n]: y
Clock config format [HH:MM:SS Day Mon YYYY] :
Enter clock config :15:59:30 27 November 2009
Configure timezone? (yes/no) [n]: y
Enter timezone config :pst 8
Configure summertime? (yes/no) [n]: n
Configure the ntp server? (yes/no) [n]: n
Configure default switchport interface state (shut/noshut) [shut]: noshut
Configure default switchport trunk mode (on/off/auto) [on]: on
Configure default switchport port mode F (yes/no) [n]: y
Configure default zone policy (permit/deny) [deny]: permit
Enable full zoneset distribution? (yes/no) [n]: y
Configure default zone mode (basic/enhanced) [basic]:
The following configuration will be applied:
password strength-check
switchname MDS9124-2
interface mgmt0
ip address 128.128.1.22 255.255.255.0
no shutdown
批注 [l12]: 是否配置高级 IP 选项
批注 [l13]: 是否启用 SSH
批注 [l14]: 配置生成的 SSH 密钥类型
批注 [l15]: 密钥位数
批注 [l16]: 是否打开 Telnet
批注 [l17]: 是否启用 HTTP
批注 [l18]: 是否配置时间
批注 [l19]: 时间日期格式
批注 [l20]: 是否配置时区
批注 [l21]: 配置时区
批注 [l22]: 是否配置夏令时
批注 [l23]: 是否配置 NTP
批注 [l24]: 配置 MDS 端口状态
批注 [l25]: 配置 MDS 端口 trunk 模式
批注 [l26]: 配置端口模式
批注 [l27]: 配置默认 zone 策略
批注 [l28]: 配置 Zoneset 属性
批注 [l29]: 配置默认 zone 模式
ip default-gateway 128.128.1.1
ssh key rsa 1024 force
feature ssh
feature telnet
feature http-server
clock set 15:59:30 27 November 2009
clock timezone pst 8
no system default switchport shutdown
system default switchport trunk mode on
system default switchport mode F
system default zone default-zone permit
system default zone distribute full
no system default zone mode enhanced
Would you like to edit the configuration? (yes/no) [n]: n
Use this configuration and save it? (yes/no) [y]: y
Error: There was an error executing at least one of the commands
Please verify the following log for the command execution errors.
Disabling ssh: as its enabled right now:
deleting old rsa key.....
generating rsa key(1024 bits).....
.
generated rsa key
Enabling ssh: as it has been disabled
Fri Nov 27 15:59:30 UTC 2009
Syntax error while parsing 'clock timezone pst 8'
Would you like to save the running-config to startup-config? (yes/no) [n]: y
[########################################] 100%
二 申请 license,导入 license,激活端口
User Access Verification
MDS9124-2 login: admin
Password:
批注 [l30]: 是否修改以上配置
批注 [l31]: 是否保存配置
批注 [l32]: 是否保存当前运行的配置
到启动配置文件
批注 [l33]: 使用 admin 账户登录
批注 [l34]: 输入前面配置的密码
Cisco.123
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2009, 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
MDS9124-2# show license host-id
License hostid: VDH=FOX1331GTV1
MDS9124-2# show license ?
> Redirect it to a file
>> Redirect it to a file in append mode
brief Show a list of license files
default Show services using default license
file Show contents of a license file
host-id Show unique id for this host for licensing
usage Show license usage table
| Pipe command output to filter
浏览器输入:
www.cisco.com/go/license
输入 CCO 账号、密码(license 文件将发到此账号对应的 email 地址)
批注 [l35]: 查看 host-id
批注 [l36]: 复制此 ID 到记事本
红色框内输入购买的 MDS 端口 license PAK 码 ,submit,根据提示 next…..
到 CCO 对应的邮箱下载 license 文件到电脑硬盘中
配置 MDS 交换机的电脑网线连接 MDS 交换机的管理口,设置 IP 地址与 MDS 管理口同网段
使用 TFTP 软件把 license 文件导入 MDS 交换机的 flash 中
指定 TFTP 目录(license 文件存放的路径)
在 MDS 交换机命令行窗口输入以下命令:
Copy tftp://x.x.x.x/MDS20091012005817494.lic boothflash:
导入后输入以下命令安装 license,激活端口:
install license bootflash:/MDS20070523204134504.lic
输入以下命令查看 license 使用情况:
show license usage
三 使用图形化管理软件配置 MDS 交换机
把 MDS 机箱中的光盘放入电脑光驱,安装图形化管理软件
批注 [l37]: 连接 MDS 交换机管理口
的电脑的 IP 地址
安装 MDS 图形化管理软件之前需要安装 JAVA 虚拟机,光盘中含有 JAVA 虚拟机,点安装即
可
JAVA 虚拟机安装完成后安装 MDS 图形化管理软件
记下此用户名密码
安装完成,会弹出登录窗口,输入用户名 admin 密码 password 登录
输入 MDS 交换机的管理口地址,输入 MDS 交换机用户名 admin 密码 Cisco.123
下面开始配置 MDS 交换机(创建 zone 、zoneset ,把端口加入 zone、激活 zoneset)
以上完成的 MDS 的基本配置。
如果有多台MDS交换机需要使用图形化配置,在每台MDS交换机完成命令行的初始配置后,
找到 MDS 图形化管理软件的安装目录,双击 FabricManagerSA.bat,即可运行图形配置软件
一 Console线连接MDS console口完成初始设置
二 申请license,导入license,激活端口
三 使用图形化管理软件配置MDS交换机