Sample Header Ad - 728x90

How to make NIC team come up on boot in RHEL 7

2 votes
1 answer
15757 views
To configure networking on RHEL 7, I created a JSON file for teaming, then ran these commands: ip link set down eno1 ip link set down eno2 ip link set down eno3 ip link set down eno4 teamd -g -f lacp.conf -d Also I created ifcfg files for VLANs and ran this command: systemctl restart network After that, everything works more or less as expected, but the problem is that this is not persist between reboots, so I have to do this every time after start-up. How can I fix this problem? I expect this commands to be executed just once, and then I want this settings to persist between reboots. ========================================================== I've tried to apply suggested fix and these questions appeared: 1. I've created ifcfg-team0 file, and content is: DEVICE=team0 DEVICETYPE=Team ONBOOT=yes BOOTPROTO=none TEAM_CONFIG='{"device":"team0", "runner": { "name": "lacp"... Should I remove "device" section, so change to TEAMCONFIG='{"runner": { "name": "lacp"... because I already have DEVICE=team0? Or it's ok to mention it twice? 2. My ifcfg-eno1 file contain: HWADDR=... TYPE=Ethernet BOOTPROTO=dhcp DEFROUTE=yes PEERDNS=yes IPV4_FAILURE_FATAL=no IPV6_INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no NAME=eno1 UUID=e656... ONBOOT=no Should I really remove almost everything from it? In particular am I really should remove UUID, NAME sections and substitute this file to what documentations suggests? : DEVICE=eth1 HWADDR=D4:85:64:01:46:9E DEVICETYPE=TeamPort ONBOOT=yes TEAM_MASTER=team0 TEAM_PORT_CONFIG='{"prio": 100}' Or I should keep both files? Just name them for example ifcfg-eno1 and ifcfg-eno1Team 3. When executing this: systemctl start network.service I receive such error: Failed to start LSB: Bring up/down networking. Unit network.service entered failed state.
Asked by Oleg Vazhnev (459 rep)
Oct 13, 2014, 08:03 PM
Last activity: Oct 20, 2014, 10:25 AM