Redhat

From UVOO Tech Wiki
Jump to navigation Jump to search

Network Teams

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": {}}
}

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-vlan_on_bond_and_bridge_using_ip_commands

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

Prep repo host

yum install createrepo nginx
/usr/share/nginx/html/rhel/7Server/os/
createrepo /usr/share/nginx/html/rhel/7Server/os/

/etc/yum.repos.d/my.repo

[mytestrepoos]
name=MyRepo $releasever - OS
# $releasever=7Server
baseurl=http://repo.example.com:80/rhel/$releasever/os/
enabled=1
gpgcheck=1
# curl -O http://repo.example.com:80/rhel/7Server/os/RPM-GPG-KEY-redhat-release && rpm --import RPM-GPG-KEY-redhat-release