Get error ”/etc/sysconfig/network-scripts/ifdown-eth: line 69: echo: write error: Invalid argument“ when shutting down bonding device on RHEL6
Issue
-
When we shutdown a bonding network interface, it may report an error message on the screen and
arp_ip_targetis not removed for the bonding interface. -
For example:
# service network stop
...
Shutting down interface bond0: /etc/sysconfig/network-scripts/ifdown-eth: line 69: echo: write error: Invalid argument [ OK ]
Shutting down loopback interface: [ OK ]
# cat /sys/class/net/bond0/bonding/arp_ip_target
<arp ip target>
# cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
...
BONDING_OPTS="mode=1 arp_interval=100 arp_ip_target=<ip arp target>"
Environment
- Red Hat Enterprise Linux 6 (RHEL)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
