[index] CentreCOM x550シリーズ コマンドリファレンス 5.4.8
NoteTelnet/SSHを使用するには、あらかじめコンソールターミナルからログインし、本製品にIPアドレス等を設定しておく必要があります。本製品のご購入時にはIPアドレスが設定されていないため、必ず一度はコンソールターミナルからログインすることとなります。
通信速度 | 9600bps |
データビット | 8 |
ストップビット | 1 |
パリティー | なし |
フロー制御 | ハードウェア(RTS/CTS) |
エミュレーション | VT100 |
Backspaceキーのコード | Delete |
Note端末画面の1画面当たり表示行数を0に設定(画面単位での一時停止を無効化)した場合、show logコマンドなどの画面出力が自動折り返しされません。
Note起動後ログインプロンプトが表示されるまでの時間は、機種やファームウェアのバージョンによって異なりますが、おおむね一分程度かかります。
Bootloader 2.0.12 loaded Press <Ctrl+B> for the Boot Menu Reading filesystem... Loading flash:x550-5.4.8-0.2.rel... Verifying release... OK Booting... Starting base/first... [ OK ] Mounting virtual filesystems... [ OK ] ______________ ____ /\ \ / /______\ / \ \_ __/ /| ______ | / \ | | / | ______ | / \ \ / / \ ____ / /______/\____\ \/ /____________/ Allied Telesis Inc. AlliedWare Plus (TM) v5.4.8 Current release filename: x550-5.4.8-0.2.rel Original release filename: x550-5.4.8-0.2.rel Built: Thu Oct 25 17:14:27 NZDT 2012 by: maker@maker07-build Mounting static filesystems... [ OK ] Checking flash filesystem... [ OK ] Mounting flash filesystem... [ OK ] Checking NVS filesystem... [ OK ] Mounting NVS filesystem... [ OK ] Starting base/dbus... [ OK ] Starting base/syslog... [ OK ] Starting base/loopback... [ OK ] Starting base/poe_done... [ OK ] Starting base/sysctl... [ OK ] Starting base/portmapper... [ OK ] Received event poefw.done Received event syslog.done Starting base/reboot-stability... [ OK ] Starting base/autofs-card... [ OK ] Checking system reboot stability... [ OK ] Starting base/cron... [ OK ] Starting base/appmond... [ OK ] Starting hardware/openhpi... [ OK ] Starting hardware/timeout... [ OK ] Starting base/inet... [ OK ] Starting base/modules... [ 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: openhpid, hostd, cntrd, mstp, nsm, sflowd, auth epsr, hsl, imiproxyd, irdpd, lacp, lldpd, loopprot ospf6d, ospfd, pdmd, pimd, ripd, ripngd, rmon udldd, vrrpd, bgpd, imi Received event network.initialized 23:07:37 awplus-1 VCS[736]: No neighboring members found, unit may be in a standalone configuration Received event vcs.elected-master 23:07:37 awplus-1 VCS[736]: Startup speed can be improved by adding 'no stack 1 enable' to configuration 23:07:37 awplus VCS[736]: Member 1 (0000.f427.75d5) has become the Active Master Assigning Active Workload to HA processes: hsl, nsm, lacpd, loopprotd, mstpd, rmond, sflowd lldpd, vrrpd, authd, epsrd, irdpd, imi, imiproxyd Received event network.activated Loading default configuration .. done! Received event network.configured awplus login:
awplus login: manager ↓ Password: friend ↓(実際には表示されません) AlliedWare Plus (TM) 5.4.8 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.8 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本コマンドによりタイムゾーンの設定を変更したときは、設定を保存した後システムを再起動してください。
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 vlan1 ↓ 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クライアントとvlan1の間にルーターが介在している場合は、本製品とTelnetクライアントの双方にIP経路の設定が必要です。本製品の経路設定については、「IP」の「経路制御」をご覧ください。
myswitch# show ip interface vlan1 ↓ Interface IP-Address Status Protocol vlan1 192.168.0.1 admin up running
myswitch# show interface vlan1 ↓ Interface vlan1 Scope: both Link is UP, administrative state is UP Hardware is VLAN, address is 0000.cd24.0367 IPv4 address 192.168.0.1/24 broadcast 192.168.0.255 index 201 metric 1 mtu 1500 arp ageing timeout 300 <UP,BROADCAST,RUNNING,MULTICAST> VRF Binding: Not bound Bandwidth 1g input packets 0, bytes 0, dropped 0, multicast packets 0 output packets 4, bytes 368, 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.0.1-1.0.28 switchport switchport mode access ! interface vlan1 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.0.1-1.0.28 switchport switchport mode access ! interface vlan1 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:/x550-5.4.8-0.3.rel ↓
awplus(config)# boot system usb:/x550-5.4.8-0.3.rel ↓
NoteUSBメモリー上のイメージファイルを起動用ファームウェアに指定するには、USB 2.0である必要があります。ご使用の際には、お客様の使用環境で事前に検証を行った上で導入してください。
Note5.4.8-0.3は説明上使用している架空のファームウェアとなり、5.4.8-0.2リリース時点では実際にはリリースされていないファームウェアバージョンとなりますのでご注意ください。
Noteイメージファイルの設定は、コマンド実行時にシステムファイルに保存されるため、copyコマンドやwrite fileコマンド、write memoryコマンドなどでコンフィグに保存する必要はありません。
awplus(config)# boot system backup flash:/x550-5.4.8-0.2.rel ↓
awplus# show boot ↓
NoteVCS構成におけるファームウェア更新手順については、VCS運用編をご覧ください。
Noteファームウェアの更新は、ネットワークの実運用中に行わないでください。
Note5.4.8-0.3は説明上使用している架空のファームウェアとなり、5.4.8-0.2リリース時点では実際にはリリースされていないファームウェアバージョンとなりますのでご注意ください。
awplus# show boot ↓ Boot configuration -------------------------------------------------------------------------------- Current software : x550-5.4.8-0.2.rel Current boot image : flash:/x550-5.4.8-0.2.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 Autoboot status : disabled
awplus# show file systems ↓ Size(b) Free(b) Type Flags Prefixes S/D/V Lcl/Ntwk Avail ------------------------------------------------------------------- 31.0M 17.9M flash rw flash: static local Y - - system rw system: virtual local - 499.0k 417.0k nvs rw nvs: static local Y - - usbstick rw usb: dynamic local N - - tftp rw tftp: - network - - - scp rw scp: - network - - - sftp ro sftp: - network - - - http ro http: - network -
awplus# pwd ↓ flash:/ awplus# copy tftp://10.100.10.70/x550-5.4.8-0.3.rel flash ↓ Enter destination file name [x550-5.4.8-0.3.rel]: ↓ Copying........................................ Successful operation
awplus# dir ↓ 12547211 -rw- May 10 2013 16:41:33 x550-5.4.8-0.3.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:/x550-5.4.8-0.3.rel ↓
awplus(config)# boot system backup flash:/x550-5.4.8-0.2.rel ↓
awplus(config)# exit ↓ awplus# show boot ↓ Boot configuration -------------------------------------------------------------------------------- Current software : x550-5.4.8-0.2.rel Current boot image : flash:/x550-5.4.8-0.3.rel (file exists) Backup boot image : flash:/x550-5.4.8-0.2.rel (file exists) Default boot config: flash:/default.cfg Current boot config: flash:/default.cfg (file exists) Backup boot config: Not set Autoboot status : disabled
awplus# reload ↓ reboot system? (y/n): y ↓ ...
NoteUSBメモリー上のイメージファイルを起動用ファームウェアに指定するには、USB 2.0である必要があります。ご使用の際には、お客様の使用環境で事前に検証を行った上で導入してください。
NoteUSBメモリー上のイメージファイルを起動用ファームウェアに指定するには、あらかじめフラッシュメモリー上のイメージファイルをバックアップ用ファームウェアとして設定しておく必要があります。
awplus# configure terminal ↓ Enter configuration commands, one per line. End with CNTL/Z. awplus(config)# no boot system ↓ awplus(config)# boot system backup x550-5.4.8-0.2.rel ↓
awplus(config)# boot system usb:/x550-5.4.8-0.3.rel ↓ please wait....... File synchronization successfully completed
awplus# show boot ↓ Boot configuration -------------------------------------------------------------------------------- Current software : x550-5.4.8-0.2.rel Current boot image : usb:/x550-5.4.8-0.3.rel (file exists) Backup boot image : flash:/x550-5.4.8-0.2.rel (file exists) Default boot config: flash:/default.cfg Current boot config: flash:/default.cfg (file exists) Backup boot config: Not set Autoboot status : disabled
awplus# reload ↓ reboot system? (y/n): y ↓ ...
awplus(config)# autoboot enable ↓
Noteなお、工場出荷状態に戻して起動するには、erase factory-defaultコマンドを使用してください。製品購入時のファームウェアおよびコンフィグレーションの初期設定を容易にするため、USBオートブート機能は工場出荷状態からの初回起動時に有効になっています。しかし、初回起動処理が終了した後は自動的に設定が無効に変更されますので、初回起動時以降で本機能を使用する場合は、手動で設定を有効にしてください。
NoteUSBオートブート機能とVCSは併用できません。
Noteautoboot enableコマンドはコンフィグに保存する必要はありません。
Note手動でUSBオートブート機能を有効にすると、no autoboot enableを実行するまで本機能は有効のままとなります。
awplus# create autoboot usb ↓
awplus# show autoboot ↓
awplus(config)# autoboot enable ↓
Note工場出荷状態(初めて箱から出す場合)は本機能が一時的に有効となっていますが、初回起動が完了すると無効化されます。
awplus# create autoboot usb ↓
[AlliedWare Plus] Copy_from_external_media_enabled = yes 本機能の使用有無を指定 Boot_Release = x550-5.4.8-0.3.rel 新しいファームウェアイメージファイル名を指定 Boot_Config = autoboot_test.cfg 新しいコンフィグファイル名を指定
awplus(config)# ecofriendly led ↓
Note省電力イーサネット機能は、1000/10GBASE-Tポート(AT-x550-18XTQ)、1000/2.5G/5G/10GBASE-T PoEポート(AT-x550-18XSPQm)で1000M/10G接続時のみサポート。
awplus(config)# interface port1.0.2 ↓ awplus(config-if)# ecofriendly lpi ↓
(C) 2017 - 2018 アライドテレシスホールディングス株式会社
PN: 613-002460 Rev.E