[index] AT-DC2552XS コマンドリファレンス 2.5.3.1
- 管理機構へのアクセス - コンソールターミナル - Telnetクライアント - SSHクライアント - 起動と停止 - ログイン - コマンドモード - パスワードの変更 - ホスト名の設定 - システム時刻の設定 - 管理用IPアドレスの設定 - 設定の保存 - 再起動 - その他の機能 - 起動用ファームウェアの設定 - ファームウェアの更新手順 - システム情報の確認
Note - Telnet/SSHを使用するには、あらかじめコンソールターミナルからログインし、本製品にIPアドレス等を設定しておく必要があります。本製品のご購入時にはIPアドレスが設定されていないため、必ず一度はコンソールターミナルからログインすることとなります。また、SSHを使用する場合は、本製品のSSHサーバーを有効化するための設定も必要です。
通信速度 | 115200bps |
データビット | 8 |
ストップビット | 1 |
パリティー | なし |
フロー制御 | なし |
エミュレーション | VT100 |
Note - 起動後ログインプロンプトが表示されるまでの時間は、機種やファームウェアのバージョンによって異なりますが、おおむね一分程度かかります。
U-Boot 2009.11 - ver1.0.0 (Oct 31 2011 - 15:55:28) CPU0: P2020E, Version: 2.0, (0x80ea0020) Core: E500, Version: 5.0, (0x80211050) Clock Configuration: CPU0:1200 MHz, CPU1:1200 MHz, CCB:600 MHz, DDR:330 MHz (660 MT/s data rate) (Asynchronous), LBC:37.500 MHz L1: D-cache 32 kB enabled I-cache 32 kB enabled Board: DC2552XS I2C: ready DRAM: Initializing.... DDR: 2 GB (DDR3, 64-bit, CL=6, ECC off) DDR Chip-Select Interleaving Mode: CS0+CS1 FLASH: 128 MB L2: 512 KB enabled NAND: No NAND device found!!! 0 MiB MMC: FSL_ESDHC: 0 eTSEC2 is in sgmii mode. eTSEC3 is in sgmii mode. PCIE1 used as Root Complex (base addr ffe0a000) Scanning PCI bus 01 01 00 14e4 b845 0200 00 PCIE1 on bus 00 - 01 PCIE2: disabled PCIE3: disabled In: serial Out: serial Err: serial Net: eTSEC3 Autoboot starts in: 0 WARNING: adjusting available memory to 30000000 ## Booting kernel from Legacy Image at e8020000 ... Image Name: Linux-2.6.32 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2040820 Bytes = 1.9 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at e8420000 ... Image Name: DC Ramdisk Image Image Type: PowerPC Linux RAMDisk Image (lzma compressed) Data Size: 13854799 Bytes = 13.2 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at e8000000 Booting using the fdt blob at 0xe8000000 Uncompressing Kernel Image ... OK Loading Ramdisk to 2f2c9000, end 2ffff84f ... OK Loading Device Tree to 00ffa000, end 00ffffff ... OK setup_arch: bootmem mpc85xx_ds_setup_arch() arch: exit pci 0000:00:00.0: ignoring class b20 (doesn't match header type 01) Press ctrl+c to cancel the auto-init...(3s) Initializing System ................................. done! Initializing Serial Interface ....................... done! Initializing Timer Library .......................... done! Initializing Event Log .............................. done! Initializing Board .................................. done! Initializing IPC .................................... done! Initializing Switch Models .......................... done! Initializing File System ............................ done! Initializing Database ............................... done! Initializing Configuration .......................... done! Initializing AW+ CLI ................................ done! Initializing Mac .................................... done! Initializing Filter ................................. done! Initializing ACL .................................... done! Initializing QoS .................................... done! Initializing Port ................................... done! Initializing Trunk .................................. done! Initializing Port Security .......................... done! Initializing LACP ................................... done! Initializing PORT VLAN .............................. done! Initializing Port Mirroring ......................... done! Initializing Port Statistics ........................ done! Initializing Snmp Service ........................... done! Initializing Monitor ................................ done! Initializing STP .................................... done! Initializing SPANNING TREE .......................... done! Initializing L2_MGMT ................................ done! Initializing IGMPSnoop .............................. done! Initializing MLDSnoop ............................... done! Initializing DoS .................................... done! Initializing SYS_MGMT ............................... done! Initializing SWITCH_MGMT ............................ done! Initializing L2APP_MGMT ............................. done! Initializing SNMP_MGMT .............................. done! Initializing RRP Snooping ........................... done! Initializing Authentication ......................... done! Initializing TCPIP .................................. done! Initializing Default VLAN .......................... done! Initializing SSL .................................... done! Initializing ENCO ................................... done! Initializing PKI .................................... done! Initializing PAAcctRcv .............................. done! Initializing SSH .................................... done! Initializing IFM .................................... done! Initializing IFMV6 .................................. done! Initializing RTM .................................... done! Initializing FTAB ................................... done! Initializing FTABV6 ................................. done! Initializing ACM Task ............................... done! Initializing L3_MGMT ................................ done! Initializing L3APP_MGMT ............................. done! Initializing NTP .................................... done! Initializing CPU_HIST ............................... done! Configuration file "boot.cfg" not found!!! Loading default configuration ............. done! Press <ENTER> key to connect... (ここで「Enter」キーを押す) awplus login: |
awplus login: manager ↓ Password: ****** ↓(伏せ字で表示されます) (ここでいったん画面が消去されます) awplus> |
Note - 3回連続してログインに失敗すると、コンソールターミナルではログインプロンプトを表示する前に再度「Enter」キーの入力を求められます。また、Telnet/SSH接続の場合はセッションが切断されます。
awplus login: manager ↓ Password: ****** ↓(伏せ字で表示されます) (ここでいったん画面が消去されます) 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# Press <ENTER> key to connect... |
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」を用いますが、複数の装置を使用する構成例などでは、各装置を見分けやすいよう「SwitchA」、「SwitchB」のようなホスト名を仮定する場合もあります。
Note - hostnameコマンドで設定したホスト名は、MIB-IIオブジェクトsysNameの値としても使われます。詳しくは、「運用・管理」の「SNMP」をご覧ください。
myswitch(config)# exit ↓ myswitch# clock set 17:05:00 1 Dec 2011 ↓ |
Note - clock setコマンドは実行コマンドなので、実行後に設定保存の操作(後述)は必要ありません。コマンド実行とともに内蔵時計の時刻が変更され、以後保持されます。
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: Thu, 01 Dec 2011 17:05:04 UTC Time: Timezone Offset: |
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.1.1/24 ↓ myswitch(config-if)# end ↓ |
Note - IPアドレスの設定は保存しないと再起動によって失われます。設定を保存する方法については後述します。
Note - SSHクライアントからCLIへのアクセスを可能にするには、IPアドレスの設定だけでなく、SSHサーバー有効化のための設定も必要です。設定方法については、「運用・管理」の「Secure Shell」をご覧ください。
Note - Telnetクライアントとeth0の間にルーターが介在している場合は、本製品とTelnetクライアントの双方にIP経路の設定が必要です。本製品の経路設定については、「IP」の「一般設定」をご覧ください。
myswitch# show ip interface ↓ Interface IP-Address Status Protocol eth0 192.168.1.1/24 admin up running |
ランタイムメモリー上にある現在の設定内容。電源断や再起動によって失われる。show running-configコマンドで内容を確認できる。ファイル操作コマンドにおいては、仮想的なファイル「running-config」としてコピーなどの操作が可能 | |
起動時コンフィグ。システム起動の最終段階において自動的に復元される設定内容。フラッシュメモリー上にファイルとして保存されており、電源断や再起動を経ても失われない。show startup-configコマンドで内容を確認できる。ファイル操作コマンドにおいては、仮想的なファイル「startup-config」としてコピーなどの操作が可能。startup-configが実際にどのファイルを指しているかは、show bootコマンドで確認でき、boot config-fileコマンドで変更できる |
myswitch# show running-config ↓ ! hostname myswitch service maxmanager 3 baud-rate set 115200 ! banner exec ! no banner motd no system territory ! line console 0 ! line vty 0 9 ! no telnet insert-null-char ! spanning-tree mode rstp ! ! mac address-table ageing-time 300 ! interface eth0 ip address 192.168.1.1/24 ! service password-encryption ! username manager privilege 15 password 8 391ff53cd5123dbdf8f33bf00487fe50 ! ! end |
myswitch# copy running-config startup-config ↓ Generating current configuration ..... Configuration file will be saved in background. |
myswitch# write ↓ Generating current configuration ..... Configuration file will be saved in background. |
myswitch# show startup-config ↓ ! hostname myswitch service maxmanager 3 baud-rate set 115200 ! banner exec ! no banner motd no system territory ! line console 0 ! line vty 0 9 ! no telnet insert-null-char ! spanning-tree mode rstp ! ! mac address-table ageing-time 300 ! interface eth0 ip address 192.168.1.1/24 ! service password-encryption ! username manager privilege 15 password 8 391ff53cd5123dbdf8f33bf00487fe50 ! ! endmyswitch# |
Note - 再起動を実行する前に、現在の設定内容(ランニングコンフィグ)を保存したかどうかご確認ください。設定の保存については、前節「設定の保存」、および「運用・管理」の「コンフィグレーション」をご覧ください。
myswitch> enable ↓ myswitch# reload ↓ reboot system? (y/n): y ↓ Rebooting the Switch ..... |
awplus(config)# boot system DC-2.5.1.1.img ↓ |
Note - イメージファイルの設定は、コマンド実行時にシステムファイルに保存されるため、copyコマンドやwriteコマンドでコンフィグに保存する必要はありません。
awplus# show boot ↓ |
Note - ファームウェアの更新は、ネットワークの実運用中に行わないでください。
awplus# show boot ↓ -------------------------------------------------------------------------------- Current software : DC-2.5.1.1.img Current boot image : DC-2.5.1.1.img Default boot config: /config/boot.cfg Current boot config: /config/boot.cfg (file exists) |
awplus# show file systems ↓ Size(b) Free(b) Type Flags Prefixes S/D/V Lcl/Ntwk Avail ------------------------------------------------------------------- 100.0M 68.1M flash rw flash: static local Y |
awplus# copy tftp flash 192.168.1.70 DC-2.5.1.2.img ↓ |
Note - DC-2.5.1.2.imgは説明上使用している架空のファームウェアイメージファイルです。2.5.1.1リリース時点では実在しませんのでご注意ください。
awplus# dir ↓ 15889581 -rw-r--r-- Nov 7 2011 13:34:21 DC-2.5.1.1.img 15898765 -rw-r--r-- Apr 1 2012 12:34:56 DC-2.5.1.2.img ... |
awplus# configure terminal ↓ Enter configuration commands, one per line. End with CNTL/Z. awplus(config)# boot system DC-2.5.1.2.img ↓ Verifying image... please wait... Done. Current Header: Product ID/Version: DC2552XS v2.5.1.1 Build Date/Time : Oct 31 2011 15:40:44 New Header: Product ID/Version: DC2552XS v2.5.1.2 Build Date/Time : Apr 1 2012 00:00:00 Older version attempt to be written. Sure to proceed ? (y/n) y ↓ Extracting image... Please wait... Done. Writing image... Please wait... /tmp/uImage : 100% |*********************************| 1993/ 1993 KB Writing Done /tmp/uRamdisk : 100% |*********************************| 13530/ 13530 KB Writing Done /tmp/mpc85xx_et7448bf.dtb : 100% |*********************************| 12/ 12 KB Writing Done Firmware is updated and ready. Please reboot the switch. Operation successful. |
awplus# show boot ↓ -------------------------------------------------------------------------------- Current software : DC-2.5.1.1.img Current boot image : DC-2.5.1.2.img Default boot config: /config/boot.cfg Current boot config: /config/boot.cfg (file exists) |
awplus# reload ↓ reboot system? (y/n): y ↓ ... |
(C) 2011-2012 アライドテレシスホールディングス株式会社
PN: 613-001633 Rev.C