X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=rhel%2FREADME.RHEL;h=26206742505508d24ec625594eb1123c60336db7;hb=HEAD;hp=e6617ab719fb5b2e199ab885f871672e61f2c2a4;hpb=0fb426263e7834f7403eefd860cf5d36d43f8c45;p=sliver-openvswitch.git diff --git a/rhel/README.RHEL b/rhel/README.RHEL index e6617ab71..262067425 100644 --- a/rhel/README.RHEL +++ b/rhel/README.RHEL @@ -23,6 +23,10 @@ assignments. The following OVS-specific variable names are supported: * "OVSBond", if is an OVS bond. + * "OVSTunnel", if is an OVS tunnel. + + * "OVSPatchPort", if 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. @@ -39,14 +43,27 @@ assignments. The following OVS-specific variable names are supported: - BOND_IFACES: For "OVSBond" interfaces, a list of physical interfaces to bond together. + - OVS_TUNNEL_TYPE: For "OVSTunnel" interfaces, the type of the tunnel. + 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_PATCH_PEER: For "OVSPatchPort" devices, this field specifies + the patch's peer on the other bridge. + Note ---- -"ifdown" on a bridge will not bring individual ports on the bridge +* "ifdown" on a bridge will not bring individual ports on the bridge down. "ifup" on a bridge will not add ports to the bridge. This behavior should be compatible with standard bridges (with TYPE=Bridge). +* If 'ifup' on an interface is called multiple times, one can see +"RTNETLINK answers: File exists" printed on the console. This comes from +ifup-eth trying to add zeroconf route multiple times and is harmless. + Examples -------- @@ -62,6 +79,56 @@ IPADDR=A.B.C.D NETMASK=X.Y.Z.0 HOTPLUG=no +Enable DHCP on the bridge: +* Needs OVSBOOTPROTO instead of BOOTPROTO. +* All the interfaces that can reach the DHCP server +as a space separated list in OVSDHCPINTERFACES. + +DEVICE=ovsbridge0 +ONBOOT=yes +DEVICETYPE=ovs +TYPE=OVSBridge +OVSBOOTPROTO="dhcp" +OVSDHCPINTERFACES="eth0" +HOTPLUG=no + + +Adding Internal Port to ovsbridge0: + +==> ifcfg-intbr0 <== +DEVICE=intbr0 +ONBOOT=yes +DEVICETYPE=ovs +TYPE=OVSIntPort +OVS_BRIDGE=ovsbridge0 +HOTPLUG=no + + +Internal Port with fixed IP address: + +DEVICE=intbr0 +ONBOOT=yes +DEVICETYPE=ovs +TYPE=OVSIntPort +OVS_BRIDGE=ovsbridge0 +BOOTPROTO=static +IPADDR=A.B.C.D +NETMASK=X.Y.Z.0 +HOTPLUG=no + +Internal Port with DHCP: +* Needs OVSBOOTPROTO or BOOTPROTO. +* All the interfaces that can reach the DHCP server +as a space separated list in OVSDHCPINTERFACES. + +DEVICE=intbr0 +ONBOOT=yes +DEVICETYPE=ovs +TYPE=OVSIntPort +OVS_BRIDGE=ovsbridge0 +OVSBOOTPROTO="dhcp" +OVSDHCPINTERFACES="eth0" +HOTPLUG=no Adding physical eth0 to ovsbridge0 described above: @@ -70,7 +137,7 @@ DEVICE=eth0 ONBOOT=yes DEVICETYPE=ovs TYPE=OVSPort -OVS_BRIDGE=internet +OVS_BRIDGE=ovsbridge0 BOOTPROTO=none HOTPLUG=no @@ -109,6 +176,37 @@ DEVICE=gige-* ONBOOT=yes HOTPLUG=no +An Open vSwitch Tunnel: + +==> ifcfg-gre0 <== +DEVICE=ovs-gre0 +ONBOOT=yes +DEVICETYPE=ovs +TYPE=OVSTunnel +OVS_BRIDGE=ovsbridge0 +OVS_TUNNEL_TYPE=gre +OVS_TUNNEL_OPTIONS="options:remote_ip=A.B.C.D" + + +Patch Ports: + +==> ifcfg-patch-ovs-0 <== +DEVICE=patch-ovs-0 +ONBOOT=yes +DEVICETYPE=ovs +TYPE=OVSPatchPort +OVS_BRIDGE=ovsbridge0 +OVS_PATCH_PEER=patch-ovs-1 + +==> ifcfg-patch-ovs-1 <== +DEVICE=patch-ovs-1 +ONBOOT=yes +DEVICETYPE=ovs +TYPE=OVSPatchPort +OVS_BRIDGE=ovsbridge1 +OVS_PATCH_PEER=patch-ovs-0 + + Reporting Bugs --------------