Get error ”/etc/sysconfig/network-scripts/ifdown-eth: line 69: echo: write error: Invalid argument“ when shutting down bonding device on RHEL6

Solution Verified - Updated -

Issue

  • When we shutdown a bonding network interface, it may report an error message on the screen and arp_ip_target is 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content