mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
OCPBUGS-60895 small correction in metallb docs
This commit is contained in:
committed by
openshift-cherrypick-robot
parent
05940c302e
commit
5309ff5fd8
@@ -35,14 +35,14 @@ $ oc patch network.operator cluster -p '{"spec":{"defaultNetwork":{"ovnKubernete
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ echo -e "net.ipv4.conf.bridge-net.forwarding = 1\nnet.ipv6.conf.bridge-net.forwarding = 1\nnet.ipv4.conf.bridge-net.rp_filter = 0\nnet.ipv6.conf.bridge-net.rp_filter = 0" | base64 -w0
|
||||
$ echo -e "net.ipv4.conf.bridge-net.forwarding = 1" | base64 -w0
|
||||
----
|
||||
+
|
||||
.Example output
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
bmV0LmlwdjQuY29uZi5icmlkZ2UtbmV0LmZvcndhcmRpbmcgPSAxCm5ldC5pcHY2LmNvbmYuYnJpZGdlLW5ldC5mb3J3YXJkaW5nID0gMQpuZXQuaXB2NC5jb25mLmJyaWRnZS1uZXQucnBfZmlsdGVyID0gMApuZXQuaXB2Ni5jb25mLmJyaWRnZS1uZXQucnBfZmlsdGVyID0gMAo=
|
||||
bmV0LmlwdjQuY29uZi5icmlkZ2UtbmV0LmZvcndhcmRpbmcgPSAxCg==
|
||||
----
|
||||
|
||||
.. Create the `MachineConfig` CR to enable IP forwarding for the specified secondary interface named `bridge-net`.
|
||||
@@ -64,7 +64,7 @@ spec:
|
||||
storage:
|
||||
files:
|
||||
- contents:
|
||||
source: data:text/plain;charset=utf-8;base64,bmV0LmlwdjQuY29uZi5icmlkZ2UtbmV0LmZvcndhcmRpbmcgPSAxCm5ldC5pcHY2LmNvbmYuYnJpZGdlLW5ldC5mb3J3YXJkaW5nID0gMQpuZXQuaXB2NC5jb25mLmJyaWRnZS1uZXQucnBfZmlsdGVyID0gMApuZXQuaXB2Ni5jb25mLmJyaWRnZS1uZXQucnBfZmlsdGVyID0gMAo= <2>
|
||||
source: data:text/plain;charset=utf-8;base64,bmV0LmlwdjQuY29uZi5icmlkZ2UtbmV0LmZvcndhcmRpbmcgPSAxCg== <2>
|
||||
verification: {}
|
||||
filesystem: root
|
||||
mode: 420
|
||||
@@ -114,18 +114,15 @@ $ cat /etc/sysctl.d/enable-global-forwarding.conf
|
||||
[source,terminal]
|
||||
----
|
||||
net.ipv4.conf.bridge-net.forwarding = 1
|
||||
net.ipv6.conf.bridge-net.forwarding = 1
|
||||
net.ipv4.conf.bridge-net.rp_filter = 0
|
||||
net.ipv6.conf.bridge-net.rp_filter = 0
|
||||
----
|
||||
+
|
||||
The output indicates that IPv4 and IPv6 packet forwarding is enabled on the `bridge-net` interface.
|
||||
The output indicates that IPv4 forwarding is enabled on the `bridge-net` interface.
|
||||
|
||||
[id="nw-enabling-ip-forwarding-globally_{context}"]
|
||||
== Enabling IP forwarding globally
|
||||
|
||||
* Enable IP forwarding globally by running the following command:
|
||||
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc patch network.operator cluster -p '{"spec":{"defaultNetwork":{"ovnKubernetesConfig":{"gatewayConfig":{"ipForwarding": "Global"}}}}}' --type=merge
|
||||
|
||||
Reference in New Issue
Block a user