Red Hat Enterprise Linux 5-a network interface bound in link aggregation mode cannot use the given DHCP address
Define a network interfaceBond0For example, and useIfcfg-bond0The configuration file is as follows:
Device = bond0
Bootproto = DHCP
Type = Bonding
Onboot = Yes
Userctl = No
Bonding_opts = "miimon = 100 mode = 4 lacp_rate = 1 xmit_hash_policy = 1"
Two Ethernet devices have been configured to belong to the binding set, and the network switch is set to use the link aggregation (lacp). However, the console displays a message indicating that the link is closed during startup, the IP address provided by DHCP is not accepted and usedBond0Interface.
Solution
This is a known vulnerability that has been fixed in rhes v5.6 but does not seem to be resolved yet. On rhes v6.0, the same configuration can run normally. Therefore, update it to the next major version.
What operations can be performed in v5.6 and later versions?
As an escape method, add the following lines/Etc/rc. LocalMedium:
IFUP bond0
After all other network interfaces are started, the system readsRC. LocalFile. Then, all the commands in the file will be executed. In this case, the link is created on the secondary Eni, And the DHCP client can successfully capture and apply the dynamic IP address.