Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##Teaming##
- **Host System:**
- # virt-manager
- create 3 NIC using in H/W (eth0, eth1, eth2)
- # virsh start cetnos7 --console
- Login to guest os
- Username:
- Password:
- # yum install -y teamd
- change ifcfg files
- # cd /etc/sysconfig/network-scripts/
- # vi ifcfg-team0
- ```text
- DEVICE=team0
- DEVICETYPE=Team
- ONBOOT=yes
- BOOTPROTO=none
- IPADDR=172.25.25.3
- PREFIX=24
- TEAM_CONFIG='{"runner": {"name": "activebackup"}, "link_watch": {"name": "ethtool"}}'
- ```
- Teaming Modes:
- - activebackup
- - broadcast
- - roundrobin
- - loadbalance
- This configuration is for master
- Now we have to create slaves
- and need to connect those slaves to master
- # ifconfig -a
- to check number of availabe interfaces
- <pre>
- eth0: flags=4163 UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
- inet 192.168.122.72 netmask 255.255.255.0 broadcast 192.168.122.255
- inet6 fe80::5054:ff:fed3:a4da prefixlen 64 scopeid 0x20<link>
- ether 52:54:00:d3:a4:da txqueuelen 1000 (Ethernet)
- RX packets 336 bytes 31053 (30.3 KiB)
- RX errors 0 dropped 7 overruns 0 frame 0
- TX packets 176 bytes 17284 (16.8 KiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- eth1: flags=4098 BROADCAST,MULTICAST> mtu 1500
- ether 52:54:00:6a:87:c5 txqueuelen 1000 (Ethernet)
- RX packets 0 bytes 0 (0.0 B)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 0 bytes 0 (0.0 B)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- eth2: flags=4098 BROADCAST,MULTICAST> mtu 1500
- ether 52:54:00:44:7e:92 txqueuelen 1000 (Ethernet)
- RX packets 0 bytes 0 (0.0 B)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 0 bytes 0 (0.0 B)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- lo: flags=73 UP,LOOPBACK,RUNNING> mtu 65536
- inet 127.0.0.1 netmask 255.0.0.0
- inet6 ::1 prefixlen 128 scopeid 0x10<host>
- loop txqueuelen 1 (Local Loopback)
- RX packets 6 bytes 416 (416.0 B)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 6 bytes 416 (416.0 B)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- </pre>
- **Two slaves ports**
- # vi ifcfg-slave1
- ```text
- DEVICE=eth1
- HWADDR=52:54:00:6a:87:c5
- DEVICETYPE=TeamPort
- ONBOOT=yes
- TEAM_MASTER=team0
- ```
- DEVICE = one of the NIC
- HWADDR= MAC addresss of the interface
- # vi ifcfg-slave2
- ```text
- DEVICE=eth2
- HWADDR=52:54:00:44:7e:92
- DEVICETYPE=TeamPort
- ONBOOT=yes
- TEAM_MASTER=team0
- ```
- # ifup team0
- # ip link show
- <pre>
- 1: lo: LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT qlen 1
- link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
- 2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000
- link/ether 52:54:00:d3:a4:da brd ff:ff:ff:ff:ff:ff
- 3: eth1: BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master team0 state UP mode DEFAULT qlen 1000
- link/ether 52:54:00:6a:87:c5 brd ff:ff:ff:ff:ff:ff
- 4: eth2: BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master team0 state UP mode DEFAULT qlen 1000
- link/ether 52:54:00:6a:87:c5 brd ff:ff:ff:ff:ff:ff
- 5: team0: BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT qlen 1000
- link/ether 52:54:00:6a:87:c5 brd ff:ff:ff:ff:ff:ff
- </pre>
- # ping 172.25.25.3
- # teamdctl team0 state
- <pre>
- setup:
- runner: activebackup
- ports:
- eth2
- link watches:
- link summary: up
- instance[link_watch_0]:
- name: ethtool
- link: up
- down count: 0
- eth1
- link watches:
- link summary: up
- instance[link_watch_0]:
- name: ethtool
- link: up
- down count: 0
- runner:
- active port: eth1
- </pre>
- **Problems I faced in teaming:**
- - I usually do teaming using nmcli but i was geting an Error ""NetworkManager plugin for 'team' unavailable". I googled about it and found it's a bug.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement