差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン 次のリビジョン 両方とも次のリビジョン | ||
network:qx-s5524gt-4x2q_tips [2019-12-02 00:44] Decomo 作成 |
network:qx-s5524gt-4x2q_tips [2019-12-30 00:03] Decomo |
||
---|---|---|---|
行 1: | 行 1: | ||
====== QX-S5524GT-4X2Qあれこれ ====== | ====== QX-S5524GT-4X2Qあれこれ ====== | ||
- | (書きかけ) | + | ===== QX-S5524GT-4X2Qについて ===== |
- | NECの10G/ | + | QX-S5524GT-4X2QはNECの10G/ |
- | 例によってH3CのOEMだが、H3C純正のラインナップにはピッタリ一致する製品が見当たらない。スペック的には[[http:// | + | * [[https:// |
- | が一番近ように見える。 | + | * [[https:// |
+ | |||
+ | 例によってH3CのOEMだが、H3C純正のラインナップにはピッタリ一致する製品は見当たらない。スペック的には[[http:// | ||
+ | |||
+ | ===== コマンド例集 ===== | ||
+ | |||
+ | コマンド体系はCISCOライクだけど、ちょいちょい違う。似すぎててCISCOに訴えられて変わったらしい。 | ||
+ | |||
+ | ==== 基本 ==== | ||
+ | |||
+ | 特権ビュー(特権モード)に入る。 | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | 適用中のコンフィグを表示 | ||
+ | < | ||
+ | [SW]display current-configuration | ||
+ | </ | ||
+ | |||
+ | 保存済みのコンフィグを表示 | ||
+ | < | ||
+ | [SW]display saved-configuration | ||
+ | [SW-Vlan-interface1]ip address 172.16.32.254 24 | ||
+ | </ | ||
+ | |||
+ | 設定の保存 | ||
+ | < | ||
+ | [SW]save | ||
+ | The current configuration will be written to the device. Are you sure? [Y/N]:y | ||
+ | Please input the file name(*.cfg)[flash:/ | ||
+ | (To leave the existing filename unchanged, press the enter key): | ||
+ | flash:/ | ||
+ | Validating file. Please wait... | ||
+ | Saved the current configuration to mainboard device successfully. | ||
+ | </ | ||
+ | |||
+ | 設定用IPアドレスの設定。VID=1のVLANインタフェースに対して設定する。 | ||
+ | < | ||
+ | [SW]interface Vlan-interface 1 | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== ルーティング ==== | ||
+ | |||
+ | デフォルトゲートウェイの設定。パラメータは宛先アドレス/ | ||
+ | < | ||
+ | [SW]ip route-static 0.0.0.0 0 172.16.0.254 | ||
+ | </ | ||
+ | |||
+ | ==== VLAN ==== | ||
+ | |||
+ | VLANの作成、VLANビューへの移動。 | ||
+ | < | ||
+ | [SW]vlan VID | ||
+ | </ | ||
+ | |||
+ | VLANの削除 | ||
+ | < | ||
+ | [SW]undo vlan VID | ||
+ | </ | ||
+ | |||
+ | VLANの概要表示 | ||
+ | < | ||
+ | [SW]display vlan brief | ||
+ | Brief information about all VLANs: | ||
+ | Supported Minimum VLAN ID: 1 | ||
+ | Supported Maximum VLAN ID: 4094 | ||
+ | Default VLAN ID: 1 | ||
+ | VLAN ID | ||
+ | 1 VLAN 0001 FGE1/ | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | 320 VLAN 0320 GE1/ | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | VLANの情報を全て表示 | ||
+ | < | ||
+ | [SW]display vlan all | ||
+ | VLAN ID: 1 | ||
+ | VLAN type: Static | ||
+ | Route interface: Configured | ||
+ | IPv4 address: 172.16.0.99 | ||
+ | IPv4 subnet mask: 255.255.255.0 | ||
+ | | ||
+ | Name: VLAN 0001 | ||
+ | | ||
+ | | ||
+ | FortyGigE1/ | ||
+ | GigabitEthernet1/ | ||
+ | GigabitEthernet1/ | ||
+ | GigabitEthernet1/ | ||
+ | GigabitEthernet1/ | ||
+ | Ten-GigabitEthernet1/ | ||
+ | Ten-GigabitEthernet1/ | ||
+ | Ten-GigabitEthernet1/ | ||
+ | Ten-GigabitEthernet1/ | ||
+ | |||
+ | VLAN ID: 320 | ||
+ | VLAN type: Static | ||
+ | Route interface: Configured | ||
+ | | ||
+ | Name: VLAN 0320 | ||
+ | | ||
+ | | ||
+ | GigabitEthernet1/ | ||
+ | GigabitEthernet1/ | ||
+ | GigabitEthernet1/ | ||
+ | GigabitEthernet1/ | ||
+ | GigabitEthernet1/ | ||
+ | GigabitEthernet1/ | ||
+ | |||
+ | VLAN ID: 470 | ||
+ | VLAN type: Static | ||
+ | Route interface: Configured | ||
+ | IPv4 address: 172.16.47.49 | ||
+ | IPv4 subnet mask: 255.255.255.0 | ||
+ | | ||
+ | Name: VLAN 0470 | ||
+ | | ||
+ | | ||
+ | GigabitEthernet1/ | ||
+ | GigabitEthernet1/ | ||
+ | GigabitEthernet1/ | ||
+ | </ | ||
+ | |||
+ | VID=320のVLANを作って、1Gポート1~12に割り当て(VLANビューでポートVLANの作成) | ||
+ | < | ||
+ | [SW]vlan 320 | ||
+ | [SW-vlan320]port GE1/0/1 to GE1/0/12 | ||
+ | [SW-vlan320]exit | ||
+ | [SW] | ||
+ | </ | ||
+ | |||
+ | VLAN 320にVLANインタフェースの作成と有効化 | ||
+ | < | ||
+ | [SW]interface Vlan-interface 320 | ||
+ | [SW-Vlan-interface320]ip address 172.16.32.254 24 | ||
+ | [SW-Vlan-interface320]undo shutdown | ||
+ | </ | ||
+ | |||
+ | ポート23をVLAN 320, 470のトランクポートにする。 | ||
+ | < | ||
+ | [SW]interface GE1/0/23 | ||
+ | [SW-GigabitEthernet1/ | ||
+ | [SW-GigabitEthernet1/ | ||
+ | </ | ||
+ | |||
+ | ==== DHCP ==== | ||
+ | |||
+ | DHCPリレー | ||
+ | < | ||
+ | [SW]dhcp enable | ||
+ | [SW]interface Vlan-interface 320 | ||
+ | [SW-Vlan-interface320]dhcp select relay | ||
+ | [SW-Vlan-interface320]dhcp relay server-address 172.20.47.1 | ||
+ | </ | ||
+ | |||
+ | ==== DNS ==== | ||
+ | |||
+ | DNSプロクシ(DNSリレー) | ||
+ | < | ||
+ | [SW]dns proxy enable | ||
+ | [SW]dns server 172.16.0.254 |