CentOS7 64-bit system network card aggregation model problem.

Issues related to configuring your network
Post Reply
myheartbeyond
Posts: 1
Joined: 2018/06/16 10:32:12

CentOS7 64-bit system network card aggregation model problem.

Post by myheartbeyond » 2018/06/16 11:10:08

I set up the interface aggregation as follows:

#vi ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
BONDING_OPTS="mode=balance-rr"
USERCTL=no
NAME=bond0
ONBOOT=yes
TYPE=bond
1.jpg
1.jpg (65.95 KiB) Viewed 134 times
#vi ifcfg-bond0.102
DEVICE=bond0.102
BOOTPROTO=static
IPADDR=10.20.2.3
NETMASK=255.255.255.0
GATEWAY=10.20.2.254
NAME=bond0.102
ONBOOT=yes
VLAN=yes

#vi ifcfg-enp4s0f0
TYPE=Ethernet
NAME=enp4s0f0
ONBOOT=yes
MASTER=bond0
DEVICE=enp4s0f0
SLAVE=yes
2.jpg
2.jpg (60.21 KiB) Viewed 134 times
#vi ifcfg-enp4s0f1
TYPE=Ethernet
NAME=enp4s0f0
ONBOOT=yes
MASTER=bond0
DEVICE=enp4s0f0
SLAVE=yes

When I started the network card using the command "service network start" , there was no problem.
However, when I execute the command "service network restart", the network card cannot start successfully.
I execute the command "systemctl status network.service" to see the details below:
3.jpg
3.jpg (206.33 KiB) Viewed 134 times
Because centos7 64-bit system is used, so also try the NMCLI method.
Using the NMCLI to create a TEAM interface, you can PING the gateway, but not other devices in the same segment.

It's not clear whether it's the system itself or the configuration, after all, the same configuration, no problems found on other devices.

User avatar
TrevorH
Forum Moderator
Posts: 23042
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS7 64-bit system network card aggregation model problem.

Post by TrevorH » 2018/06/16 11:47:54

It appears to be complaining about an interface with a name that starts 'enp5' but because you didn't use the -l switch to systemctl status, the output was truncated and it is impossible to tell which one.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

hunter86_bg
Posts: 1176
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: CentOS7 64-bit system network card aggregation model problem.

Post by hunter86_bg » 2018/06/18 04:10:50

The preffered method is to use NetworkManager.service .
If you are unfamiliar with the 'nmtui' and 'nmcli' you can always set the configuration files and then just restart the NetworkManager.service .
Also a very nice command is

Code: Select all

 nmcli con show
.

Post Reply