community.cisco.com · web viewnexus 9000 スイッチの再起動とloaderでの起動...

15
ACI モモモモモモモモモ Nexus 9000 モモモモモ Standalone モモモモモモモモモモモモモモモモ Ver 1.00 モモモ Yamada, Akinori (akyamada) モモモ 2017 モ 11 モ 27 モ

Upload: others

Post on 24-Jan-2021

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: community.cisco.com · Web viewNexus 9000 スイッチの再起動とloaderでの起動 電源ケーブルの抜き差しを行い、スイッチを再起動します。再起動が開始し“CISCO

ACI モードで出荷された Nexus 9000 シリーズを

Standalone モードに変更するための作業手順書Ver 1.00

作成者:Yamada, Akinori (akyamada)作成日:2017 年 11 月 27 日

Page 2: community.cisco.com · Web viewNexus 9000 スイッチの再起動とloaderでの起動 電源ケーブルの抜き差しを行い、スイッチを再起動します。再起動が開始し“CISCO

内容1. はじめに.........................................................................................................32. 作業手順.........................................................................................................4

2.1. Nexus 9000 スイッチの起動......................................................................42.2. Nexus 9000 スイッチの再起動と loader での起動........................................42.3. IP アドレスとゲートウェイの設定................................................................52.4. リカバリーモードの設定.............................................................................52.5. NX-OS イメージの読み込みと起動...............................................................62.6. システムの初期化......................................................................................72.7. NX-OS イメージでの起動と初期設定............................................................82.8. NX-OS イメージのダウンロード..................................................................92.9. Standalone モードでの起動設定と初期化..................................................10

3. TFTP server の準備........................................................................................113.1. インストーラーのダウンロード.................................................................113.2. Tftpd64 のインストール...........................................................................123.3. Tftpd64 の設定.......................................................................................13

4. 起動 OS の確認方法........................................................................................144.1. ACI モード..............................................................................................144.2. Standalone モード..................................................................................14

5. 備考..............................................................................................................15

Page 3: community.cisco.com · Web viewNexus 9000 スイッチの再起動とloaderでの起動 電源ケーブルの抜き差しを行い、スイッチを再起動します。再起動が開始し“CISCO

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(赤イタリック)’で表記

しています。

Page 4: community.cisco.com · Web viewNexus 9000 スイッチの再起動とloaderでの起動 電源ケーブルの抜き差しを行い、スイッチを再起動します。再起動が開始し“CISCO

2. 作業手順

2.1. Nexus 9000 スイッチの起動

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

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

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

の失敗を防げます。

User Access Verification(none) login:

CISCO SWITCH Ver7.59Device 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 1333MhzRelocated to memoryTime: 11/28/2017 6:43:44Pre-Reserving Memory Bar of size 8000000 for root-port B0|D1C|F0 7ffffff 4Detected CISCO IOFPGAMIFPGA PresentCode Signing Results: 0x0 Using Upgrade FPGAChecking and setting PSU fan directions Booting from Primary Bios FPGA Revison : 0x9FPGA ID : 0x1528227FPGA Date : 0x20161122Power Debug Register: 0x0Reset Cause Register: 0x80000000Boot Ctrl Register : 0xe0ffFPGA Update Status : 0x20Detected CISCO MIFPGAFPGA Update Status : 0x20Version 2.16.1240. Copyright (C) 2013 American Megatrends, Inc. Board type 2IOFPGA @ 0xc8000000 << ここまでに ”Ctrl+c” を入力SLOT_ID @ 0xfAborting config file read and autoboot No autoboot or failed autoboot. falling to loader

Loader Version 7.58

loader >

Page 5: community.cisco.com · Web viewNexus 9000 スイッチの再起動とloaderでの起動 電源ケーブルの抜き差しを行い、スイッチを再起動します。再起動が開始し“CISCO

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

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

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

ACI モードの Nexus 9000 シリーズは Bootflash の容量が Standalone モードと異な

り、システムの初期化を行う必要があります。システムの初期化にはリカバリーモード

で一旦起動を止める必要があるため、‘cmdline recoverymode=1’を設定します。

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.0Finding driver for NIC vendor 8086 Device 438 Found the device 8086:438 at ioaddr e100, membase d8040000 at 1:2Probing...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 438phy_addr is is 2 changing sgmii output amplitude from 0x8083 to 8084 Trying to read from nic eeprom igb: INTEL p has large-format EERDigb: INTEL has EEPROM MAC address Ethernet addr: 00:A2:EE:28:B0:12igb: INTEL link status is 0x80080687Link is up Link speed = 1000 Mbps, Full Duplexigb: e1000_init_rx_addrsigb: Programming MAC Address into RAR[0]igb: Clearing RAR[1-15]Tx: TDBAL: 0x7d730a80TDLEN: 128(省略)loader > set gw 10.71.168.254 << ゲートウェイの設定Correct gateway addr 10.71.168.254Address: 10.71.168.154Netmask: 255.255.255.0Server: 0.0.0.0Gateway: 10.71.168.254loader >

loader > cmdline recoverymode=1

Page 6: community.cisco.com · Web viewNexus 9000 スイッチの再起動とloaderでの起動 電源ケーブルの抜き差しを行い、スイッチを再起動します。再起動が開始し“CISCO

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

TFTP もしくは USB 経由で NX-OS イメージを読み込み、スイッチを起動させます。

Note: ここで NX-OS イメージを読み込んでも、Bootflash には保存されません。

NX-OS で起動後、改めて Bootflash に NX-OS イメージを保存する必要があります。

