[index] SwitchBlade x8100シリーズ コマンドリファレンス 5.4.7
NoteTelnet/SSHを使用するには、あらかじめコンソールターミナルからログインし、本製品にIPアドレス等を設定しておく必要があります。本製品のご購入時にはIPアドレスが設定されていないため、必ず一度はコンソールターミナルからログインすることとなります。
通信速度 | 115200bps |
データビット | 8 |
ストップビット | 1 |
パリティー | なし |
フロー制御 | なし |
エミュレーション | VT100 または ANSI |
Backspaceキーのコード | Delete |
Note端末画面の1画面当たり表示行数を0に設定(画面単位での一時停止を無効化)した場合、show logコマンドなどの画面出力が自動折り返しされません。
Note起動後ログインプロンプトが表示されるまでの時間は、機種やファームウェアのバージョンによって異なりますが、おおむね一分程度かかります。
Bootloader 1.0.9 loaded Press <Ctrl+B> for the Boot Menu Reading filesystem... Loading flash:SBx81CFC400-5.4.7-1.1.rel... Verifying release... OK Booting... Starting base/first... [ OK ] Mounting virtual filesystems... [ OK ] ______________ ____ /\ \ / /______\ / \ \_ __/ /| ______ | / \ | | / | ______ | / \ \ / / \ ____ / /______/\____\ \/ /____________/ Allied Telesis Inc. AlliedWare Plus (TM) v5.4.7 Current release filename: SBx81CFC400-5.4.7-1.1.rel Original release filename: SBx81CFC400-5.4.7-1.1.rel Built: Tue Oct 11 16:36:59 NZDT 2011 by: maker@maker06-build Mounting static filesystems... [ OK ] Checking flash filesystem... [ OK ] Mounting flash filesystem... [ OK ] Checking for last gasp debug output... [ OK ] Checking NVS filesystem... [ OK ] Mounting NVS filesystem... [ OK ] Starting base/rename-eth... [ OK ] Starting base/arm_sysctl... [ OK ] Starting base/dbus... [ OK ] Starting base/syslog... [ OK ] Starting base/lif_ok... [ OK ] ... Received event modules.done Received event board.inserted Received event hardware.done Starting network/startup... [ OK ] Starting network/stackd... [ OK ] Starting network/election.timeout... [ OK ] Received event network.enabled Initializing HA processes: 08:24:38 awplus-5 chassis[1492]: Card 6 (AT-SBx81CFC400) has joined chassis 08:24:40 awplus-5 chassis[1492]: Card 6 (AT-SBx81CFC400) has become the Active C 08:24:40 awplus-5 chassis[1492]: Card 12 (AT-SBx81XZ4) has joined chassis 08:24:40 awplus-5 chassis[1492]: Card 10 (AT-SBx81GP24) has joined chassis 08:24:40 awplus-5 chassis[1492]: Card 2 (AT-SBx81GP24) has joined chassis 08:24:40 awplus-5 chassis[1492]: Card 4 (AT-SBx81GP24) has joined chassis Received event vcs.elected-slave 08:24:44 awplus-5 chassis[1492]: Card has booted as one off boot, SW version au. auth, bgpd, cntrd, epsr, exfx, hostd, hsl imi, imiproxyd, irdpd, lacp, lldpd, loopprot, mstp nsm, openhpid, ospf6d, ospfd, pdmd, pimd, ripd ripngd, rmon, sflowd, vrrpd ... Received event network.active Loading configuration file from active CFC, please wait. . done! Received event network.configured awplus login:
awplus login: manager ↓ Password: friend ↓(実際には表示されません) AlliedWare Plus (TM) 5.4.7 xx/xx/xx xx:xx:xx awplus>
Note一定回数(初期設定では5回)連続してログインに失敗すると、失敗したユーザーは一定時間(初期設定は5分)ログインすることができなくなります(失敗したユーザー以外ではログイン可能)。これらの設定は、aaa local authentication attempts max-failコマンド、aaa local authentication attempts lockout-timeコマンドで変更できます。
NoteTelnet/SSH接続の場合、ログインプロンプトが表示されてから1分以内にログインしないと、Telnet/SSHセッションが切断されます。切断までの時間は、SSHの場合ssh server login-timeoutコマンドで変更できます。
awplus login: manager ↓ Password: friend ↓(実際には表示されません) AlliedWare Plus (TM) 5.4.7 xx/xx/xx xx:xx:xx awplus>
awplus> enable ↓ awplus#
awplus# configure terminal ↓ Enter configuration commands, one per line. End with CNTL/Z. awplus(config)#
awplus(config)# exit ↓ awplus#
awplus(config)# interface vlan1 ↓ awplus(config-if)#
awplus(config-if)# exit ↓ awplus(config)#
awplus(config-if)# end ↓ awplus#
awplus# disable ↓ awplus>
awplus# exit ↓ awplus login:
awplus> enable ↓ awplus# configure terminal ↓ Enter configuration commands, one per line. End with CNTL/Z.
awplus(config)# username manager password o10moDutch ↓
Noteパスワードの設定は保存しないと再起動によって失われます。設定を保存する方法については後述します。
Noteユーザー認証関連機能の詳細については、「運用・管理」の「ユーザー認証」をご覧ください。
awplus(config)# hostname myswitch ↓ myswitch(config)#
Noteホスト名の設定は保存しないと再起動によって失われます。設定を保存する方法については後述します。
Note本解説編の残りの部分では、説明の流れ上、ホスト名を「myswitch」に設定しているものと仮定します。他の解説編やコマンド編では、原則として初期設定のホスト名「awplus」を用いますが、複数の装置を使用する構成例などでは、各装置を見分けやすいよう「RouterA」、「RouterB」のようなホスト名を仮定する場合もあります。
Notehostnameコマンドで設定したホスト名は、MIB-IIオブジェクトsysNameの値としても使われます。詳しくは、「運用・管理」の「SNMP」をご覧ください。
myswitch(config)# clock timezone JST plus 9 ↓
Noteタイムゾーンの設定は保存しないと再起動によって失われます。設定を保存する方法については後述します。
Note本コマンドによりタイムゾーンの設定を変更したときは、設定を保存した後システムを再起動してください。ファームウェアバージョン5.4.3以前のファームウェアからバージョンアップする場合、バージョンアップ後にタイムゾーンの設定を反映させる必要があるため、再度システムを再起動してください。
myswitch(config)# exit ↓ myswitch# clock set 17:05:00 24 Dec 2012 ↓
Noteclock setコマンドは実行コマンドなので、実行後に設定保存の操作(後述)は必要ありません。コマンド実行とともに内蔵時計の時刻が変更され、以後保持されます。
Noteclock setコマンドで指定する時刻は、設定済みタイムゾーンにおける現地時刻です。タイムゾーンの設定に基づき、内蔵時計には協定世界時(UTC)換算の時刻が設定されます。本製品をUTC以外のタイムゾーンで使用する場合は、最初にタイムゾーンの設定を行い、その後時刻を設定してください。
1月(January) | Jan |
2月(February) | Feb |
3月(March) | Mar |
4月(April) | Apr |
5月(May) | May |
6月(June) | Jun |
7月(July) | Jul |
8月(August) | Aug |
9月(September) | Sep |
10月(October) | Oct |
11月(November) | Nov |
12月(December) | Dec |
myswitch# show clock ↓ Local Time: Mon, 24 Dec 2012 17:05:03 +0900 UTC Time: Mon, 24 Dec 2012 08:05:03 +0000 Timezone: JST Timezone Offset: +09:00 Summer time zone: None
myswitch# configure terminal ↓ Enter configuration commands, one per line. End with CNTL/Z. myswitch(config)#
myswitch(config)# interface eth0 ↓ myswitch(config-if)#
myswitch(config-if)# ip address 192.168.0.1/24 ↓ myswitch(config-if)# end ↓
NoteIPアドレスの設定は保存しないと再起動によって失われます。設定を保存する方法については後述します。
NoteSSHクライアントからCLIへのアクセスを可能にするには、IPアドレスの設定だけでなく、SSHサーバー有効化のための設定も必要です。設定方法については、「運用・管理」の「Secure Shell」をご覧ください。
NoteTelnetクライアントとeth0の間にルーターが介在している場合は、本製品とTelnetクライアントの双方にIP経路の設定が必要です。本製品の経路設定については、「IP」の「経路制御」をご覧ください。
myswitch# show ip interface eth0 ↓ Interface IP-Address Status Protocol eth0 192.168.0.1 admin up running
myswitch# show interface eth0 ↓ Interface eth0 Scope: both Link is UP, administrative state is UP Hardware is Ethernet, address is 0000.cd27.be48 IPv4 address 192.168.0.1/24 broadcast 192.168.0.255 index 1 metric 1 mtu 1500 duplex-full speed 100 polarity auto <UP,BROADCAST,RUNNING,MULTICAST> VRF Binding: Not bound Bandwidth 1g input packets 153, bytes 17728, dropped 0, multicast packets 0 output packets 5, bytes 478, multicast packets 0 broadcast packets 0
Note設定変更時はこまめにコンフィグを保存することをおすすめします。
ランタイムメモリー上にある現在の設定内容。電源断や再起動によって失われる。show running-configコマンドで内容を確認できる。ファイル操作コマンドにおいては、仮想的なファイル「running-config」としてコピーなどの操作が可能 | |
起動時コンフィグ。システム起動の最終段階において自動的に復元される設定内容。フラッシュメモリー上にファイルとして保存されており、電源断や再起動を経ても失われない。show startup-configコマンドで内容を確認できる。ファイル操作コマンドにおいては、仮想的なファイル「startup-config」としてコピーなどの操作が可能。startup-configが実際にどのファイルを指しているかは、show bootコマンドで確認でき、boot config-fileコマンドで変更できる |
myswitch# show running-config ↓ ! service password-encryption ! hostname myswitch ! username manager privilege 15 password 8 $1$bJoVec4D$JwOJGPr7YqoExA0GVasdE0 ! service telnet ! clock timezone JST plus 9:00 ip domain-lookup ! no ip multicast-routing ! spanning-tree mode rstp ! interface port1.1.1-1.1.24 switchport switchport mode access ! interface eth0 ip address 192.168.0.1/24 ! line con 0 line vty 0 4 ! end
myswitch# copy running-config startup-config ↓ Building configuration... [OK]
myswitch# write memory ↓ Building configuration... [OK]
myswitch# show startup-config ↓ ! service password-encryption ! hostname myswitch ! username manager privilege 15 password 8 $1$bJoVec4D$JwOJGPr7YqoExA0GVasdE0 ! service telnet ! clock timezone JST plus 9:00 ip domain-lookup ! no ip multicast-routing ! spanning-tree mode rstp ! interface port1.1.1-1.1.24 switchport switchport mode access ! interface eth0 ip address 192.168.0.1/24 ! line con 0 line vty 0 4 ! end
Note再起動を実行する前に、現在の設定内容(ランニングコンフィグ)を保存したかどうかご確認ください。設定の保存については、前節および「運用・管理」の「コンフィグレーション」をご覧ください。
myswitch> enable ↓ myswitch# reload ↓ reboot system? (y/n): y ↓ URGENT: broadcast message: System going down IMMEDIATELY! ... Rebooting at user request ... Restarting system.
awplus(config)# boot system flash:/SBx81CFC400-5.4.7-1.2.rel ↓
awplus(config)# boot system usb:/SBx81CFC400-5.4.7-1.2.rel ↓
NoteUSBメモリー上のイメージファイルを起動用ファームウェアに指定するには、USB 2.0である必要があります。ご使用の際には、お客様の使用環境で事前に検証を行った上で導入してください。
Noteコントロールファブリックカード AT-SBx81CFC400 と AT-SBx81CFC960 では、使用するファームウェアイメージファイルが異なります。バージョンアップ時には、それぞれにあったファームウェアイメージファイルをご使用ください。
Note5.4.7-1.2は説明上使用している架空のファームウェアとなり、5.4.7-1.1リリース時点では実際にはリリースされていないファームウェアバージョンとなりますのでご注意ください。
Noteイメージファイルの設定は、コマンド実行時にシステムファイルに保存されるため、copyコマンドやwrite fileコマンド、write memoryコマンドなどでコンフィグに保存する必要はありません。
awplus(config)# boot system backup flash:/SBx81CFC400-5.4.7-1.1.rel ↓
awplus# show boot ↓
NoteVCS構成におけるファームウェア更新手順については、VCS運用編をご覧ください。
Noteコントロールファブリックカード AT-SBx81CFC400 と AT-SBx81CFC960 では、使用するファームウェアイメージファイルが異なります。バージョンアップ時には、それぞれにあったファームウェアイメージファイルをご使用ください。
Noteファームウェアの更新は、ネットワークの実運用中に行わないでください。
Note5.4.7-1.2は説明上使用している架空のファームウェアとなり、5.4.7-1.1リリース時点では実際にはリリースされていないファームウェアバージョンとなりますのでご注意ください。
awplus# show boot ↓ Boot configuration -------------------------------------------------------------------------------- Current software : SBx81CFC400-5.4.7-1.1.rel Current boot image : flash:/SBx81CFC400-5.4.7-1.1.rel (file exists) Backup boot image : Not set Default boot config: flash:/default.cfg Current boot config: flash:/default.cfg (file exists) Backup boot config: Not set
awplus# show file systems ↓ Card 5: Size(b) Free(b) Type Flags Prefixes S/D/V Lcl/Ntwk Avail ------------------------------------------------------------------- 126.0M 29.5M flash rw flash: static local Y - - system rw system: virtual local - 10.0M 9.8M debug rw debug: static local Y 499.0K 403.0K nvs rw nvs: static local Y - - sdcard rw card: dynamic local N - - usbstick rw usb: dynamic local N - - tftp rw tftp: - network - - - scp rw scp: - network - - - sftp ro sftp: - network - - - http ro http: - network - Card 6: Size(b) Free(b) Type Flags Prefixes S/D/V Lcl/Ntwk Avail ------------------------------------------------------------------- 126.0M 64.9M flash rw flash: static local Y - - system rw system: virtual local - 10.0M 9.8M debug rw debug: static local Y 499.0K 400.0K nvs rw nvs: static local Y - - sdcard rw card: dynamic local N - - usbstick rw usb: dynamic local N - - tftp rw tftp: - network - - - scp rw scp: - network - - - sftp ro sftp: - network - - - http ro http: - network -
awplus# dir awplus-6/flash: ↓ 2681 -rw- Aug 10 2012 17:59:29 snmp.cfg 87616 -rw- Aug 10 2012 15:40:19 02-x8100.cfg 126601 -rw- Aug 10 2012 16:52:24 fullcard.cfg 13947348 -rw- Apr 8 2013 17:55:22 SBx81CFC400-5.4.7-1.1.rel awplus# delete awplus-6/flash:fullcard.cfg ↓
awplus# pwd ↓ flash:/ awplus# copy tftp://10.100.10.70/SBx81CFC400-5.4.7-1.2.rel flash ↓ Enter destination file name [SBx81CFC400-5.4.7-1.2.rel]: ↓ Copying........................................ Successful operation
awplus# dir ↓ 12547211 -rw- May 10 2013 16:41:33 SBx81CFC400-5.4.7-1.2.rel 312 -rw- Nov 26 2011 09:11:19 default.cfg ...
awplus# configure terminal ↓ Enter configuration commands, one per line. End with CNTL/Z. awplus(config)# boot system flash:/SBx81CFC400-5.4.7-1.2.rel ↓
awplus(config)# boot system backup flash:/SBx81CFC400-5.4.7-1.1.rel ↓
awplus(config)# exit ↓ awplus# show boot ↓ Boot configuration -------------------------------------------------------------------------------- Current software : SBx81CFC400-5.4.7-1.1.rel Current boot image : flash:/SBx81CFC400-5.4.7-1.2.rel (file exists) Backup boot image : flash:/SBx81CFC400-5.4.7-1.1.rel (file exists) Default boot config: flash:/default.cfg Current boot config: flash:/default.cfg (file exists) Backup boot config: Not set
awplus# reload ↓ reboot system? (y/n): y ↓ ...
Note5.4.7-1.2は説明上使用している架空のファームウェアです。5.4.7-1.1リリース時点では実在しませんのでご注意ください。
NoteISSUはバージョン5.4.4-1.1以降のメンテナンスバージョン間(5.4.4-1.1から5.4.4-1.2など)でのみ使用可能です。また、メンテナンスバージョン間でも互換性のない場合があるため、各メンテナンスバージョンのリリースノートを参照してください。マイナーバージョン間(5.4.4-1.1から5.4.4-2.xなど)やメジャーバージョン間(5.4.4-1.1から5.4.5-x.xなど)でのファームウェア更新には使用できません。
awplus# dir awplus-1.6/flash:/*.rel ↓ ... 1401740 -rw- Jan 01 2011 00:00:00 awplus-1.6/flash:/SBx81CFC960-nolonger-used.rel ... awplus# delete awplus-1.6/flash:/SBx81CFC960-nolonger-used.rel ↓ Deleting.................................................... Successful operation
awplus# copy tftp://10.100.10.70/SBx81CFC960-5.4.7-1.2.rel flash ↓ Enter destination file name [SBx81CFC960-5.4.7-1.2.rel]: Copying.................................................... Successful operation
awplus# issu boot SBx81CFC960-5.4.7-1.2.rel ↓ This will update the preferred release file to SBx81CFC960-5.4.7-1.2.rel. The CFCs will then be rebooted one at a time and will rejoin running the new release. To complete ISSU, the line-cards must be manually rebooted at a later convenient time. Start the ISSU process now? (y/n): y ↓ Synchronizing file across the chassis, please wait... File synchronization with card 1.6 successfully completed [DONE]
Note現在動作しているファームウェアがフラッシュメモリー上に存在しない場合は、issu bootコマンドを実行できません。issu bootコマンドを実行する前に、show bootコマンドで「Current boot image」が「file exists」となっていることを確認してください。
Noteなんらかの原因で一定時間内(issu abort-timeout)にスタンバイCFCが復帰しなかった場合、ISSU処理は中断されます。このとき、CFC間でファームウェアバージョンの不一致が発生しますが、この状態での運用はサポート対象外であるため、手動で同一ファームウェアに設定しなおす必要があります。ISSU中断後は「Current boot image」が旧ファームウェアのままですので、reboot/reloadコマンドのcardパラメーターを利用して、更新済みのスタンバイCFCを再起動することにより、全CFCのファームウェアがISSU実行前のものに戻ります。その後、再度issu bootコマンドを実行することも可能ですし、通常のファームウェア更新手順(こちらを参照)にしたがいboot systemコマンドで新ファームウェアを指定し、reboot/reloadコマンドでシステムを再起動することもできます。
Noteissu bootコマンドでは、ラインカードは自動的に再起動されません。ラインカードを手動で再起動して、すべてのラインカードがCFCと同じファームウェアになるまでは、厳密な意味でのISSU完了とはなりません。そのため、show systemコマンドの「Current software」は新しいファームウェアバージョンとなりますが、以下のメッセージが表示されます。
Warning: ISSU is currently in progress. System may be running with different software versions
NoteISSUでは、アクティブCFCが最後に再起動するため、アクティブCFCの切り替えが発生します。show cardコマンドで、アクティブCFCが切り替わっていることを確認してください。なお、本構成では、シャーシに2枚ずつCFCが装着されているため、シャーシ内でアクティブCFCが切り替わるだけで、システムが完全停止することはありません。
awplus# reboot card 1.1 ↓
Note上記コマンド実行後は「Configuration update completed」のログメッセージが表示されるまで待ってから、次のラインカードを再起動してください。
awplus(config)# ecofriendly led ↓
Note省電力イーサネット機能は、アドバンスドラインカードAT-SBx81GT40、AT-SBx81XLEM/XT4、AT-SBx81XLEM/GT8上のポートでのみサポートとなります。
awplus(config)# interface port1.1.2 ↓ awplus(config-if)# ecofriendly lpi ↓
(C) 2012 - 2017 アライドテレシスホールディングス株式会社
PN: 613-001735 Rev.Y