network:qx-s5524gt-4x2q_tips

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
network:qx-s5524gt-4x2q_tips [2020-03-28 17:27]
Decomo
network:qx-s5524gt-4x2q_tips [2021-07-12 13:26] (現在)
Decomo
行 1: 行 1:
-====== QX-S5524GT-4X2Qあれこれ ======+====== NEC UNIVERGE QX-S5524GT-4X2Qあれこれ ======
  
 ===== QX-S5524GT-4X2Qについて ===== ===== QX-S5524GT-4X2Qについて =====
 +
 +
  
 QX-S5524GT-4X2QはNECの10G/40Gアップリンク対応のL3スイッチである。1000BASE-T 24ポート、10G SFP+ 4ポート、40G QSFPポート 2ポートのなかなか良さげな構成。 QX-S5524GT-4X2QはNECの10G/40Gアップリンク対応のL3スイッチである。1000BASE-T 24ポート、10G SFP+ 4ポート、40G QSFPポート 2ポートのなかなか良さげな構成。
行 12: 行 14:
 ===== コマンド例集 ===== ===== コマンド例集 =====
  
-コマンド体系はCISCOライクだけど、ちょいちょい違う。似すぎててCISCOに訴えられて変わったらしい。+コマンド体系はCiscoライクだけど、ちょいちょい違う。似すぎててCiscoに訴えられて変わったらしい。
  
 ==== 基本 ==== ==== 基本 ====
行 18: 行 20:
 特権ビュー(特権モード)に入る。 特権ビュー(特権モード)に入る。
 <code> <code>
-<SW>system-view+<QX> system-view
 </code> </code>
  
 適用中のコンフィグを表示 適用中のコンフィグを表示
 <code> <code>
-[SW]display current-configuration+[QX] display current-configuration
 </code> </code>
  
 保存済みのコンフィグを表示 保存済みのコンフィグを表示
 <code> <code>
-[SW]display saved-configuration +[QX] display saved-configuration
-[SW-Vlan-interface1]ip address 172.16.32.254 24+
 </code> </code>
  
 設定の保存 設定の保存
 <code> <code>
-[SW]save+[QX] save
 The current configuration will be written to the device. Are you sure? [Y/N]:y The current configuration will be written to the device. Are you sure? [Y/N]:y
 Please input the file name(*.cfg)[flash:/startup.cfg] Please input the file name(*.cfg)[flash:/startup.cfg]
行 45: 行 46:
 設定用IPアドレスの設定。VID=1のVLANインタフェースに対して設定する。 設定用IPアドレスの設定。VID=1のVLANインタフェースに対して設定する。
 <code> <code>
-[SW]interface Vlan-interface 1+[QX] interface Vlan-interface 1 
 +[QX-Vlan-interface1] ip address 192.168.0.254 24
  
 </code> </code>
行 51: 行 53:
 ==== ルーティング ==== ==== ルーティング ====
  
-=== ゲートウェイの設定 ===+=== デフォルトゲートウェイの設定 ===
  
-デフォルトゲートウェイの設定。パラメータは宛先アドレス/マスク長(アドレス表記も可)/ネクストホップ。+デフォルトゲートウェイは宛先0.0.0.0/0スタティックルートとして設定する。パラメータは宛先アドレス/マスク長(アドレス表記も可)/ネクストホップ。
 <code> <code>
-[SW]ip route-static 0.0.0.0 0 172.16.0.254+[QX] ip route-static 0.0.0.0 0 192.16.0.1
 </code> </code>
  
-=== RIP ===+=== スタティックルートの削除 ===
  
-静的経路をRIPで再配布 
 <code> <code>
