• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

ifenslave Command Examples in Linux

by admin

ifenslave is a utility for attaching and detaching slave network devices to a bonding device. Bonding is putting multiple physical Ethernet devices into a single logical one, what is often termed as Link aggregation/Trunking/Link bundling. You can attach eth0, for example, to a bonding device bond0 by:

# ifenslave bond0 eth0

The ifenslave utility belongs to the iputils package.

1. To show information of all the inerfaces:

# ifenslave -a
# ifenslave --all-interfaces 

2. To change the active slave:

# ifenslave -c bond0 eth1
# ifenslave --change-active bond0 eth1 

3. To remove the slave interface from the bonding device:

# ifenslave -d eth1
# ifenslave --detach bond0 eth1

4. To show master interface info:

# ifenslave bond0

5. To set the bond device down and automatically release all the slaves:

# ifenslave bond1 down 

6. To get the help for the ifenslave:

# ifenslave -h
# ifenslave --help 

7. To get the usage info:

# ifenslave -u
# ifenslave --usage 

8. To set to verbose mode:

# ifenslave -v
# ifenslave --verbose

9. To get the version info:

# ifenslave -V
# ifenslave --version

Filed Under: Linux

Some more articles you might also be interested in …

  1. Images preview with ngx_http_image_filter_module
  2. isosize Command Examples in Linux
  3. “yum update” fails with “[package version 1] is a duplicate with [package version 2]”
  4. crontab error : “You (user) are not allowed to access to (crontab) because of pam configuration.”
  5. CentOS / RHEL 6,7 : How to enable or disable XDMCP service (GDM)
  6. gnome-screenshot Command Examples in Linux
  7. rsync: command not found
  8. bmon Command Examples in Linux
  9. ulimit: command not found
  10. locale Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • nixos-rebuild Command Examples in Linux
  • nixos-option: Command Examples in Linux
  • nixos-container : Command Examples in Linux
  • nitrogen Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright