salt.modules.rh_ip

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin execution modules »

# salt.modules.rh_ip

The networking module for RHEL/Fedora based distros

`salt.modules.rh_ip.` `apply_network_settings`(opts)

  Apply global network configuration.

  CLI Example:

      salt '*' ip.apply_network_settings

`salt.modules.rh_ip.` `build_bond`(iface, settings)

  Create a bond script in /etc/modprobe.d with the passed settings and load the bonding kernel module.

  CLI Example:

      salt '*' ip.build_bond bond0 mode=balance-alb

`salt.modules.rh_ip.` `build_interface`(iface, iface_type, enabled, settings)

  Build an interface script for a network interface.

  CLI Example:

      salt '*' ip.build_interface eth0 eth <settings>

`salt.modules.rh_ip.` `build_network_settings`(settings)

  Build the global network script.

  CLI Example:

      salt '*' ip.build_network_settings <settings>

`salt.modules.rh_ip.` `down`(iface, iface_type, opts)

  Shutdown a network interface

  CLI Example:

      salt '*' ip.down eth0

`salt.modules.rh_ip.` `get_bond`(iface)

  Return the content of a bond script

  CLI Example:

      salt '*' ip.get_bond bond0

`salt.modules.rh_ip.` `get_interface`(iface)

  Return the contents of an interface script

  CLI Example:

      salt '*' ip.get_interface eth0

`salt.modules.rh_ip.` `get_network_settings`()

  Return the contents of the global network script.

  CLI Example:

      salt '*' ip.get_network_settings

`salt.modules.rh_ip.` `up`(iface, iface_type, opts)

  Start up a network interface

  CLI Example:

      salt '*' ip.up eth0

## Comments

comments powered by Disqus

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin execution modules »