-[SW]rip 1 +[QXundo ip route-static ネットワークアドレス マスク ネクストホップ
-[SW-rip-1]import-route static+
 </code> </code>
  
-==== VLAN ==== +全て削除する場合は
-VLANの作成、VLANビューへの移動。+
 <code> <code>
-[SW]vlan VID+[QXdelete static-routes all
 </code> </code>
  
-VLANの削除+=== RIP === 
 + 
 +静的経路をRIPで再配布
 <code> <code>
-[SW]undo vlan VID+[QXrip 1 
 +[QX-rip-1] import-route static
 </code> </code>
  
-VLANの概要表示+==== VLAN ==== 
 + 
 +=== VLANの概要表示 === 
 <code> <code>
-[SW]display vlan brief+[QX] display vlan brief
 Brief information about all VLANs: Brief information about all VLANs:
 Supported Minimum VLAN ID: 1 Supported Minimum VLAN ID: 1
行 91: 行 96:
                                            GE1/0/23  GE1/0/24  XGE1/0/25                                            GE1/0/23  GE1/0/24  XGE1/0/25
                                            XGE1/0/26  XGE1/0/27  XGE1/0/28                                            XGE1/0/26  XGE1/0/27  XGE1/0/28
-320       VLAN 0320                        GE1/0/ GE1/0/ GE1/0/ GE1/0/4+100       VLAN 0100                        GE1/0/ GE1/0/ GE1/0/ GE1/0/4
                                            GE1/0/ GE1/0/ GE1/0/ GE1/0/8                                            GE1/0/ GE1/0/ GE1/0/ GE1/0/8
                                            GE1/0/ GE1/0/10  GE1/0/11                                            GE1/0/ GE1/0/10  GE1/0/11
行 97: 行 102:
 </code> </code>
  
-VLANの情報を全て表示+=== VLANの情報を表示 === 
 <code> <code>
-[SW]display vlan all+[QX]display vlan all
  VLAN ID: 1  VLAN ID: 1
  VLAN type: Static  VLAN type: Static
  Route interface: Configured  Route interface: Configured
- IPv4 address: 172.16.0.99+ IPv4 address: 192.168.0.254
  IPv4 subnet mask: 255.255.255.0  IPv4 subnet mask: 255.255.255.0
  Description: VLAN 0001  Description: VLAN 0001
行 119: 行 125:
     Ten-GigabitEthernet1/0/28     Ten-GigabitEthernet1/0/28
  
- VLAN ID: 320+ VLAN ID: 100
  VLAN type: Static  VLAN type: Static
  Route interface: Configured  Route interface: Configured
- Description: VLAN 0320 + Description: VLAN 0100 
- Name: VLAN 0320+ Name: VLAN 0100
  Tagged ports:   None  Tagged ports:   None
  Untagged ports:  Untagged ports:
行 133: 行 139:
     GigabitEthernet1/0/11         GigabitEthernet1/0/12     GigabitEthernet1/0/11         GigabitEthernet1/0/12
  
- VLAN ID: 470+ VLAN ID: 200
  VLAN type: Static  VLAN type: Static
  Route interface: Configured  Route interface: Configured
- IPv4 address: 172.16.47.49+ IPv4 address: 192.168.20.254
  IPv4 subnet mask: 255.255.255.0  IPv4 subnet mask: 255.255.255.0
- Description: VLAN 0470 + Description: VLAN 0200 
- Name: VLAN 0470+ Name: VLAN 0200
  Tagged ports:   None  Tagged ports:   None
  Untagged ports:  Untagged ports:
行 147: 行 153:
 </code> </code>
  
-VID=320のVLANって、1Gポート1~12に割り当て(VLANビューでポートVLAN作成)+=== VLAN成/VLANビュー移動 === 
 <code> <code>
-[SW]vlan 320 +[QX] vlan 100
-[SW-vlan320]port GE1/0/1 to GE1/0/12 +
-[SW-vlan320]exit +
-[SW]+
 </code> </code>
  
-VLAN 320にVLANインタフェース作成と有効化+=== VLANの削除 === 
 <code> <code>
-[SW]interface Vlan-interface 320 +[QX] undo vlan 100
-[SW-Vlan-interface320]ip address 172.16.32.254 24 +
-[SW-Vlan-interface320]undo shutdown+
 </code> </code>
  
-ポート23をVLAN 320, 470トランクポートに+=== VLANのポート割り当て === 
 + 
 +VID=100のVLANを1GbEポート1~12割り当て 
 <code> <code>
-[SW]interface GE1/0/23 +[QX] vlan 100 
-[SW-GigabitEthernet1/0/23]port link-type trunk +[QX-vlan100] port GE1/0/1 to GE1/0/12 
-[SW-GigabitEthernet1/0/23]port trunk permit vlan 320 470+</code> 
 + 
 +=== VLANインタフェース(SVI)の作成 === 
 + 
 +VLANインタフェースの作成と有効化。Ciscoでいう所のSVIの設定。 
 + 
 +<code> 
 +[QX] interface Vlan-interface 100 
 +[QX-Vlan-interface100] ip address 192.168.10.254 24 
 +[QX-Vlan-interface100] undo shutdown 
 +</code> 
 + 
 +=== トランクポートの設定 === 
 + 
 +ポート10をVLAN 100, 200のトランクポートにする。 
 + 
 +<code> 
 +[QX] interface GE1/0/10 
 +[QX-GigabitEthernet1/0/10] port link-type trunk 
 +[QX-GigabitEthernet1/0/10] port trunk permit vlan 100 200 
 +</code> 
 + 
 +=== ネイティブVLANの設定 === 
 + 
 +ポート10にPVID 300を割り当てる。 
 + 
 +<code> 
 +[QX] interface GE1/0/10 
 +[QX-GigabitEthernet1/0/10] port trunk pvid vlan 300 
 +</code> 
 + 
 +=== サブネットベースVLAN === 
 + 
 +VLANに対応するネットワークアドレスを紐づける。 
 + 
 +''ip-subnet-vlan''の第1パラメータはサブネットVLANの識別子で、付けても付けなくてもよい。 
 + 
 +<code> 
 +[QX] vlan 100 
 +[QX-vlan320] ip-subnet-vlan 10 ip 192.168.10.0 255.255.255.0 
 +[QX] vlan 200  
 +[QX-vlan470] ip-subnet-vlan 20 ip 192.168.20.0 255.255.255.0 
 +</code> 
 + 
 +ポート30をVLAN 100,200のタグなしメンバーとし、IPサブネットVLANを紐づける。なお、IPサブネットVLANを使うポートはハイブリッドポートの必要がある。 
 + 
 +<code> 
 +[QX] interface FGE 1/0/30 
 +[QX-FortyGigE1/0/30] port link-type hybrid 
 +[QX-FortyGigE1/0/30] port hybrid vlan 100 200 untagged 
 +[QX-FortyGigE1/0/30] port hybrid ip-subnet-vlan vlan 100 
 +[QX-FortyGigE1/0/30] port hybrid ip-subnet-vlan vlan 200
 </code> </code>
  
 ==== DHCP ==== ==== DHCP ====
  
-DHCPリレー+=== DHCPリレー === 
 <code> <code>
-[SW]dhcp enable +[QX] dhcp enable 
-[SW]interface Vlan-interface 320 +[QX] interface Vlan-interface 100 
-[SW-Vlan-interface320]dhcp select relay +[QX-Vlan-interface100] dhcp select relay 
-[SW-Vlan-interface320]dhcp relay server-address 172.20.47.1+[QX-Vlan-interface100] dhcp relay server-address 192.168.0.1
 </code> </code>
  
 ==== DNS ==== ==== DNS ====
  
-DNSプロクシ(DNSリレー)+=== DNSプロクシ(DNSリレー) === 
 <code> <code>
-[SW]dns proxy enable +[QX] dns proxy enable 
-[SW]dns server 172.16.0.254+[QX] dns server 192.168.0.
 +</code>
  • network/qx-s5524gt-4x2q_tips.1585384050.txt.gz
  • 最終更新: 2020-03-28 17:27
  • by Decomo