差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
|
network:qx-s5524gt-4x2q_tips [2019-12-29 14:40] Decomo |
network:qx-s5524gt-4x2q_tips [2021-07-12 13:26] (現在) Decomo |
||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== QX-S5524GT-4X2Qあれこれ ====== | + | ====== |
| ===== QX-S5524GT-4X2Qについて ===== | ===== QX-S5524GT-4X2Qについて ===== | ||
| + | |||
| + | |||
| QX-S5524GT-4X2QはNECの10G/ | QX-S5524GT-4X2QはNECの10G/ | ||
| 行 12: | 行 14: | ||
| ===== コマンド例集 ===== | ===== コマンド例集 ===== | ||
| - | コマンド体系はCISCOライクだけど、ちょいちょい違う。似すぎててCISCOに訴えられて変わったらしい。 | + | コマンド体系はCiscoライクだけど、ちょいちょい違う。似すぎててCiscoに訴えられて変わったらしい。 |
| ==== 基本 ==== | ==== 基本 ==== | ||
| 行 18: | 行 20: | ||
| 特権ビュー(特権モード)に入る。 | 特権ビュー(特権モード)に入る。 | ||
| < | < | ||
| - | <SW> | + | <QX> system-view |
| </ | </ | ||
| 適用中のコンフィグを表示 | 適用中のコンフィグを表示 | ||
| < | < | ||
| - | [SW]display current-configuration | + | [QX] display current-configuration |
| </ | </ | ||
| 保存済みのコンフィグを表示 | 保存済みのコンフィグを表示 | ||
| < | < | ||
| - | [SW]display saved-configuration | + | [QX] display saved-configuration |
| - | [SW-Vlan-interface1]ip address 172.16.32.254 24 | + | |
| </ | </ | ||
| 設定の保存 | 設定の保存 | ||
| < | < | ||
| - | [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:/ | Please input the file name(*.cfg)[flash:/ | ||
| 行 45: | 行 46: | ||
| 設定用IPアドレスの設定。VID=1のVLANインタフェースに対して設定する。 | 設定用IPアドレスの設定。VID=1のVLANインタフェースに対して設定する。 | ||
| < | < | ||
| - | [SW]interface Vlan-interface 1 | + | [QX] interface Vlan-interface 1 |
| + | [QX-Vlan-interface1] ip address 192.168.0.254 24 | ||
| </ | </ | ||
| 行 51: | 行 53: | ||
| ==== ルーティング ==== | ==== ルーティング ==== | ||
| - | デフォルトゲートウェイの設定。パラメータは宛先アドレス/ | + | === デフォルトゲートウェイの設定 |
| + | |||
| + | デフォルトゲートウェイは宛先0.0.0.0/ | ||
| < | < | ||
| - | [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 |
| </ | </ | ||
| - | ==== VLAN ==== | + | === スタティックルートの削除 |
| - | VLANの作成、VLANビューへの移動。 | ||
| < | < | ||
| - | [SW]vlan VID | + | [QX] undo ip route-static ネットワークアドレス マスク ネクストホップ |
| </ | </ | ||
| - | VLANの削除 | + | 全て削除する場合は |
| < | < | ||
| - | [SW]undo vlan VID | + | [QX] delete static-routes all |
| </ | </ | ||
| - | VLANの概要表示 | + | === RIP === |
| + | |||
| + | 静的経路をRIPで再配布 | ||
| + | < | ||
| + | [QX] rip 1 | ||
| + | [QX-rip-1] import-route static | ||
| + | </ | ||
| + | |||
| + | ==== VLAN ==== | ||
| + | |||
| + | === VLANの概要表示 | ||
| < | < | ||
| - | [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 | ||
| 行 82: | 行 96: | ||
| | | ||
| | | ||
| - | 320 VLAN 0320 | + | 100 VLAN 0100 |
| | | ||
| | | ||
| 行 88: | 行 102: | ||
| </ | </ | ||
| - | VLANの情報を全て表示 | + | === VLANの全情報を表示 |
| < | < | ||
| - | [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: | + | IPv4 address: |
| IPv4 subnet mask: 255.255.255.0 | IPv4 subnet mask: 255.255.255.0 | ||
| | | ||
| 行 110: | 行 125: | ||
| Ten-GigabitEthernet1/ | Ten-GigabitEthernet1/ | ||
| - | VLAN ID: 320 | + | VLAN ID: 100 |
| VLAN type: Static | VLAN type: Static | ||
| Route interface: Configured | Route interface: Configured | ||
| - | | + | |
| - | Name: VLAN 0320 | + | Name: VLAN 0100 |
| | | ||
| | | ||
| 行 124: | 行 139: | ||
| GigabitEthernet1/ | GigabitEthernet1/ | ||
| - | VLAN ID: 470 | + | VLAN ID: 200 |
| VLAN type: Static | VLAN type: Static | ||
| Route interface: Configured | Route interface: Configured | ||
| - | IPv4 address: | + | IPv4 address: |
| IPv4 subnet mask: 255.255.255.0 | IPv4 subnet mask: 255.255.255.0 | ||
| - | | + | |
| - | Name: VLAN 0470 | + | Name: VLAN 0200 |
| | | ||
| | | ||
| 行 138: | 行 153: | ||
| </ | </ | ||
| - | VID=320のVLANを作って、1Gポート1~12に割り当て(VLANビューでポートVLANの作成) | + | === VLANの作成/VLANビューへの移動 === |
| < | < | ||
| - | [SW]vlan 320 | + | [QX] vlan 100 |
| - | [SW-vlan320]port GE1/0/1 to GE1/0/12 | + | |
| - | [SW-vlan320]exit | + | |
| - | [SW] | + | |
| </ | </ | ||
| - | VLAN 320にVLANインタフェースの作成と有効化 | + | === VLANの削除 === |
| < | < | ||
| - | [SW]interface Vlan-interface | + | [QX] undo vlan 100 |
| - | [SW-Vlan-interface320]ip address | + | </ |
| - | [SW-Vlan-interface320]undo shutdown | + | |
| + | === VLANのポートへの割り当て === | ||
| + | |||
| + | VID=100のVLANを1GbEポート1~12に割り当てる | ||
| + | |||
| + | < | ||
| + | [QX] vlan 100 | ||
| + | [QX-vlan100] port GE1/0/1 to GE1/0/12 | ||
| + | </ | ||
| + | |||
| + | === VLANインタフェース(SVI)の作成 === | ||
| + | |||
| + | VLANインタフェースの作成と有効化。Ciscoでいう所のSVIの設定。 | ||
| + | |||
| + | < | ||
| + | [QX] interface Vlan-interface | ||
| + | [QX-Vlan-interface100] ip address | ||
| + | [QX-Vlan-interface100] undo shutdown | ||
| + | </ | ||
| + | |||
| + | === トランクポートの設定 === | ||
| + | |||
| + | ポート10をVLAN 100, 200のトランクポートにする。 | ||
| + | |||
| + | < | ||
| + | [QX] interface GE1/0/10 | ||
| + | [QX-GigabitEthernet1/ | ||
| + | [QX-GigabitEthernet1/ | ||
| + | </ | ||
| + | |||
| + | === ネイティブVLANの設定 === | ||
| + | |||
| + | ポート10にPVID 300を割り当てる。 | ||
| + | |||
| + | < | ||
| + | [QX] interface GE1/0/10 | ||
| + | [QX-GigabitEthernet1/ | ||
| + | </ | ||
| + | |||
| + | === サブネットベースVLAN === | ||
| + | |||
| + | VLANに対応するネットワークアドレスを紐づける。 | ||
| + | |||
| + | '' | ||
| + | |||
| + | < | ||
| + | [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 | ||
| + | </ | ||
| + | |||
| + | ポート30をVLAN 100, | ||
| + | |||
| + | < | ||
| + | [QX] interface FGE 1/0/30 | ||
| + | [QX-FortyGigE1/ | ||
| + | [QX-FortyGigE1/ | ||
| + | [QX-FortyGigE1/ | ||
| + | [QX-FortyGigE1/ | ||
| + | </ | ||
| + | |||
| + | ==== DHCP ==== | ||
| + | |||
| + | === DHCPリレー === | ||
| + | |||
| + | < | ||
| + | [QX] dhcp enable | ||
| + | [QX] interface Vlan-interface 100 | ||
| + | [QX-Vlan-interface100] dhcp select relay | ||
| + | [QX-Vlan-interface100] dhcp relay server-address 192.168.0.1 | ||
| </ | </ | ||
| ==== DNS ==== | ==== DNS ==== | ||
| - | DNSプロクシ(DNSリレー) | + | === DNSプロクシ(DNSリレー) |
| < | < | ||
| - | [SW]dns proxy enable | + | [QX] dns proxy enable |
| - | [SW]dns server | + | [QX] dns server |
| + | </ | ||