アライドテレシスL3スイッチ(CentreCOM 8724XL)の設定

〔アライドL3スイッチに2つのインタフェースIPを割り振る〕
0. 起動するとパスワードが掛かっていたので以下の方法で工場出荷時に初期化
 電源入れたらずっとS(Shift+s)を押しっ放しにすればいいらしい
http://alliedtelesis.custhelp.com/cgi-bin/alliedtelesis.cfg/php/enduser/fattach_get.php?p_sid=18TDHkxi&p_tbl=9&p_id=1898&p_created=1039211189
1. 初期化後、デフォルト(manager:friend)でログイン
CentreCOM 8724XL 取扱説明書P30
2. IPモジュールの有効化
 いきなりIPを設定しようとしたら警告。最初にIPモジュールを有効にしないといけないらしい

Manager > add ip int=vlan1 ip=192.168.1.1 mask=255.255.255.0

Warning (2005267): The IP module is not enabled.

Manager > enable ip

Info (1005287): IP module has been enabled.

Manager > sh vlan

 VLAN Information
---------------------------------------------------------------------------
 Name ............... default
 Identifier ......... 1
 Status ............. static
 Protected .......... No
 Private ............ No
 Untagged ports ..... 1-24
 Tagged ports ....... None
 Spanning Tree ...... default
 Trunk ports ........ None
 Mirror port ........ None
 Attached to Bridge . No
 Attachments:
 Module           Protocol         Format    Discrim     MAC address
 -------------------------------------------------------------------
 GARP             Spanning tree    802.2     42             -
 IP               IP               Ethernet  0800           -
 IP               ARP              Ethernet  0806           -
 -------------------------------------------------------------------

---------------------------------------------------------------------------

IPアドレスを振る アライドテレシス実機で学ぶ
3. VLANの作成
 VLAN名とVLAN IDは適当でいいのかと思ったらエラーが出たので、よくわからんが標準の名称に従った。

Manager > CREATE VLAN=vlan1 VID=10

Error (3089281): The number 1 appearing in "vlan1" must match the VID.

Manager > CREATE VLAN=white VID=10

Info (1089003): Operation successful.

Manager > CREATE VLAN=orange VID=20

Info (1089003): Operation successful.

4. VLANにポートを割り当て

Manager > ADD VLAN=white PORT=1-8

Info (1089003): Operation successful.

Manager > ADD VLAN=orange PORT=9-16

Info (1089003): Operation successful.

Manager > sh vlan

 VLAN Information
---------------------------------------------------------------------------
 Name ............... default
 Identifier ......... 1
 Status ............. static
 Protected .......... No
 Private ............ No
 Untagged ports ..... 17-24
 Tagged ports ....... None
 Spanning Tree ...... default
 Trunk ports ........ None
 Mirror port ........ None
 Attached to Bridge . No
 Attachments:
 Module           Protocol         Format    Discrim     MAC address
 -------------------------------------------------------------------
 GARP             Spanning tree    802.2     42             -
 IP               IP               Ethernet  0800           -
 IP               ARP              Ethernet  0806           -
 -------------------------------------------------------------------

 Name ............... white
 Identifier ......... 10
 Status ............. static
 Protected .......... No
 Private ............ No
 Untagged ports ..... 1-8
 Tagged ports ....... None
 Spanning Tree ...... default
 Trunk ports ........ None
 Mirror port ........ None
 Attached to Bridge . No
 Attachments:
 Module           Protocol         Format    Discrim     MAC address
 -------------------------------------------------------------------
 GARP             Spanning tree    802.2     42             -
 -------------------------------------------------------------------

 Name ............... orange
 Identifier ......... 20
 Status ............. static
 Protected .......... No
 Private ............ No
 Untagged ports ..... 9-16
 Tagged ports ....... None
 Spanning Tree ...... default
 Trunk ports ........ None
 Mirror port ........ None
 Attached to Bridge . No
 Attachments:
 Module           Protocol         Format    Discrim     MAC address
 -------------------------------------------------------------------
 GARP             Spanning tree    802.2     42             -
 -------------------------------------------------------------------

---------------------------------------------------------------------------

5. 各VLANにIPアドレスを割り当て
 最初間違ったIPを割り当てたので、後から変更

Manager > ADD IP INT=vlan-white IP=192.168.1.1 MASK=255.255.255.0

Info (1005275): interface successfully added.

Manager > ADD IP INT=vlan-orange IP=192.168.3.1 MASK=255.255.255.0

Info (1005275): interface successfully added.

