Operating System - Linux
1752809 Members
6148 Online
108789 Solutions
New Discussion юеВ

Re: configure bond interface

 
monu_1
Regular Advisor

configure bond interface

Hi all,

I want to increase speed, autoneg off, duplex full of bond interface. ethtool utility is not working for the same.
#ethtool bond0
bond0 does not appear to be an ethernet device
ethtool version 1.8

How can i configure bond interface?

Thanks,
MKS
4 REPLIES 4
Court Campbell
Honored Contributor

Re: configure bond interface

You might want to change the options on the actual interfaces that the bond is using, ie. eth0, eth1. Also, if you are running Gigabit ethernet you are going to want auto negotiation on.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Ivan Ferreira
Honored Contributor

Re: configure bond interface

Here you have a sample I use on my servers:

# more ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:1A:4B:4E:11:7C
ONBOOT=yes
TYPE=Ethernet
ETHTOOL_OPTS="speed 100 duplex full autoneg off"
MASTER=bond0
SLAVE=yes


# more ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
HWADDR=00:1A:4B:4E:11:7E
ONBOOT=yes
TYPE=Ethernet
ETHTOOL_OPTS="speed 100 duplex full autoneg off"
MASTER=bond0
SLAVE=yes

# more ifcfg-bond0
DEVICE=bond0
USERCTL=no
ONBOOT=yes
IPADDR=
NETMASK=255.255.255.0
NETWORK=
BROADCAST=

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: configure bond interface

Shalom,

Please post your modprobe.conf file.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Matti_Kurkela
Honored Contributor

Re: configure bond interface

The ethtool command works with _physical_ network interfaces, i.e. eth0...ethN. You must use eth* names with the ethtool command, and configure the speed/duplex settings of each physical interface independently, even though they may be bonded together at the upper level.

The "bond0" is an aggregation layer that might contain one or more physical interfaces. It intentionally does not replicate the physical layer configuration between the bonded NICs.

For example, you might be in a situation where your primary network interface is connected to a new gigabit switch, and the backup interface is still connected to an old ratty 100Mbit switch that requires forcing full duplex to work reliably. In this situation, forcing both physical NICs to be configured exactly the same would be a misfeature.

MK
MK