OAM インターフェイスを使用してゲートウェイをデプロイする場合は、次の手順を実行します。
- 仮想マシン (ETH2) に追加のインターフェイスを追加します。
[VMware]
管理/OAM 専用の vNIC が必要な場合は、vmxnet3 タイプの別の vNIC を追加します。vNIC の MAC アドレスをメモするためには前の手順を繰り返す必要があるので、[OK] をクリックしてから、もう一度 [設定の編集 (Edit Settings)] をクリックします。
[KVM]
管理/OAM 専用の vNIC が必要な場合は、「oam-network」という名前の libvirt ネットワークがあることを確認します。次に、以下の行を XML 仮想マシン構造に追加します。
….. </controller> <interface type='network'> <source network='public_interface'/> <vlan><tag id='#public_vlan#'/></vlan> <alias name='hostdev1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x11' function='0x0'/> </interface> <interface type='network'> <source network='inside_interface'/> <alias name='hostdev2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x12' function='0x0'/> </interface> <interface type='network'> <source network='oam_interface'/> <vlan><tag id='#oam_vlan#'/></vlan> <alias name='hostdev2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x13' function='0x0'/> </interface> <serial type='pty'> <source path='/dev/pts/3'/> <target port='0'/> <alias name='serial0'/> </serial>
- 追加のインターフェイスを指定して、meta-data ファイルを構成します。
instance-id: #_Hostname_# local-hostname: #_Hostname_# network-interfaces: | auto eth0 iface eth0 inet static address #_IPv4_Address_# netmask #_IPv4_Netmask_# gateway #_IPv4_Gateway_# dns-nameservers #_DNS_server_primary_# #_DNS_server_secondary_# auto eth1 iface eth1 inet static metric '13' address #_MGMT_IPv4_Address_# netmask #_MGMT_IPv4_Netmask_# gateway #_MGMT_IPv4_Gateway_# dns-nameservers #_DNS_server_primary_# #_DNS_server_secondary_# auto eth2 iface eth2 inet static address #_OAM_IPv4_Address_# netmask #_OAM_IPv4_Netmask_# up route add -net 10.0.0.0 netmask 255.0.0.0 gw #_OAM_IPv4_Gateway_# up route add -net 192.168.0.0 netmask 255.255.0.0 gw #_OAM_IPv4_Gateway_# dns-nameservers # _DNS_server_primary_# #_DNS_server_secondary_#