Difference between revisions of "Redhat"
Jump to navigation
Jump to search
Line 58: | Line 58: | ||
ZONE=internal | ZONE=internal | ||
NM_CONTROLLED=no | NM_CONTROLLED=no | ||
+ | ``` | ||
+ | |||
+ | Handy | ||
+ | ``` | ||
+ | To use VLANs over bonds and bridges, proceed as follows: | ||
+ | Add a bond device as root: | ||
+ | # ip link add bond0 type bond | ||
+ | # ip link set bond0 type bond miimon 100 mode active-backup | ||
+ | # ip link set em1 down | ||
+ | # ip link set em1 master bond0 | ||
+ | # ip link set em2 down | ||
+ | # ip link set em2 master bond0 | ||
+ | # ip link set bond0 up | ||
+ | Set VLAN on the bond device: | ||
+ | # ip link add link bond0 name bond0.2 type vlan id 2 | ||
+ | # ip link set bond0.2 up | ||
+ | Add the bridge device and attach VLAN to it: | ||
+ | # ip link add br0 type bridge | ||
+ | # ip link set bond0.2 master br0 | ||
+ | # ip link set br0 up | ||
``` | ``` |
Revision as of 22:07, 1 May 2020
Network Teams
- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-comparison_of_network_teaming_to_bonding
- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-configure_teamd_runners#sec-Configure_the_LACP_Runner
- https://access.redhat.com/solutions/1248793 - network team with vlans
- https://github.com/jpirko/libteam
dnf install teamd
using nmcli
dnf install NetworkManager-team systemctl restart NetworkManager.service
teamd.conf
{ "device": "team0", "runner": { "name": "lacp", "active": true, "fast_rate": true, "tx_hash": ["eth", "ipv4", "ipv6"] }, "link_watch": {"name": "ethtool"}, "ports": {"em1": {}, "em2": {}} }
Redhat 7
UUID="xxxxxx-dcce-48cc-b558-78c1e328f8c2" NAME="em1" DEVICE="em1" BOOTPROTO="none" ONBOOT="yes" MASTER="bond0" SLAVE="yes" TYPE="Ethernet" NM_CONTROLLED=no ZONE=internal . DEVICE="bond0" BOOTPROTO="static" IPADDR=10.x.x.x GATEWAY=10.x.x.1 NETMASK=255.255.255.0 ONBOOT="yes" DNS1="10.x.x.x" DNS2="10.x.x.x" TYPE="Ethernet" DEFROUTE=yes BONDING_OPTS="mode=4 lacp_rate=1 miimon=100" ZONE=internal NM_CONTROLLED=no
Handy
To use VLANs over bonds and bridges, proceed as follows: Add a bond device as root: # ip link add bond0 type bond # ip link set bond0 type bond miimon 100 mode active-backup # ip link set em1 down # ip link set em1 master bond0 # ip link set em2 down # ip link set em2 master bond0 # ip link set bond0 up Set VLAN on the bond device: # ip link add link bond0 name bond0.2 type vlan id 2 # ip link set bond0.2 up Add the bridge device and attach VLAN to it: # ip link add br0 type bridge # ip link set bond0.2 master br0 # ip link set br0 up