(新)タイトルいつ決めるのさ

何かの参考にして頂ければ幸いです。

Allied Telesis AT-x210 の 基本的な CUI操作コマンドのメモ

Allied Telesis AT-x210 の基礎的な CUI操作コマンドをいくつかメモしておきます。

全てのコマンドリファレンスは「こちら」から


コンソール操作のログインレベルは初期状態で 3段階。「非特権EXECモード」から「enable」「configure terminal」で「特権EXECモード」、「グローバルコンフィグモード」へ昇格。ファームウェア更新や初期設定などは以前の記事参照。ログ表示は「show log」「show log permanent」。ひとつ上のモードに戻るには「quit」又は「exit」。

・システムの状態確認:「show system environment」

AT-x210#show system environment
Environment Monitoring Status
 
Overall Status: Normal

Resource ID: 1  Name: x210-16GT
ID  Sensor (Units)                      Reading    Low Limit High Limit Status
1   Voltage: 2.5V (Volts)                   2.435       2.344       2.865     Ok     
2   Voltage: 3.3V (Volts)                   3.180       2.973       3.627     Ok   
3   Voltage: 12.0V (Volts)                 11.375      10.813      13.188     Ok   
4   Voltage: 1.2V (Volts)                   1.181       1.083       1.322     Ok    
5   Temp: Internal (Degrees C)                 44    72(Hyst)          77     Ok

・システム状況確認:「show system」

AT-x210#show system
System Status                                   Sun Jun 30 01:29:36 2019

Board       ID  Bay     Board Name                        Rev   Serial number
--------------------------------------------------------------------------------
Base       367           x210-16GT                        B-0   *********          
--------------------------------------------------------------------------------
RAM:  Total: 122660 kB Free: 41728 kB
Flash: 63.0MB Used: 45.8MB Available: 17.3MB          
--------------------------------------------------------------------------------
Environment Status : Normal
Uptime             : 10 days 11:08:02
Bootloader version : 2.0.24

Current software   : x210-5.4.7-0.1.rel
Software version   : 5.4.7-0.1
Build date         : Thu Mar 23 21:27:28 UTC 2017

Current boot config: flash:/AT-x210.cfg (file exists) 

System Name
  AT-x210
System Contact

System Location                                                                                                           

IPアドレスの確認:「show ip interface」「show ipv6 interface」

AT-x210>show ip interface
Interface             IP-Address            Status          Protocol
lo                    unassigned            admin up        running
vlan1                 192.168.100.3/24      admin up        running

AT-x210#show ipv6 interface
Interface     IPv6-Address                                   Status      Protocol
lo            unassigned                                     admin up    running
vlan1         240b:****:****:****:****:****:****:****/64     admin up    running
              fe80::****:****:****:****/64   

・IPルートの確認:「show ip route」「show ipv6 route」

AT-x210>show ip route
Codes: C - connected, S - static, R - RIP, B - BGP
       O - OSPF, D - DHCP, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       * - candidate default

Gateway of last resort is 192.168.100.1 to network 0.0.0.0

S*      0.0.0.0/0 [1/0] via 192.168.100.1, vlan1
C       192.168.100.0/24 is directly connected, vlan1

・インターフェースの確認:「show interface status」

AT-x210#show interface status
Port           Name          Status             Vlan Duplex   Speed Type
port1.0.1                     connected            1 a-full   a-1000 1000BASE-T
port1.0.2                     connected            1 a-full   a-1000 1000BASE-T
port1.0.3                     connected            1 a-full   a-1000 1000BASE-T
port1.0.4                     notconnect           1 auto      auto  1000BASE-T
port1.0.5                     connected            1 a-full    a-10  1000BASE-T
port1.0.6                     connected            1 a-full   a-100  1000BASE-T
port1.0.7                     connected            1 a-full    a-10  1000BASE-T
port1.0.8                     notconnect           1 auto      auto  1000BASE-T
port1.0.9                     connected            1 a-full   a-1000 1000BASE-T
port1.0.10                    notconnect           1 auto      auto  1000BASE-T
port1.0.11                    notconnect           1 auto      auto  1000BASE-T
port1.0.12                    notconnect           1 auto      auto  1000BASE-T
port1.0.13                    notconnect           1 auto      auto  1000BASE-T
port1.0.14                    notconnect           1 auto      auto  1000BASE-T
port1.0.15                    notconnect           1 auto      auto  1000BASE-T
port1.0.16                    notconnect           1 auto      auto  1000BASE-T 

 Duplex、Speedで先頭に「a-」が付いている場合は、オートネゴシエーションによる決定を示す。

・vlanの状況確認:「show vlan all 」

AT-x210>show vlan all
VLAN ID  Name            Type    State   Member ports
                                                        (u)-Untagged, (t)-Tagged
======= ================ ======= ===============
1       default          STATIC  ACTIVE  port1.0.1(u) port1.0.2(u) port1.0.3(u)
                                                      port1.0.4(u) port1.0.5(u) port1.0.6(u)
                                                      port1.0.7(u) port1.0.8(u) port1.0.9(u)
                                                      port1.0.10(u) port1.0.11(u)
                                                      port1.0.12(u) port1.0.13(u)
                                                      port1.0.14(u) port1.0.15(u)
                                                      port1.0.16(u) 

 グローバルコンフィグモードから「vlan2」を作成して「ABC」と命名

AT-x210(config)#vlan database
AT-x210(config-vlan)#vlan 2 name ABC

 ポートVLAN(タグ無しVLAN)で15番と16番を vlan2 に

AT-x210(config)#interface port1.0.15-1.0.16
AT-x210(config-if)#switchport mode access
AT-x210(config-if)#switchport access vlan 2

 こうなります

AT-x210>show vlan all
VLAN ID  Name            Type    State   Member ports
                                                        (u)-Untagged, (t)-Tagged
======= ================ ======= ===============
1       default          STATIC  ACTIVE  port1.0.1(u) port1.0.2(u) port1.0.3(u)
                                                      port1.0.4(u) port1.0.5(u) port1.0.6(u)
                                                      port1.0.7(u) port1.0.8(u) port1.0.9(u)
                                                      port1.0.10(u) port1.0.11(u)
                                                      port1.0.12(u) port1.0.13(u)
                                                      port1.0.14(u) 
2       ABC              STATIC  ACTIVE  port1.0.15(u) port1.0.16(u)

 vlan の説明に関してはコマンドリファレンスの「L2スイッチング」の項目参照。