reset Ethernet bonding without rebooting
Don't make any changes to the config files which do not reflect the current state of the system, otherwise the network scripts get confused when they read the config to stop networking, but the config files don't match what's actually configured.
The correct way to change network config files is first stop networking (service network stop
), then make your config file changes, then start networking again (service network start
).
Stopping the network service will remove network access, so make sure you're using out-of-band access (ILO, DRAC, etc) and not SSH or other network-based access.
Related videos on Youtube
![Raza](https://i.stack.imgur.com/w0ltK.jpg?s=256&g=1)
Raza
Updated on September 18, 2022Comments
-
Raza almost 2 years
I have the following Ethernet bonding configuration:
old configuration:
bond0 eth0 eth1 bond1 eth2 eth3
new configuration :
bond0 eth0 eth2 bond1 eth1 eth3
I have made the change and restart
service network restart
butcat /proc/net/bonding/bond0
andcat /proc/net/bonding/bond1
still shows the old configuration. I had to reboot the system to be able to see the new configuration. Is there a way to do this without reboot?I am using RHEL6.5
-
Cristian Ciupitu almost 10 yearsYou haven't mentioned what distribution are you running.
-
-
EM0 over 4 yearsI have the same question for Ubuntu 18.04. There is no service named
network
there and it uses Netplan. I triednetplan apply
and restartingsystemd-networkd
but those are not enough to change parameters like mii-monitor-interval or mode.