[index] CentreCOM x600シリーズ コマンドリファレンス
- 管理機構へのアクセス
- コンソールターミナル
- Telnetクライアント
- SSHクライアント
- 起動と停止
- ログイン
- コマンドモード
- パスワードの変更
- ホスト名の設定
- システム時刻の設定
- 管理用IPアドレスの設定
- 設定の保存
- 再起動
- その他の機能
- 起動用ファームウェアの設定
- ファームウェアの更新手順
- システム情報の確認
Note - Telnet/SSHを使用するには、あらかじめコンソールターミナルからログインし、本製品にIPアドレス等を設定しておく必要があります。本製品のご購入時にはIPアドレスが設定されていないため、必ず一度はコンソールターミナルからログインすることとなります。
| 通信速度 | 9600bps |
| データビット | 8 |
| ストップビット | 1 |
| パリティー | なし |
| フロー制御 | ハードウェア(RTS/CTS) |
| エミュレーション | VT100 |
| Backspaceキーのコード | Delete |
Note - 起動後ログインプロンプトが表示されるまでの時間は、機種やファームウェアのバージョンによって異なりますが、おおむね一分程度かかります。
Bootloader 1.1.0-rc10 loaded
Press <Ctrl+B> for the Boot Menu
Reading filesystem...
Loading flash:r6-5.2.2-0.3.rel...
Verifying release... OK
Booting...
______________ ____
/\ \ / /______\
/ \ \_ __/ /| ______ |
/ \ | | / | ______ |
/ \ \ / / \ ____ /
/______/\____\ \/ /____________/
Allied Telesis Inc.
AlliedWare Plus (TM) v5.2.2
Original release filename: r6-5.2.2-0.3.rel
Built: Thu Sep 25 18:54:24 NZST 2008 by: maker@awpmaker07-dl
Mounting virtual filesystems... [ OK ]
Mounting static filesystems... [ OK ]
Mounting flash... [ OK ]
Checking NVS filesystem... [ OK ]
Mounting NVS filesystem... [ OK ]
Starting syslog-ng... [ OK ]
Starting klogd... [ OK ]
Inserting kernel module( tipc )... [ OK ]
Configuring kernel ... [ OK ]
Starting inetd... [ OK ]
Starting portmap... [ OK ]
Starting crond... [ OK ]
Starting automount... [ OK ]
Loading package 'apps'... [ OK ]
Loading package 'network'... [ OK ]
Starting hpilogd... [ OK ]
Inserting kernel module( ipifwd )... [ OK ]
Initializing HA processes:
stackd, authd, hsl, openhpid, bgpd, cntrd, epsrd, hostd, imi
irdpd, lacpd, mstpd, nsm, ospfd, pdmd, pimd
ripd, ripngd, rmond, snmpd, vrrpd
Assigning Active Workload to HA processes:
stackd, openhpid, hsl, vrrpd, snmpd, rmond, ripngd
ripd, pimd, pdmd, ospfd, nsm, mstpd, lacpd, irdpd
imi, hostd, epsrd, cntrd, bgpd, authd
Workload Assigned
Loading default configuration
...
done!
awplus login:
|
awplus login: manager ↓ Password: friend ↓(実際には表示されません) AlliedWare Plus (TM) 5.2.2 09/25/08 18:57:58 awplus> |
Note - 既定回数(初期設定では5回)連続してログインに失敗すると、コンソールターミナルでは一定時間(初期設定では5分)ログインプロンプトが表示されなくなります。また、Telnet/SSH接続の場合はセッションが切断され、該当クライアントからのTelnet/SSH接続要求が同じ期間拒否されるようになります。これらの設定は、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.2.2 09/25/08 18:57:58 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」のようなホスト名を仮定する場合もあります。
Note - hostnameコマンドで設定したホスト名は、MIBオブジェクトsysNameの値としても使われます。詳しくは、「運用・管理」の「SNMP」をご覧ください。
myswitch(config)# clock timezone JST plus 9 ↓ |
Note - タイムゾーンの設定は保存しないと再起動によって失われます。設定を保存する方法については後述します。
myswitch(config)# exit ↓ myswitch# clock set 17:05:00 23 Jul 2007 ↓ |
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 |
myswitch# show clock ↓ Local Time: Mon, 23 Jul 2007 17:05:03 +0900 UTC Time: Mon, 23 Jul 2007 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 ↓ |
Note - IPアドレスの設定は保存しないと再起動によって失われます。設定を保存する方法については後述します。
Note - SSHクライアントからCLIへのアクセスを可能にするには、IPアドレスの設定だけでなく、SSHサーバー有効化のための設定も必要です。設定方法については、「運用・管理」の「Secure Shell」をご覧ください。
Note - Telnetクライアントと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 1 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
|
| ランタイムメモリー上にある現在の設定内容。電源断や再起動によって失われる。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.24 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.24 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:/r6-5.2.2-0.3.rel ↓ |
Note - イメージファイルの設定は、コマンド実行時にシステムファイルに保存されるため、copyコマンドやwrite fileコマンド、write memoryコマンドなどでコンフィグに保存する必要はありません。
awplus(config)# boot backup flash:/r6-5.2.2.rel ↓ |
awplus# show boot ↓ |
Note - ファームウェアの更新は、ネットワークの実運用中に行わないでください。
awplus# show boot ↓ Boot configuration -------------------------------------------------------------------------------- Current software : r6-5.2.2.rel Current boot image : flash:/r6-5.2.2.rel Backup boot image : Not set Default boot config: flash:/default.cfg Current boot config: flash:/default.cfg (file exists) |
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
- - sdcard rw card: 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/r6-5.2.2-0.3.rel flash ↓ Enter destination file name [r6-5.2.2-0.3.rel]: ↓ Copying........................................ Successful operation |
awplus# dir ↓
13239260 -rw- Jun 24 2000 01:02:18 r6-5.2.2-0.3.rel
312 -rw- Nov 26 2007 09:11:19 default.cfg
13365171 -rw- May 6 2000 01:01:55 r6-5.2.2.rel
...
|
awplus# configure terminal ↓ Enter configuration commands, one per line. End with CNTL/Z. awplus(config)# boot system flash:/r6-5.2.2-0.3.rel ↓ |
awplus(config)# boot backup flash:/r6-5.2.2.rel ↓ |
awplus(config)# exit ↓ awplus# show boot ↓ Boot configuration -------------------------------------------------------------------------------- Current software : r6-5.2.2.rel Current boot image : flash:/r6-5.2.2-0.3.rel Backup boot image : flash:/r6-5.2.2.rel Default boot config: flash:/default.cfg Current boot config: flash:/default.cfg (file exists) |
awplus# reload ↓ reboot system? (y/n): y ↓ ... |
(C) 2008 アライドテレシスホールディングス株式会社
PN: 613-001070 Rev.A