Dec 7, 2015

エクストリーム・ネットワークス:Vlan のSecurity(XOS)

エクストリーム・ネットワークス(XOS)をご利用している場合、デフォルトですべてPort がDefault Vlan 1 にアサインします。つまり、Vlan 1 にアサインされた Active Port は Security hole になる可能性があります。 Best Practice のため、すべてのPort は Default vlan から削除することができます。

### 例 ####


* X480-48t.1.17.36 #
* X480-48t.1.17.36 # show vlan default
VLAN Interface with name Default created by user
    Admin State:         Enabled     Tagging:   802.1Q Tag 1
    Description:         None
    Virtual router:      VR-Default
    IPv4 Forwarding:     Disabled
    IPv4 MC Forwarding:  Disabled
    Primary IP:          172.16.1.103/24
    IPv6 Forwarding:     Disabled
    IPv6 MC Forwarding:  Disabled
    IPv6:                None
    STPD:                s0(Disabled,Auto-bind)
    Protocol:            Match all unfiltered protocols
    Loopback:            Disabled
    NetLogin:            Disabled
    OpenFlow:            Disabled
    TRILL:               Disabled
    QosProfile:          None configured
    Egress Rate Limit Designated Port: None configured
    Flood Rate Limit QosProfile:       None configured
    Ports:   48.          (Number of active ports=0)
       Untag:      !1,     !2,     !3,     !4,     !5,     !6,     !7,
                   !8,     !9,    !10,    !11,    !12,    !13,    !14,
                  !15,    !16,    !17,    !18,    !19,    !20,    !21,
                  !22,    !23,    !24,    !25,    !26,    !27,    !28,
                  !29,    !30,    !31,    !32,    !33,    !34,    !35,
                  !36,    !37,    !38,    !39,    !40,    !41,    !42,
                  !43,    !44,    !45,    !46,    !47,    !48
        Flags:    (*) Active, (!) Disabled, (g) Load Sharing port
                  (b) Port blocked on the vlan, (m) Mac-Based port
                  (a) Egress traffic allowed for NetLogin
                  (u) Egress traffic unallowed for NetLogin
                  (t) Translate VLAN tag for Private-VLAN
                  (s) Private-VLAN System Port, (L) Loopback port
                  (x) VMAN Tag Translated port
                  (G) Multi-switch LAG Group port
                  (H) Dynamically added by MVRP
                  (D) TRILL Designated, (A) TRILL Appointed Forwarder
                  (I) Dynamically added by IDM
                  (U) Dynamically added uplink port
                  (V) Dynamically added by VM Tracking

* X480-48t.1.17.37 #  config vlan "Default" delete ports all

* X480-48t.1.17.38 # show vlan "Default"
VLAN Interface with name Default created by user
    Admin State:         Enabled     Tagging:   802.1Q Tag 1
    Description:         None
    Virtual router:      VR-Default
    IPv4 Forwarding:     Disabled
    IPv4 MC Forwarding:  Disabled
    Primary IP:          172.16.1.103/24
    IPv6 Forwarding:     Disabled
    IPv6 MC Forwarding:  Disabled
    IPv6:                None
    STPD:                s0(Disabled,Auto-bind)
    Protocol:            Match all unfiltered protocols
    Loopback:            Disabled
    NetLogin:            Disabled
    OpenFlow:            Disabled
    TRILL:               Disabled
    QosProfile:          None configured
    Egress Rate Limit Designated Port: None configured
    Flood Rate Limit QosProfile:       None configured
####

Dec 4, 2015

エクストリーム・ネットワークス:vlan のコンフィグ(XOS)

このポストでは、vlan のコンフィグについてご紹介したいです。

今回のトポロジーは下記のようなものとなります。
2 台のスイッチは、ポート 3 で接続しております。
 [PCA] ---- [Port5]Switch 1 [Port3]  ------------ [Port3] Switch2[Port5] ---- [PCB]
                                172.16.103.103/24           172.16.103.102/24


#### 実機の例 ####
//1. 新しいVlan を作成する、このVlan の名前は Data, VID は 10 となる//

* X480-48x.1 # create vlan Data tag 10


//2. Port 5 に untagged vlan をアサインする//
* X480-48x.2 # config vlan "Default" delete ports 5

* X480-48x.3 # config vlan Data add ports 5 untagged
* X480-48x.5 # show vlan
-----------------------------------------------------------------------------------------------
Name            VID  Protocol Addr       Flags                         Proto  Ports  Virtual
                                                                              Active router
                                                                              /Total
-----------------------------------------------------------------------------------------------
Data            10   ------------------------------------------------- ANY    0 /1   VR-Default
Default         1    172.16.103.103 /24  ------------T---------------- ANY    2 /46  VR-Default
Mgmt            4095 ------------------------------------------------- ANY    1 /1   VR-Mgmt
-----------------------------------------------------------------------------------------------


