Show Table of Contents
9.2.7. 802.1q VLAN タグのセットアップ
- 以下のコマンドを入力して、モジュールがロードされていることを確認します。
lsmod | grep 8021q - モジュールがロードされていない場合は、以下のコマンドでロードします。
modprobe 8021q /etc/sysconfig/network-scripts/ifcfg-ethXの物理インターフェースを以下のように設定します。X は特定のインターフェースに対応する一意の番号です。DEVICE=ethX TYPE=Ethernet BOOTPROTO=none ONBOOT=yes
/etc/sysconfig/network-scriptsで VLAN インターフェース設定を行います。設定ファイル名は、物理インターフェースにピリオド.と VLAN ID 番号を加えたものにします。例えば、VLAN ID が 192 で物理インターフェースがeth0ならば、設定ファイル名はifcfg-eth0.192となります。DEVICE=ethX.192 BOOTPROTO=static ONBOOT=yes IPADDR=192.168.1.1 NETMASK=255.255.255.0 USERCTL=no NETWORK=192.168.1.0 VLAN=yes
例えば、VLAN ID 193 で同一インターフェースのeth0上に 2 つ目の VLAN を設定する必要がある場合は、VLAN 設定詳細でeth0.193の名前の新規ファイルを追加します。- 以下のようにネゴシエーションサービスを再起動して変更を反映させます
service network restart

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.