TFTP 経由で起動する場合は以下のように指定します。

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

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.binAddress: 10.71.168.154Netmask: 255.255.255.0Server: 10.141.32.72Gateway: 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) SoftwareTAC support: http://www.cisco.com/tacCopyright (C) 2002-2017, Cisco and/or its affiliates.All rights reserved.The copyrights to certain works contained in this software areowned by other third parties and used and distributed under their ownlicenses, such as open source. This software is provided "as is," and unlessotherwise stated, there is no warranty, express or implied, including but notlimited to warranties of merchantability and fitness for a particular purpose.Certain components of this software are licensed underthe GNU General Public License (GPL) version 2.0 or GNU General Public License (GPL) version 3.0 or the GNULesser General Public License (LGPL) Version 2.1 or Lesser General Public License (LGPL) Version 2.0. A copy of each such license is available athttp://www.opensource.org/licenses/gpl-2.0.php andhttp://opensource.org/licenses/gpl-3.0.html andhttp://www.opensource.org/licenses/lgpl-2.1.php andhttp://www.gnu.org/licenses/old-licenses/library.txt.switch(boot)#

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

Page 7: community.cisco.com · Web viewNexus 9000 スイッチの再起動とloaderでの起動 電源ケーブルの抜き差しを行い、スイッチを再起動します。再起動が開始し“CISCO

2.6. システムの初期化

“switch(boot)#”が表示されたら‘init system’でシステムを初期化します。switch(boot)# init systemThis 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] yInitializing the system ...Checking flash ...Erasing Flash ...Partitioning ...Partitioning successfullFormatting 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/mtabERROR: cannot mount filesystemResetting CMOS to default configuration ...Reinitializing NVRAM contents ...Initialization completed.switch(boot)#

Page 8: community.cisco.com · Web viewNexus 9000 スイッチの再起動とloaderでの起動 電源ケーブルの抜き差しを行い、スイッチを再起動します。再起動が開始し“CISCO

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

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

起動後、POAP を無効にしノーマルセットアップを行うために‘yes’を入力します。起

動ログに埋もれている場合は、一度“Enter”キーを押すと表示されます。

その後、通常の NX-OS の初期化プロセスに移るので、admin パスワードの設定、およ

び basic configuration dialog のスキップを行います。

switch(boot)# load-nxosUnsquashing rootfs .../bin/ln: failed to create hard link `/usr/bin/dmidecode': File existsCreating /dev/mcelogStarting mcelog daemonOverwriting dme stub libINIT: Switching to runlevel: 3INIT: Sending processes the TERM signalfastboot or torissu for Tahoe cardsFile /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]:

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

---- 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 ofthe system. Setup configures only enough connectivity for managementof the system.

Please register Cisco Nexus9000 Family devices promptly with yoursupplier. Failure to register may affect response times for initialservice calls. Nexus9000 devices must be registered to receive entitled support services.

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

Would you like to enter the basic configuration dialog (yes/no): no

Page 9: community.cisco.com · Web viewNexus 9000 スイッチの再起動とloaderでの起動 電源ケーブルの抜き差しを行い、スイッチを再起動します。再起動が開始し“CISCO

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

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

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

じて management VRF にゲートウェイを設定します。

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

User Access Verificationswitch login: adminPassword: << 設定したパスワードを入力

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

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

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

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

Page 10: community.cisco.com · Web viewNexus 9000 スイッチの再起動とloaderでの起動 電源ケーブルの抜き差しを行い、スイッチを再起動します。再起動が開始し“CISCO

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

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

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

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

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

Boot Variables on next reload:

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

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

Page 11: community.cisco.com · Web viewNexus 9000 スイッチの再起動とloaderでの起動 電源ケーブルの抜き差しを行い、スイッチを再起動します。再起動が開始し“CISCO

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

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

Tftpd64 のダウンロードページから“direct link for tftpd64 installer”をクリックし、

インストーラーをダウンロードします。

Page 12: community.cisco.com · Web viewNexus 9000 スイッチの再起動とloaderでの起動 電源ケーブルの抜き差しを行い、スイッチを再起動します。再起動が開始し“CISCO

3.2. Tftpd64 のインストール

ダウンロード後、インストーラーをダブルクリックし任意のフォルダにインストール

してください。下記の例では‘C:\Program Files\Tftpd64’にインストールしています。

 

 

Page 13: community.cisco.com · Web viewNexus 9000 スイッチの再起動とloaderでの起動 電源ケーブルの抜き差しを行い、スイッチを再起動します。再起動が開始し“CISCO

3.3. Tftpd64 の設定

インストール後、Tftpd64 を起動し、アプリケーションの設定を行います。起動した

画面で表示される“Current Directory”に Standalone モードで使用する NX-OS イメー

ジが存在するディレクトリを指定します。

恒久的に変更する場合は“Settings”から TFTP タブの“Base Directory”でディレクトリ

を指定し、GLOBAL タブで“Syslog Server”、“DHCP Server”からチェックを外し“OK”をクリックして設定を終了します。

 

Page 14: community.cisco.com · Web viewNexus 9000 スイッチの再起動とloaderでの起動 電源ケーブルの抜き差しを行い、スイッチを再起動します。再起動が開始し“CISCO

4. 起動 OS の確認方法Nexus 9000 シリーズがどちらの OS で起動してきたかは、起動後に表示されるプロ

ンプトで判断が可能です。

4.1. ACI モード

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

4.2. Standalone モード

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

示されます。

User Access Verification(none) login:

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

Page 15: community.cisco.com · Web viewNexus 9000 スイッチの再起動とloaderでの起動 電源ケーブルの抜き差しを行い、スイッチを再起動します。再起動が開始し“CISCO

5. 備考このドキュメントの内容は 2017 年 11 月現在のものであり、予告なく変更される可能

性があります。