//3. Port 3 に tagged vlan をアサインする//
* X480-48x.6 # config vlan "Data" add ports 3 tagged
* X480-48x.12 # show vlan ports 3
-----------------------------------------------------------------------------------------------
Name            VID  Protocol Addr       Flags                         Proto  Ports  Virtual
                                                                              Active router
                                                                              /Total
-----------------------------------------------------------------------------------------------
Data            10   ------------------------------------------------- ANY    1 /2   VR-Default
Default         1    172.16.103.102 /24  ------------T---------------- ANY    1 /47  VR-Default
-----------------------------------------------------------------------------------------------

* X480-48x.14 # show vlan ports 5
-----------------------------------------------------------------------------------------------
Name            VID  Protocol Addr       Flags                         Proto  Ports  Virtual
                                                                              Active router
                                                                              /Total
-----------------------------------------------------------------------------------------------
Data            10   ------------------------------------------------- ANY    1 /2   VR-Default
-----------------------------------------------------------------------------------------------


//4. Swich1 と Switch 2 の Data vlan に ip address をアサインする //

* X480-48x.15 # unconfig vlan "Default" ipaddress
* X480-48x.16 #
* X480-48x.16 # config vlan "Data" ipaddress 172.16.103.103/24
IP interface for VLAN Data has been created.

* X480-48x.19 # show vlan
-----------------------------------------------------------------------------------------------
Name            VID  Protocol Addr       Flags                         Proto  Ports  Virtual
                                                                              Active router
                                                                              /Total
-----------------------------------------------------------------------------------------------
Data            10   172.16.103.103 /24  ----------------------------- ANY    1 /2   VR-Default
Default         1    --------------------------------T---------------- ANY    2 /46  VR-Default
Mgmt            4095 ------------------------------------------------- ANY    1 /1   VR-Mgmt
-----------------------------------------------------------------------------------------------


* X480-48x.15 # unconfig vlan "Default" ipaddres
* X480-48x.17 # config vlan "Data" ipaddress 172.16.103.102/24

####

エクストリーム・ネットワークス:スイッチ間の接続(XOS)

このポストでは、2 台スイッチ間の接続について、ご紹介したいと思います。

今回のトポロジーは下記のようなものとなります。
2 台のスイッチは、ポート 3 で接続しております。
 Switch 1 [Port3]  ------------ [Port3] Switch2
      172.16.103.102/24           172.16.103.103/24

##### 実行例 ######
// 1. 2台 のスイッチのPort 3 を Enable する//
* X480-48x.1 # enable port 3


// 2. 現在の vlan の状態を確認する //

* X480-48x.1 # show vlan
-----------------------------------------------------------------------------------------------
Name            VID  Protocol Addr       Flags                         Proto  Ports  Virtual
                                                                              Active router
                                                                              /Total
-----------------------------------------------------------------------------------------------
Default         1    --------------------------------T---------------- ANY    1 /48  VR-Default
Mgmt            4095 ------------------------------------------------- ANY    1 /1   VR-Mgmt

ご覧の通り、スイッチのDefault vlan は "vlan 1" に所属しております。


// 3. Default vlan に IP addresss をアサインする //
* X480-48x.2 # config vlan "Default" ipaddress 172.16.103.102/24
IP interface for VLAN Default has been created.

* X480-48x.4 # config vlan "Default" ipaddress 172.16.103.103/24
IP interface for VLAN Default has been created.


//4. 設定した内容を確認する //
* X480-48x.3 # show vlan
-----------------------------------------------------------------------------------------------
Name            VID  Protocol Addr       Flags                         Proto  Ports  Virtual
                                                                              Active router
                                                                              /Total
-----------------------------------------------------------------------------------------------
Default         1    172.16.103.102 /24  ------------T---------------- ANY    1 /48  VR-Default
Mgmt            4095 ------------------------------------------------- ANY    1 /1   VR-Mgmt
-----------------------------------------------------------------------------------------------


----------------------------------------------------------------------------------------------
Name            VID  Protocol Addr       Flags                         Proto  Ports  Virtual
                                                                              Active router
                                                                              /Total
-----------------------------------------------------------------------------------------------
Default         1    172.16.103.103 /24  ------------T---------------- ANY    2 /47  VR-Default
Mgmt            4095 ------------------------------------------------- ANY    1 /1   VR-Mgmt
-----------------------------------------------------------------------------------------------


// 5. Ping テストを実施する //
* X480-48x.4 # ping vr "VR-Default" 172.16.103.103
Ping(ICMP) 172.16.103.103: 4 packets, 8 data bytes, interval 1 second(s).
16 bytes from 172.16.103.103: icmp_seq=0 ttl=64 time=9.400 ms
16 bytes from 172.16.103.103: icmp_seq=1 ttl=64 time=1.054 ms
16 bytes from 172.16.103.103: icmp_seq=2 ttl=64 time=1.016 ms
16 bytes from 172.16.103.103: icmp_seq=3 ttl=64 time=1.063 ms

--- 172.16.103.103 ping statistics ---
4 packets transmitted, 4 packets received, 0% loss
round-trip min/avg/max = 1/3/9 ms