| 양쪽 이전 판 이전 판 다음 판 | 이전 판 |
| ovs_for_legacy_network-script [2021/07/27 06:52] – [주의사항] koov | ovs_for_legacy_network-script [2021/07/27 06:55] (현재) – [ovs for legacy network-script] koov |
|---|
| The RPM packages for Open vSwitch provide some integration with RedHat’s network scripts. Using this integration is optional. | The RPM packages for Open vSwitch provide some integration with RedHat’s network scripts. Using this integration is optional. |
| |
| To use the integration for a Open vSwitch bridge or interface named <name>, create or edit /etc/sysconfig/network-scripts/ifcfg-<name>. | To use the integration for a Open vSwitch bridge or interface named <name>, create or edit ''/etc/sysconfig/network-scripts/ifcfg-<name>''. |
| This is a shell script that consists of a series of VARIABLE=VALUE assignments. The following OVS-specific variable names are supported: | This is a shell script that consists of a series of ''VARIABLE=VALUE'' assignments. The following OVS-specific variable names are supported: |
| |
| - ''DEVICETYPE'': Always set to "ovs". | - ''DEVICETYPE'': Always set to ''ovs''. |
| - ''TYPE'': If this is "OVSBridge", then this file represents an OVS bridge named <name>. Otherwise, it represents a port on an OVS bridge and TYPE must have one of the following values: | - ''TYPE'': If this is ''OVSBridge'', then this file represents an OVS bridge named <name>. Otherwise, it represents a port on an OVS bridge and TYPE must have one of the following values: |
| * ''OVSPort'', if <name> is a physical port (e.g. eth0) or virtual port (e.g. vif1.0). | * ''OVSPort'', if <name> is a physical port (e.g. eth0) or virtual port (e.g. vif1.0). |
| * ''OVSIntPort'', if <name> is an internal port (e.g. a tagged VLAN). | * ''OVSIntPort'', if <name> is an internal port (e.g. a tagged VLAN). |
| * ''OVSTunnel'', if <name> is an OVS tunnel. | * ''OVSTunnel'', if <name> is an OVS tunnel. |
| * ''OVSPatchPort'', if <name> is a patch port | * ''OVSPatchPort'', if <name> is a patch port |
| - ''OVS_BRIDGE'': If TYPE is anything other than "OVSBridge", set to the name of the OVS bridge to which the port should be attached. | - ''OVS_BRIDGE'': If TYPE is anything other than ''OVSBridge'', set to the name of the OVS bridge to which the port should be attached. |
| - ''OVS_OPTIONS'': Optionally, extra options to set in the "Port" table when adding the port to the bridge, as a sequence of column[:key]=value options. For example, "tag=100" to make the port an access port for VLAN 100. See the documentation of "add-port" in ovs-vsctl(8) for syntax and the section on the Port table in ovs-vswitchd.conf.db(5) for available options. | - ''OVS_OPTIONS'': Optionally, extra options to set in the ''Port'' table when adding the port to the bridge, as a sequence of ''column[:key]=value'' options. For example, ''tag=100'' to make the port an access port for VLAN 100. See the documentation of ''add-port'' in ovs-vsctl(8) for syntax and the section on the Port table in ''ovs-vswitchd.conf.db(5)'' for available options. |
| - ''OVS_EXTRA'': Optionally, additional ovs-vsctl commands, separated by "--" (double dash). | - ''OVS_EXTRA'': Optionally, additional ovs-vsctl commands, separated by ''%%--%%'' (double dash). |
| - ''BOND_IFACES'': For "OVSBond" interfaces, a list of physical interfaces to bond together. | - ''BOND_IFACES'': For ''OVSBond'' interfaces, a list of physical interfaces to bond together. |
| - ''OVS_TUNNEL_TYPE'': For "OVSTunnel" interfaces, the type of the tunnel. | - ''OVS_TUNNEL_TYPE'': For ''OVSTunnel'' interfaces, the type of the tunnel. |
| For example, "gre", "vxlan", etc. | For example, ''gre'', ''vxlan'', etc. |
| - ''OVS_TUNNEL_OPTIONS'': For "OVSTunnel" interfaces, this field should be used to specify the tunnel options like remote_ip, key, etc. | - ''OVS_TUNNEL_OPTIONS'': For ''OVSTunnel'' interfaces, this field should be used to specify the tunnel options like remote_ip, key, etc. |
| - ''OVS_PATCH_PEER'': For "OVSPatchPort" devices, this field specifies the patch's peer on the other bridge. | - ''OVS_PATCH_PEER'': For ''OVSPatchPort'' devices, this field specifies the patch's peer on the other bridge. |
| |
| ===== 주의사항 ===== | ===== 주의사항 ===== |
| ==== Internal Port with DHCP: ==== | ==== Internal Port with DHCP: ==== |
| |
| * Needs OVSBOOTPROTO or BOOTPROTO. | * Needs ''OVSBOOTPROTO'' or ''BOOTPROTO''. |
| * All the interfaces that can reach the DHCP server as a space separated list in OVSDHCPINTERFACES. | * All the interfaces that can reach the DHCP server as a space separated list in ''OVSDHCPINTERFACES''. |
| <WRAP prewrap> | <WRAP prewrap> |
| <code vim> | <code vim> |