[index] AT-DC2552XS コマンドリファレンス 5.4.8
NoteTelnet/SSHを使用するには、あらかじめコンソールターミナルからログインし、本製品にIPアドレス等を設定しておく必要があります。本製品のご購入時にはIPアドレスが設定されていないため、必ず一度はコンソールターミナルからログインすることとなります。
通信速度 | 9600bps |
データビット | 8 |
ストップビット | 1 |
パリティー | なし |
フロー制御 | ハードウェア(RTS/CTS) |
エミュレーション | VT100 |
Backspaceキーのコード | Delete |
Note端末画面の1画面当たり表示行数を0に設定(画面単位での一時停止を無効化)した場合、show logコマンドなどの画面出力が自動折り返しされません。
Note起動後ログインプロンプトが表示されるまでの時間は、機種やファームウェアのバージョンによって異なりますが、おおむね一分程度かかります。
Loading flash:dc2500-5.4.8-0.2.rel... Starting base/first... [ OK ] Mounting virtual filesystems... [ OK ] ______________ ____ /\ \ / /______\ / \ \_ __/ /| ______ | / \ | | / | ______ | / \ \ / / \ ____ / /______/\____\ \/ /____________/ Allied Telesis Inc. AlliedWare Plus (TM) v5.4.8 Current release filename: dc2500-5.4.8-0.2.rel Original release filename: dc2500-5.4.8-0.2.rel Built: Mon Jun 16 19:09:30 NZST 2014 Mounting static filesystems... [ OK ] Checking flash filesystem... [ OK ] Mounting flash filesystem... [ OK ] Checking for last gasp debug output... [ 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 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: hostd, nsm, atmfd, auth, bgpd, cntrd, epsr hsl, imi, imiproxyd, irdpd, lacp, lldpd, loopprot mstp, ospf6d, ospfd, pdmd, pim6d, pimd, ripd ripngd, rmon, sflowd, udldd, vrrpd Received event network.initialized 14:00:21 awplus-1 VCS[2145]: No neighboring members found, unit may be in a standalone configuration 14:00:21 awplus-1 VCS[2145]: Startup speed can be improved by adding 'no stack 1 enable' to configuration Received event vcs.elected-master 14:00:21 awplus-1 VCS[2145]: Member 1 (001a.eb56.5ce1) has become the Active Master Assigning Active Workload to HA processes: hsl, authd, bgpd, epsrd, irdpd, lacpd, lldpd loopprotd, mstpd, nsm, ospf6d, ospfd, pdmd, pim6d pimd, ripd, ripngd, rmond, sflowd, vrrpd, imi imiproxyd 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 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 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/24 admin up running
myswitch# show interface eth0 ↓ Interface eth0 Scope: both Link is DOWN, administrative state is UP Hardware is Ethernet, address is 001a.eb56.5ad0 IPv4 address 192.168.0.1/24 broadcast 192.168.0.255 index 65 metric 1 configured duplex auto, configured speed auto, configured polarity auto <UP,BROADCAST,MULTICAST> VRF Binding: Not bound 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 17:31:43
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 ! no banner motd ! username manager privilege 15 password 8 $1$bJoVec4D$JwOJGPr7YqoExA0GVasdE0 ! no service ssh ! platform hwfilter-size ipv4-limited-ipv6 ! service telnet ! service http ! clock timezone JST plus 9:00 ! snmp-server ! aaa authentication enable default local aaa authentication login default local ! ! stack virtual-chassis-id 3510 ! ip domain-lookup ! ! ! no service dhcp-server ! no ip multicast-routing ! spanning-tree mode rstp ! switch 1 provision dc2552 ! interface port1.0.1-1.0.48 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 ! no banner motd ! username manager privilege 15 password 8 $1$bJoVec4D$JwOJGPr7YqoExA0GVasdE0 ! no service ssh ! platform hwfilter-size ipv4-limited-ipv6 ! service telnet ! service http ! clock timezone JST plus 9:00 ! snmp-server ! aaa authentication enable default local aaa authentication login default local ! ! stack virtual-chassis-id 3510 ! ip domain-lookup ! ! ! no service dhcp-server ! no ip multicast-routing ! spanning-tree mode rstp ! switch 1 provision dc2552 ! interface port1.0.1-1.0.48 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:/dc2500-5.4.8-0.3.rel ↓
Note5.4.8-0.3は説明上使用している架空のファームウェアとなり、5.4.8-0.2リリース時点では実際にはリリースされていないファームウェアバージョンとなりますのでご注意ください。
Noteイメージファイルの設定は、コマンド実行時にシステムファイルに保存されるため、copyコマンドやwrite fileコマンド、write memoryコマンドなどでコンフィグに保存する必要はありません。
awplus(config)# boot system backup flash:/dc2500-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 : dc2500-5.4.8-0.2.rel Current boot image : flash:/dc2500-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 ------------------------------------------------------------------- 126.8M 79.1M flash rw flash: static local Y - - system rw system: virtual local - 10.0M 9.9M debug rw debug: static local Y - - 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/dc2500-5.4.8-0.3.rel flash ↓ Enter destination file name [dc2500-5.4.8-0.3.rel]: ↓ Copying........................................ Successful operation
awplus# dir ↓ 12547211 -rw- May 10 2013 16:41:33 dc2500-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:/dc2500-5.4.8-0.3.rel ↓
awplus(config)# boot system backup flash:/dc2500-5.4.8-0.2.rel ↓
awplus(config)# exit ↓ awplus# show boot ↓ Boot configuration -------------------------------------------------------------------------------- Current software : dc2500-5.4.8-0.2.rel Current boot image : flash:/dc2500-5.4.8-0.3.rel (file exists) Backup boot image : flash:/dc2500-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)# ecofriendly led ↓
(C) 2011 - 2018 アライドテレシスホールディングス株式会社
PN: 613-001633 Rev.P