キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 
cancel
7241
閲覧回数
5
いいね!
0
コメント
YAMADA Akinori
Cisco Employee
Cisco Employee

 

1.    はじめに

このドキュメントはACIモードで出荷されたNexus 9000シリーズをStandaloneモードに変更する手順について説明しています。
TFTP serverによっては、大きなサイズのファイル転送が行えないものがあります。本ドキュメントの作成にあたりTFTP serverにはTftpd64(http://www.tftpd64.com/)を使用しています。
ドキュメント中で使用しているNX-OSのバージョンはLatestの7.0(3)I7(1)となります。これはドキュメント作成時点でリリースされているすべての機器に対応しているためです。今後リリースされるプロダクトに対応するために、使用するNX-OSはLatestバージョンを推奨します。
ドキュメント内のサンプルでは、コマンドラインで入力する文字列を‘command’(青太字)、Yes/Noの選択を‘yes’(赤太字)、コメントを‘comment’(赤イタリック)で表記しています。

2.    作業手順

2.1.    Nexus 9000スイッチの起動

ACIモードで出荷されたNexus 9000スイッチは、以下のログインプロンプト“(none) login:”で起動します。

User Access Verification
(none) login:


2.2.    Nexus 9000 スイッチの再起動とloaderでの起動

電源ケーブルの抜き差しを行い、スイッチを再起動します。再起動が開始し“CISCO SWITCH VerX.XX”が表示されたら‘Ctrl+c’を入力します。継続して入力するとloaderでの失敗を防げます。

CISCO SWITCH Ver7.59
Device detected on 0:1:2 after 0 msecs  
Device detected on 0:1:1 after 0 msecs  
Device detected on 0:1:0 after 0 msecs  
MCFrequency 1333Mhz
Relocated to memory
Time: 11/28/2017  6:43:44
Pre-Reserving Memory Bar of size 8000000 for root-port B0|D1C|F0 7ffffff 4
Detected CISCO IOFPGA
MIFPGA Present
Code Signing Results:                                    0x0 
Using Upgrade FPGA
Checking and setting PSU fan directions 
Booting from Primary Bios 
FPGA Revison        : 0x9
FPGA ID             : 0x1528227
FPGA Date           : 0x20161122
Power Debug Register: 0x0
Reset Cause Register: 0x80000000
Boot Ctrl Register  : 0xe0ff
FPGA Update Status  : 0x20
Detected CISCO MIFPGA
FPGA Update Status  : 0x20
Version 2.16.1240. Copyright (C) 2013 American Megatrends, Inc.                 
Board type  2
IOFPGA @ 0xc8000000				<< ここまでに ”Ctrl+c” を入力
SLOT_ID @ 0xf
Aborting config file read and autoboot 
No autoboot or failed autoboot. falling to loader 



                Loader Version 7.58

loader > 


2.3.    IPアドレスとゲートウェイの設定

スイッチを起動後、IPアドレスと必要に応じてゲートウェイの設定を行います。

loader > set ip 10.71.168.154 255.255.255.0		<< IP アドレスの設定
Correct - ip addr is 10.71.168.154, mask is 255.255.255.0
Finding driver for NIC vendor 8086 Device 438 
Found the device 8086:438 at ioaddr e100, membase d8040000 at 1:2
Probing...igb: e1000_set_media_typeMedia type is copper 02900c00 
igb: e1000_set_media_typeMedia type is copper 02900c00 
igb: INTEL MAC. Link already up reset (ctrl 0x08d00240)

 Phy_addr 2 Phy_id 0x1410c90 

 bringing up marvell phy pci dev id 438
phy_addr is is 2 
changing sgmii output amplitude from 0x8083 to 8084 
Trying to read from nic eeprom 
igb: INTEL p has large-format EERD
igb: INTEL has EEPROM MAC address 
Ethernet addr: 00:A2:EE:28:B0:12
igb: INTEL link status is 0x80080687
Link is up 
Link speed = 1000 Mbps, Full Duplex
igb: e1000_init_rx_addrsigb: Programming MAC Address into RAR[0]
igb: Clearing RAR[1-15]
Tx: TDBAL: 0x7d730a80
TDLEN: 128
(省略)
loader > set gw 10.71.168.254			<< ゲートウェイの設定
Correct gateway addr 10.71.168.254
Address: 10.71.168.154
Netmask: 255.255.255.0
Server: 0.0.0.0
Gateway: 10.71.168.254
loader > 


2.4.    リカバリーモードの設定

ACIモードのNexus 9000シリーズはBootflashの容量がStandaloneモードと異なり、システムの初期化を行う必要があります。システムの初期化にはリカバリーモードで一旦起動を止める必要があるため、‘cmdline recoverymode=1’を設定します。

loader > cmdline recoverymode=1


2.5.    NX-OSイメージの読み込みと起動

TFTPもしくはUSB経由でNX-OSイメージを読み込み、スイッチを起動させます。
Note: ここでNX-OSイメージを読み込んでも、Bootflashには保存されません。NX-OSで起動後、改めてBootflashにNX-OSイメージを保存する必要があります。
TFTP経由で起動する場合は以下のように指定します。

loader > boot tftp://10.141.32.72/nxos.7.0.3.I7.1.bin	<< TFTPサーバーからイメージを読み込んで起動
Booting tftp://10.141.32.72/nxos.7.0.3.I7.1.bin 
Trying netboot 
Filename: /nxos.7.0.3.I7.1.bin
Address: 10.71.168.154
Netmask: 255.255.255.0
Server: 10.141.32.72
Gateway: 10.71.168.254
 Filesystem type is tftp, using whole disk
..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Image valid


Image Signature verification was Successful.


image length: 882475008 bytes 
Boot Time: 11/24/2017  2:3:17
(省略)
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (C) 2002-2017, Cisco and/or its affiliates.
All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under their own
licenses, such as open source.  This software is provided "as is," and unless
otherwise stated, there is no warranty, express or implied, including but not
limited to warranties of merchantability and fitness for a particular purpose.
Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or 
GNU General Public License (GPL) version 3.0  or the GNU
Lesser General Public License (LGPL) Version 2.1 or 
Lesser General Public License (LGPL) Version 2.0. 
A copy of each such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://opensource.org/licenses/gpl-3.0.html and
http://www.opensource.org/licenses/lgpl-2.1.php and
http://www.gnu.org/licenses/old-licenses/library.txt.
switch(boot)# 

USBから起動する場合は以下のように指定します。

loader > boot usb0:nxos.7.0.3.I7.1.bin		<< USB0 にUSBメモリが接続されている場合

 

2.6.    システムの初期化

“switch(boot)#”が表示されたら‘init system’でシステムを初期化します。

switch(boot)# init system
This command is going to erase your startup-config, licenses as well as the contents of your bootflash:.
Do you want to continue? (y/n)  [n] y
Initializing the system ...
Checking flash ...
Erasing Flash ...
Partitioning ...
Partitioning successfull
Formatting bootloader: ...
mke2fs 1.42.1 (17-Feb-2012)
Initializing startup-config and licenses ...
Formatting cfg0: ...
mke2fs 1.42.1 (17-Feb-2012)
Formatting cfg1: ...
mke2fs 1.42.1 (17-Feb-2012)
Formatting pss: ...
mke2fs 1.42.1 (17-Feb-2012)
Formatting plog: ...
mke2fs 1.42.1 (17-Feb-2012)
Formatting bootflash: ...
mke2fs 1.42.1 (17-Feb-2012)
Formatting logflash: ...
mke2fs 1.42.1 (17-Feb-2012)
Mounting ...
mount: can't find /mnt/plog in /etc/fstab or /etc/mtab
ERROR: cannot mount filesystem
Resetting CMOS to default configuration ...
Reinitializing NVRAM contents ...
Initialization completed.
switch(boot)# 


2.7.    NX-OSイメージでの起動と初期設定

初期化が完了したら、NX-OSの起動を再開し、スイッチを起動させます。

switch(boot)# load-nxos
Unsquashing rootfs ...
/bin/ln: failed to create hard link `/usr/bin/dmidecode': File exists
Creating /dev/mcelog
Starting mcelog daemon
Overwriting dme stub lib
INIT: Switching to runlevel: 3
INIT: Sending processes the TERM signal
fastboot or torissu for Tahoe cards
File /etc/shared/localtime does not exist.
switch(boot)# INIT: 
Running S93thirdparty-script...
(省略)
Starting Auto Provisioning ...
Done

Abort Auto Provisioning and continue with normal setup ?(yes/no)[n]: 

起動後、POAPを無効にしノーマルセットアップを行うために‘yes’を入力します。起動ログに埋もれている場合は、一度“Enter”キーを押すと表示されます。

Abort Auto Provisioning and continue with normal setup ?(yes/no)[n]: yes
Disabling POAP

 その後、通常のNX-OSの初期化プロセスに移るので、adminパスワードの設定、およびbasic configuration dialogのスキップを行います。

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


Do you want to enforce secure password standard (yes/no) [y]: no	<< ‘no’で Strong Password を無効

  Enter the password for "admin": 		<< 任意のパスワード
  Confirm the password for "admin": 		<< パスワードの再入力

         ---- Basic System Configuration Dialog VDC: 1 ----

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 Nexus9000 Family devices promptly with your
supplier. Failure to register may affect response times for initial
service calls. Nexus9000 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


2.8.    NX-OSイメージのダウンロード

設定したパスワードを使用してadminユーザでログインします。

User Access Verification
switch login: admin
Password: 					<< 設定したパスワードを入力

Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (C) 2002-2017, Cisco and/or its affiliates.
All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under their own
licenses, such as open source.  This software is provided "as is," and unless
otherwise stated, there is no warranty, express or implied, including but not
limited to warranties of merchantability and fitness for a particular purpose.
Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or 
GNU General Public License (GPL) version 3.0  or the GNU
Lesser General Public License (LGPL) Version 2.1 or 
Lesser General Public License (LGPL) Version 2.0. 
A copy of each such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://opensource.org/licenses/gpl-3.0.html and
http://www.opensource.org/licenses/lgpl-2.1.php and
http://www.gnu.org/licenses/old-licenses/library.txt.
switch# 

ログイン後、mgmt 0インターフェースにIPアドレスを設定します。また、必要に応じてmanagement VRFにゲートウェイを設定します。

switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)# interface mgmt 0
switch(config-if)# ip address 10.71.168.154/24
switch(config-if)# exit
switch(config)# vrf context management 
switch(config-vrf)# ip route 0/0 10.71.168.254
switch(config-vrf)# end
switch# 

 BootflashにNX-OSイメージをダウンロードします。

switch# copy ftp://10.71.168.65/n9k/nxos.7.0.3.I7.1.bin bootflash: vrf management 
Enter username: anonymous
Password: 
[#####################    ]       836.19MB                                             

***** Transfer of file Completed Successfully *****
Copy complete, now saving to disk (please wait)...
Copy complete.
switch# 


2.9.    Standaloneモードでの起動設定と初期化

boot コマンドでダウンロードしたイメージを指定し、設定を保存します。

switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)# boot nxos nxos.7.0.3.I7.1.bin
Performing image verification and compatibility check, please wait....
switch(config)# end
switch# copy running-config startup-config 
[########################################] 100%
Copy complete, now saving to disk (please wait)...
Copy complete.
switch# 
switch# show boot
Current Boot Variables:

sup-1
NXOS variable = bootflash:/nxos.7.0.3.I7.1.bin

Boot Variables on next reload:

sup-1
NXOS variable = bootflash:/nxos.7.0.3.I7.1.bin	<< 再起動後読み込まれるNX-OSイメージを確認
switch# 

‘write erase’でstartup-configを削除したら作業完了です。

switch# write erase
Warning: This command will erase the startup-configuration.
Do you wish to proceed anyway? (y/n)  [n] y
switch# show startup-config 
No startup configuration
switch# 


3.    TFTP serverの準備

ここではTftpd64のインストールと設定について説明します。

3.1.    インストーラーのダウンロード

Tftpd64のダウンロードページから“direct link for tftpd64 installer”をクリックし、インストーラーをダウンロードします。
manual12.png

 

3.2.    Tftpd64のインストール

ダウンロード後、インストーラーをダブルクリックし任意のフォルダにインストールしてください。下記の例では‘C:\Program Files\Tftpd64’にインストールしています。
manual05.png manual06.pngmanual07.png manual08.png 


3.3.    Tftpd64の設定

インストール後、Tftpd64を起動し、アプリケーションの設定を行います。起動した画面で表示される“Current Directory”にStandaloneモードで使用するNX-OSイメージが存在するディレクトリを指定します。

manual09.png

恒久的に変更する場合は“Settings”からTFTPタブの“Base Directory”でディレクトリを指定し、GLOBALタブで“Syslog Server”、“DHCP Server”からチェックを外し“OK”をクリックして設定を終了します。

manual11.png  manual13.png


4.    起動OSの確認方法

Nexus 9000 シリーズがどちらの OS で起動してきたかは、起動後に表示されるプロンプトで判断が可能です。

4.1.    ACIモード

ACIモードでは起動後“(none)login:”とログインプロンプトが表示されます。

User Access Verification
(none) login: 


4.2.    Standaloneモード

Standaloneモードでは“normal setup”を行うのかどうかを確認するプロンプトが表示されます。

Abort Auto Provisioning and continue with normal setup ?(yes/no)[n]: 


5.    備考

このドキュメントの内容は2017年11月現在のものであり、予告なく変更される可能性があります。

 

 

Getting Started

検索バーにキーワード、フレーズ、または質問を入力し、お探しのものを見つけましょう

シスコ コミュニティをいち早く使いこなしていただけるよう役立つリンクをまとめました。みなさんのジャーニーがより良いものとなるようお手伝いします