[index] AT-AR2010V コマンドリファレンス 5.4.8
NoteTelnet/SSHを使用するには、あらかじめコンソールターミナルからログインし、本製品にIPアドレス等を設定しておく必要があります。本製品のご購入時にはIPアドレスが設定されていないため、必ず一度はコンソールターミナルからログインすることとなります。
通信速度 | 9600bps |
データビット | 8 |
ストップビット | 1 |
パリティー | なし |
フロー制御 | ハードウェア(RTS/CTS) |
エミュレーション | VT100 |
Backspaceキーのコード | Delete |
Note端末画面の1画面当たり表示行数を0に設定(画面単位での一時停止を無効化)した場合、show logコマンドなどの画面出力が自動折り返しされません。
Note起動後ログインプロンプトが表示されるまでの時間は、機種やファームウェアのバージョンによって異なりますが、おおむね一分程度かかります。
Loading flash:AR2010V-5.4.8-0.1.rel... Starting base/first... [ OK ] Mounting virtual filesystems... [ OK ] ______________ ____ /\ \ / /______\ / \ \_ __/ /| ______ | / \ | | / | ______ | / \ \ / / \ ____ / /______/\____\ \/ /____________/ Allied Telesis Inc. AlliedWare Plus (TM) v5.4.8 Current release filename: AR2010V-5.4.8-0.1.rel Original release filename: AR2010V-5.4.8-0.1.rel Built: Thu Mar 19 21:15:14 UTC 2015 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/dbus... [ OK ] Starting base/syslog... [ OK ] Starting base/loopback... [ OK ] Starting base/sysctl... [ OK ] Starting base/portmapper... [ OK ] Received event syslog.done Starting base/reboot-stability... [ 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 board.inserted Received event modules.done Received event hardware.done Starting base/apteryx... [ OK ] Starting base/external-media... [ OK ] Received event apteryx.done Starting network/streamd... [ OK ] Starting network/startup... [ OK ] Starting network/firewalld... [ OK ] Starting network/shapingd... [ OK ] Starting network/recorder... [ OK ] Received event network.enabled Initializing HA processes: atmfd, hostd, hsl, lacp, mstp, nsm, ospf6d pdmd, pim6d, ripd, ripngd, tunneld, vrrpd, bgpd cntrd, imi, ipsecd, ospfd, pimd Received event network.initialized Received event standalone Assigning Active Workload to HA processes: bgpd, hsl, imi, ipsecd, lacpd, mstpd, nsm ospf6d, ospfd, pdmd, pim6d, pimd, ripd, ripngd tunneld, vrrpd Received event network.activated Loading default configuration Warning: flash:/default.cfg does not exist, loading factory defaults. ... 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 eth2 ↓ 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 myrouter ↓ myrouter(config)#
Noteホスト名の設定は保存しないと再起動によって失われます。設定を保存する方法については後述します。
Note本解説編の残りの部分では、説明の流れ上、ホスト名を「myrouter」に設定しているものと仮定します。他の解説編やコマンド編では、原則として初期設定のホスト名「awplus」を用いますが、複数の装置を使用する構成例などでは、各装置を見分けやすいよう「RouterA」、「RouterB」のようなホスト名を仮定する場合もあります。
Notehostnameコマンドで設定したホスト名は、MIB-IIオブジェクトsysNameの値としても使われます。詳しくは、「運用・管理」の「SNMP」をご覧ください。
myrouter(config)# clock timezone JST plus 9 ↓
Noteタイムゾーンの設定は保存しないと再起動によって失われます。設定を保存する方法については後述します。
Note本コマンドによりタイムゾーンの設定を変更したときは、設定を保存した後システムを再起動してください。
myrouter(config)# exit ↓ myrouter# 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 |
myrouter# 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
myrouter# configure terminal ↓ Enter configuration commands, one per line. End with CNTL/Z. myrouter(config)#
myrouter(config)# interface eth2 ↓ myrouter(config-if)#
myrouter(config-if)# ip address 192.168.0.1/24 ↓ myrouter(config-if)# end ↓
NoteIPアドレスの設定は保存しないと再起動によって失われます。設定を保存する方法については後述します。
NoteSSHクライアントからCLIへのアクセスを可能にするには、IPアドレスの設定だけでなく、SSHサーバー有効化のための設定も必要です。設定方法については、「運用・管理」の「Secure Shell」をご覧ください。
myrouter# show ip interface eth2 ↓ Interface IP-Address Status Protocol eth2 192.168.0.1 admin up running
myrouter# show interface eth2 ↓ Interface eth2 Link is UP, administrative state is UP Hardware is Ethernet, address is 001a.eb92.a4bc IPv4 address 192.168.0.1/24 broadcast 192.168.0.255 index 11 metric 1 mtu 1500 current duplex full, current speed 1000, current polarity auto configured duplex auto, configured speed auto, configured polarity auto <UP,BROADCAST,RUNNING,MULTICAST> SNMP link-status traps: Disabled Bandwidth 1g input packets 6, bytes 384, dropped 0, multicast packets 6 output packets 0, bytes 0 Time since last state change: 0 days 00:00:13
Note設定変更時はこまめにコンフィグを保存することをおすすめします。
ランタイムメモリー上にある現在の設定内容。電源断や再起動によって失われる。show running-configコマンドで内容を確認できる。ファイル操作コマンドにおいては、仮想的なファイル「running-config」としてコピーなどの操作が可能 | |
起動時コンフィグ。システム起動の最終段階において自動的に復元される設定内容。フラッシュメモリー上にファイルとして保存されており、電源断や再起動を経ても失われない。show startup-configコマンドで内容を確認できる。ファイル操作コマンドにおいては、仮想的なファイル「startup-config」としてコピーなどの操作が可能。startup-configが実際にどのファイルを指しているかは、show bootコマンドで確認でき、boot config-fileコマンドで変更できる |
myrouter# show running-config ↓ ! service password-encryption ! hostname myrouter ! no banner motd ! username manager privilege 15 password 8 $1$bJoRH54D$FUjHShI/E4AVE4BMXQGUv/ ! no service ssh ! service telnet ! no service http ! clock timezone JST plus 9:00 ! snmp-server ! aaa authentication enable default local aaa authentication login default local ! ip domain-lookup ! ! ! no service dhcp-server ! no ip multicast-routing ! spanning-tree mode rstp ! interface eth2 ip address 192.168.0.1/24 ! line con 0 line vty 0 4 ! end
myrouter# copy running-config startup-config ↓ Building configuration... [OK]
myrouter# write memory ↓ Building configuration... [OK]
myrouter# show startup-config ↓ ! service password-encryption ! hostname myrouter ! no banner motd ! username manager privilege 15 password 8 $1$bJoRH54D$FUjHShI/E4AVE4BMXQGUv/ ! no service ssh ! service telnet ! no service http ! clock timezone JST plus 9:00 ! snmp-server ! aaa authentication enable default local aaa authentication login default local ! ip domain-lookup ! ! ! no service dhcp-server ! no ip multicast-routing ! spanning-tree mode rstp ! interface eth2 ip address 192.168.0.1/24 ! line con 0 line vty 0 4 ! end
Note再起動を実行する前に、現在の設定内容(ランニングコンフィグ)を保存したかどうかご確認ください。設定の保存については、前節および「運用・管理」の「コンフィグレーション」をご覧ください。
myrouter> enable ↓ myrouter# reload ↓ reboot system? (y/n): y ↓ URGENT: broadcast message: System going down IMMEDIATELY! ... Rebooting at user request ... Restarting system.
awplus(config)# boot system flash:/AR2010V-5.4.8-0.2.rel ↓
awplus(config)# boot system usb:/AR2010V-5.4.8-0.2.rel ↓
NoteUSBメモリー上のイメージファイルを起動用ファームウェアに指定するには、USB 2.0である必要があります。ご使用の際には、お客様の使用環境で事前に検証を行った上で導入してください。
Note5.4.8-0.2は説明上使用している架空のファームウェアとなり、5.4.8-0.1リリース時点では実際にはリリースされていないファームウェアバージョンとなりますのでご注意ください。
Noteイメージファイルの設定は、コマンド実行時にシステムファイルに保存されるため、copyコマンドやwrite fileコマンド、write memoryコマンドなどでコンフィグに保存する必要はありません。
awplus(config)# boot system backup flash:/AR2010V-5.4.8-0.1.rel ↓
awplus# show boot ↓
Noteファームウェアの更新は、ネットワークの実運用中に行わないでください。
Note5.4.8-0.2は説明上使用している架空のファームウェアとなり、5.4.8-0.1リリース時点では実際にはリリースされていないファームウェアバージョンとなりますのでご注意ください。
awplus# show boot ↓ Boot configuration -------------------------------------------------------------------------------- Current software : AR2010V-5.4.8-0.1.rel Current boot image : flash:/AR2010V-5.4.8-0.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 Autoboot status : disabled
awplus# show file systems ↓ Size(b) Free(b) Type Flags Prefixes S/D/V Lcl/Ntwk Avail ------------------------------------------------------------------- 3.6G 2.8G flash rw flash: static local Y - - system rw system: virtual local - 10.0M 9.8M debug rw debug: static local Y 436.0K 346.0K nvs rw nvs: static local Y - - usbstick rw usb: dynamic local N - - fserver rw fserver: dynamic network N - - tftp rw tftp: - network - - - scp rw scp: - network - - - sftp ro sftp: - network - - - http ro http: - network - - - rsync rw rsync: - network -
awplus# pwd ↓ flash:/ awplus# copy tftp://10.100.10.70/AR2010V-5.4.8-0.2.rel flash ↓ Enter destination file name [AR2010V-5.4.8-0.2.rel]: ↓ Copying........................................ Successful operation
awplus# dir ↓ 12547211 -rw- May 10 2013 16:41:33 AR2010V-5.4.8-0.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:/AR2010V-5.4.8-0.2.rel ↓
awplus(config)# boot system backup flash:/AR2010V-5.4.8-0.1.rel ↓
awplus(config)# exit ↓ awplus# show boot ↓ Boot configuration -------------------------------------------------------------------------------- Current software : AR2010V-5.4.8-0.1.rel Current boot image : flash:/AR2010V-5.4.8-0.2.rel (file exists) Backup boot image : flash:/AR2010V-5.4.8-0.1.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 AR2010V-5.4.8-0.1.rel ↓
awplus(config)# boot system usb:/AR2010V-5.4.8-0.2.rel ↓ please wait....... File synchronization successfully completed
awplus# show boot ↓ Boot configuration -------------------------------------------------------------------------------- Current software : AR2010V-5.4.8-0.1.rel Current boot image : usb:/AR2010V-5.4.8-0.2.rel (file exists) Backup boot image : flash:/AR2010V-5.4.8-0.1.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 = AR2010V-5.4.8-0.2.rel 新しいファームウェアイメージファイル名を指定 Boot_Config = autoboot_test.cfg 新しいコンフィグファイル名を指定
(C) 2016 - 2018 アライドテレシスホールディングス株式会社
PN: 613-002311 Rev.L