Manager > sh ip int

Interface     Type     IP Address       Bc Fr PArp  Filt RIP Met.   SAMode  IPSc
Pri. Filt     Pol.Filt Network Mask     MTU   VJC   GRE  OSPF Met.  DBcast  Mul.
InvArp
--------------------------------------------------------------------------------
LOCAL         ---      Not set          -  -  -     ---  --         Pass    --
---           ---      Not set          1500  -     ---  --         ---     ---
-
vlan10#       Static   192.168.1.1      1  n  Off   ---  01         Pass    No
---           ---      255.255.255.0    1500  -     ---  0000000001 No      Rec
-
vlan20#       Static   192.168.3.1      1  n  Off   ---  01         Pass    No
---           ---      255.255.255.0    1500  -     ---  0000000001 No      Rec
-
--------------------------------------------------------------------------------

Manager > show ip route

IP Routes
-------------------------------------------------------------------------------
Destination       Mask              NextHop             Interface           Age
DLCI/Circ.        Type     Policy   Protocol   Tag      Metrics      Preference
-------------------------------------------------------------------------------
192.168.1.0       255.255.255.0     0.0.0.0             vlan10#              92
-                 direct   0        interface  -        1                     0
192.168.3.0       255.255.255.0     0.0.0.0             vlan20#              72
-                 direct   0        interface  -        1                     0
-------------------------------------------------------------------------------

Manager > SET IP INT=vlan-orange IP=192.168.3.130 MASK=255.255.255.0

Interface     Type     IP Address       Bc Fr PArp  Filt RIP Met.   SAMode  IPSc
Pri. Filt     Pol.Filt Network Mask     MTU   VJC   GRE  OSPF Met.  DBcast  Mul.
InvArp
--------------------------------------------------------------------------------
vlan20#       Static   192.168.3.130    1  n  Off   ---  01         Pass    No
---           ---      255.255.255.0    1500  -     ---  0000000001 No      Rec
-
--------------------------------------------------------------------------------

Manager > SET IP INT=vlan-white IP=192.168.1.130 MASK=255.255.255.0

Interface     Type     IP Address       Bc Fr PArp  Filt RIP Met.   SAMode  IPSc
Pri. Filt     Pol.Filt Network Mask     MTU   VJC   GRE  OSPF Met.  DBcast  Mul.
InvArp
--------------------------------------------------------------------------------
vlan10#       Static   192.168.1.130    1  n  Off   ---  01         Pass    No
---           ---      255.255.255.0    1500  -     ---  0000000001 No      Rec
-
--------------------------------------------------------------------------------

6. 設定の保存
 設定の保存には、設定ファイルを作成するためのCREATEコマンド、それを次回起動時に読み込まれるようにするためのSETコマンドがセットで必要らしい。めんどい。。
CentreCOM 8724XL/8748XL コマンドリファレンス: 運用・管理/コンフィグレーション

Manager > show file

Filename                Device        Size     Created                 Locks
-----------------------------------------------------------------------------
86276-06.rez            flash         4313840  11-Apr-2007 09:54:10    0
basic.cfg               flash         2572     22-May-2008 13:30:55    0
config.ins              flash         32       08-Jan-2009 07:11:14    0
help.hlp                flash         69909    11-Apr-2007 09:55:20    0
longname.lfn            flash         377      22-May-2008 15:37:14    0
myfile.cfg              flash         3198     22-May-2008 15:42:07    0
prefer.ins              flash         64       11-Apr-2007 09:55:29    0
release.lic             flash         96       11-Apr-2007 09:55:27    0
snmpengn.sec            flash         40       08-Nov-2010 16:34:13    0
sw-dc.cfg               flash         1107     16-Dec-2008 15:39:51    0
accsave.acc             nvs           124      08-Nov-2010 16:36:45    0
random.rnd              nvs           3904     08-Nov-2010 16:56:45    0
-----------------------------------------------------------------------------

Manager > CREATE CONFIG=mylan.cfg

Info (1049003): Operation successful.

Manager > SET CONFIG=mylan.cfg

Info (1049003): Operation successful.

7. 現在の設定の確認と、念のため再起動して読み込まれるかを確認

Manager > SHOW CONFIG DYNAMIC

# System configuration

# SERVICE configuration

# TIMEZONE configuration

# Flash memory configuration

# LOADER configuration

# User configuration
set user=manager pass=3af00c6cad11f7ab5db4467b66ce503eff priv=manager lo=yes
set user=manager telnet=yes desc="Manager Account"

# TTY configuration

# ASYN configuration

