[index] AT-AR3050S/AT-AR4050S コマンドリファレンス 5.4.5
Note - Telnet/SSHを使用するには、あらかじめコンソールターミナルからログインし、本製品にIPアドレス等を設定しておく必要があります。本製品のご購入時にはIPアドレスが設定されていないため、必ず一度はコンソールターミナルからログインすることとなります。
通信速度 | 9600bps |
データビット | 8 |
ストップビット | 1 |
パリティー | なし |
フロー制御 | ハードウェア(RTS/CTS) |
エミュレーション | VT100 |
Backspaceキーのコード | Delete |
Note - 端末画面の1画面当たり表示行数を0に設定(画面単位での一時停止を無効化)した場合、show logコマンドなどの画面出力が自動折り返しされません。
Note - 起動後ログインプロンプトが表示されるまでの時間は、機種やファームウェアのバージョンによって異なりますが、おおむね一分程度かかります。
Loading flash:AR4050S-5.4.5-0.1.rel... Starting base/first... [ OK ] Mounting virtual filesystems... [ OK ] ______________ ____ /\ \ / /______\ / \ \_ __/ /| ______ | / \ | | / | ______ | / \ \ / / \ ____ / /______/\____\ \/ /____________/ Allied Telesis Inc. AlliedWare Plus (TM) v5.4.5 Current release filename: AR4050S-5.4.5-0.1.rel Original release filename: AR4050S-5.4.5-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.5 xx/xx/xx xx:xx:xx awplus> |
Note - 一定回数(初期設定では5回)連続してログインに失敗すると、失敗したユーザーは一定時間(初期設定は5分)ログインすることができなくなります(失敗したユーザー以外ではログイン可能)。これらの設定は、aaa local authentication attempts max-failコマンド、aaa local authentication attempts lockout-timeコマンドで変更できます。
Note - Telnet/SSH接続の場合、ログインプロンプトが表示されてから1分以内にログインしないと、Telnet/SSHセッションが切断されます。切断までの時間は、SSHの場合ssh server login-timeoutコマンドで変更できます。
awplus login: manager ↓ Password: friend ↓(実際には表示されません) AlliedWare Plus (TM) 5.4.5 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 myrouter ↓ myrouter(config)# |
Note - ホスト名の設定は保存しないと再起動によって失われます。設定を保存する方法については後述します。
Note - 本解説編の残りの部分では、説明の流れ上、ホスト名を「myrouter」に設定しているものと仮定します。他の解説編やコマンド編では、原則として初期設定のホスト名「awplus」を用いますが、複数の装置を使用する構成例などでは、各装置を見分けやすいよう「RouterA」、「RouterB」のようなホスト名を仮定する場合もあります。
Note - hostnameコマンドで設定したホスト名は、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 ↓ |
Note - clock setコマンドは実行コマンドなので、実行後に設定保存の操作(後述)は必要ありません。コマンド実行とともに内蔵時計の時刻が変更され、以後保持されます。
Note - clock 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 vlan1 ↓ myrouter(config-if)# |
myrouter(config-if)# ip address 192.168.0.1/24 ↓ myrouter(config-if)# end ↓ |
Note - IPアドレスの設定は保存しないと再起動によって失われます。設定を保存する方法については後述します。
Note - SSHクライアントからCLIへのアクセスを可能にするには、IPアドレスの設定だけでなく、SSHサーバー有効化のための設定も必要です。設定方法については、「運用・管理」の「Secure Shell」をご覧ください。
myrouter# show ip interface vlan1 ↓ Interface IP-Address Status Protocol vlan1 192.168.0.1 admin up running |
myrouter# show interface vlan1 ↓ Interface vlan1 Link is UP, administrative state is UP Hardware is VLAN, address is 001a.eb92.a4bd IPv4 address 192.168.0.1/24 broadcast 192.168.0.255 index 301 metric 1 mtu 1500 arp ageing timeout 300 <UP,BROADCAST,RUNNING,MULTICAST> SNMP link-status traps: Disabled Bandwidth 1g input packets 0, bytes 0, dropped 0, multicast packets 0 output packets 0, bytes 0, multicast packets 0 broadcast packets 0 Time since last state change: 0 days 00:27: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 port1.0.1-1.0.8 switchport switchport mode access ! interface vlan1 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 port1.0.1-1.0.8 switchport switchport mode access ! interface vlan1 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:/AR4050S-5.4.5-0.2.rel ↓ |
awplus(config)# boot system card:/AR4050S-5.4.5-0.2.rel ↓ |
Note - 5.4.5-0.2は説明上使用している架空のファームウェアとなり、5.4.5-0.1リリース時点では実際にはリリースされていないファームウェアバージョンとなりますのでご注意ください。
Note - イメージファイルの設定は、コマンド実行時にシステムファイルに保存されるため、copyコマンドやwrite fileコマンド、write memoryコマンドなどでコンフィグに保存する必要はありません。
awplus(config)# boot system backup flash:/AR4050S-5.4.5-0.1.rel ↓ |
awplus# show boot ↓ |
Note - ファームウェアの更新は、ネットワークの実運用中に行わないでください。
Note - 5.4.5-0.2は説明上使用している架空のファームウェアとなり、5.4.5-0.1リリース時点では実際にはリリースされていないファームウェアバージョンとなりますのでご注意ください。
awplus# show boot ↓ Boot configuration -------------------------------------------------------------------------------- Current software : AR4050S-5.4.5-0.1.rel Current boot image : flash:/AR4050S-5.4.5-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 - - sdcard rw card: 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/AR4050S-5.4.5-0.2.rel flash ↓ Enter destination file name [AR4050S-5.4.5-0.2.rel]: ↓ Copying........................................ Successful operation |
awplus# dir ↓ 12547211 -rw- May 10 2013 16:41:33 AR4050S-5.4.5-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:/AR4050S-5.4.5-0.2.rel ↓ |
awplus(config)# boot system backup flash:/AR4050S-5.4.5-0.1.rel ↓ |
awplus(config)# exit ↓ awplus# show boot ↓ Boot configuration -------------------------------------------------------------------------------- Current software : AR4050S-5.4.5-0.1.rel Current boot image : flash:/AR4050S-5.4.5-0.2.rel (file exists) Backup boot image : flash:/AR4050S-5.4.5-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 ↓ ... |
Note - SDHCカード上のイメージファイルを起動用ファームウェアに指定するには、あらかじめフラッシュメモリー上のイメージファイルをバックアップ用ファームウェアとして設定しておく必要があります。
Note - 弊社販売品のSDHCカードの他に、SanDisk社製のSDHC 32GBについて動作確認を行っています。 SanDisk社製のSDHCカードを使用する場合は、お客様の使用環境で事前に検証を行った上で導入してください。なお、弊社での動作確認にはスピードクラス CLASS 4のSDHCカードを使用していますが、これはCLASS 4の転送速度を保証するものではありませんので、あらかじめご了承ください。
awplus# configure terminal ↓ Enter configuration commands, one per line. End with CNTL/Z. awplus(config)# no boot system ↓ awplus(config)# boot system backup AR4050S-5.4.5-0.1.rel ↓ |
awplus(config)# boot system card:/AR4050S-5.4.5-0.2.rel ↓ please wait....... File synchronization successfully completed |
awplus# show boot ↓ Boot configuration -------------------------------------------------------------------------------- Current software : AR4050S-5.4.5-0.1.rel Current boot image : card:/AR4050S-5.4.5-0.2.rel (file exists) Backup boot image : flash:/AR4050S-5.4.5-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 - 製品購入時のファームウェアおよびコンフィグレーションの初期設定を容易にするため、SDHCカード/USBオートブート機能は工場出荷状態からの初回起動時に有効になっています。しかし、初回起動処理が終了した後は自動的に設定が無効に変更されますので、初回起動時以降で本機能を使用する場合は、手動で設定を有効にしてください。
Note - autoboot enableコマンドはコンフィグに保存する必要はありません。
Note - 手動でSDHCカード/USBオートブート機能を有効にすると、no autoboot enableを実行するまで本機能は有効のままとなります。
awplus# create autoboot card ↓ |
awplus# show autoboot ↓ |
awplus(config)# autoboot enable ↓ |
Note - 工場出荷状態(初めて箱から出す場合)は本機能が一時的に有効となっていますが、初回起動が完了すると無効化されます。
awplus# create autoboot card ↓ |
Note - SDHCカード/USBオートブート機能の有効時にSDHCカードとUSBメモリーの両方を装着して起動した場合は、SDHCカードに格納されているオートブート機能の設定ファイルが優先的に使われます。
[AlliedWare Plus] Copy_from_external_media_enabled = yes 本機能の使用有無を指定 Boot_Release = AR4050S-5.4.5-0.2.rel 新しいファームウェアイメージファイル名を指定 Boot_Config = autoboot_test.cfg 新しいコンフィグファイル名を指定 |
Note - 弊社販売品のSDHCカードの他に、SanDisk社製のSDHC 32GBについて動作確認を行っています。SanDisk社製のSDHCメモリーカードを使用する場合は、お客様の使用環境で事前に検証を行った上で導入してください。なお、弊社での動作確認にはスピードクラス CLASS 4のSDHCメモリーカードを使用していますが、これはCLASS 4の転送速度を保証するものではありませんので、あらかじめご了承ください。
(C) 2015 アライドテレシスホールディングス株式会社
PN: 613-002107 Rev.A