# ETH configuration

# BRI driver configuration

# PRI driver configuration

# SWITCH (pre-VLAN) configuration

# LAPD configuration

# Q.931 configuration

# PPP templates configuration

# ISDN Call Control configuration

# TDM configuration

# SYN drivers configuration

# DS3 configuration

# ASYN Call Control configuration

# Frame relay configuration

# LAPB configuration

# X.25 DTE configuration

# MIOX configuration

# L2TP configuration

# Sec Associations configuration

# VLAN general configuration
create vlan="white" vid=10
create vlan="orange" vid=20

# MLD Snooping configuration

# STP general configuration

# VLAN port configuration
add vlan="10" port=1-8
add vlan="20" port=9-16

# VLANRELAY configuration


# STP port configuration

# MSTP configuration

#
# DHCP Snooping configuration
#

# CLASSIFR configuration

# Stack configuration

# SWITCH (post-VLAN) configuration


# PPP configuration

# DHCP (Pre IP) configuration

# GRE configuration

# IP configuration
enable ip
add ip int=vlan10 ip=192.168.1.130
add ip int=vlan20 ip=192.168.3.130

# IPv6 configuration

# SWITCH (post-IP) configuration

# PIM configuration

# PIM6 configuration

# DVMRP configuration

# X.25C configuration

# OSPF configuration

# SNMP configuration

# INT configuration

# Firewall configuration

# RADIUS configuration

# Telnet configuration

# LPD configuration

# Stream ports configuration

# STT configuration

# BOOTP configuration

# NTP configuration

# Ping configuration

# DHCP (Post IP) configuration

# DHCP6 configuration

# IPX configuration

# Appletalk configuration

# Bridge configuration

# ENCO configuration

# SSH configuration

# SSL configuration

# Log configuration

# RSVP configuration

# Mail configuration

# TPAD configuration

# IPSEC configuration

# ISAKMP configuration

# PKI configuration

# HTTP configuration

# VRRP configuration

# GUI configuration

# GARP configuration

# QOS configuration

# BGP configuration

# LB configuration

# TACP configuration

# SKEY configuration

# PORTAUTH configuration

# 802.1X configuration

# MAC Based Auth configuration

# LACP configuration


#
# SQOS general configuration
#


# TRIGGER Configuration

Manager > RESTART

Error (3034007): Unexpected end of line.

Manager > restart

 REBoot
 ROUter
 SWItch
 IMMEDiately
 CONfig

(参考)CentreCOM 8724XL/8748XL コマンドリファレンス2.7

本製品にIP アドレスを割り当てる必要があります。以下、そのための基本設定について説明します。
1. コンソールターミナルからログインします。
2. IP モジュールを有効にします。
ENABLE IP
3. VLAN default にIP アドレスを設定します。ご購入時の状態ではすべてのポートがVLAN default
に所属しています。
ADD IP INT=vlan-default IP=192.168.10.5 MASK=255.255.255.0
4. 別サブネットからもアクセスしたい場合は経路の設定も必要になります。デフォルトルートを設定するには次のようにします。
ADD IP ROUTE=0.0.0.0 MASK=0.0.0.0 INT=vlan-default
NEXTHOP=192.168.10.1
5. 以上で設定は完了です。次回起動時にも同じ設定が有効になるよう、設定をファイルに保存し、起動
スクリプトに指定します。
CREATE CONFIG=basic.cfg
SET CONFIG=basic.cfg
■ IP モジュールの全般的な情報はSHOW IP コマンド(313 ページ)で確認します。
■ インターフェースに割り当てられたIP アドレスの情報はSHOW IP INTERFACE コマンド(338 ペー
ジ)で確認します。
■ 経路情報はSHOW IP ROUTE コマンド(347 ページ)で確認します。

IP ルーターとしての基本設定
IP ルーティング機能を利用するには、少なくとも2 つのIP インターフェースが必要です。そのためには、複数のVLAN を作成してポートを割り振る必要があります。
1. VLAN を作成します。
CREATE VLAN=white VID=10
CREATE VLAN=orange VID=20
2. VLAN にポートを割り当てます。
ADD VLAN=white PORT=1-4
ADD VLAN=orange PORT=5-8
3. IP モジュールを有効にします。
ENABLE IP
4. 各VLAN(VLAN インターフェース)にIP アドレスを割り当てます。
ADD IP INT=vlan-white IP=192.168.10.1 MASK=255.255.255.0
ADD IP INT=vlan-orange IP=192.168.20.1 MASK=255.255.255.0