Bookmark this page

Enabling and Disabling Interfaces

Objectives

After completing this section, you should be able to use Ansible to enable and disable interfaces on a network device.

Selecting an Interface Module

What are the differences between the *os_interface and *os_l3_interface modules?

  • The *os_l3_interface module:

    • Manages IPv4 and IPv6 layer 3 addresses; it maps layer 3 addresses to interfaces.

    • Can map IPv4 or IPv6 addresses to interfaces explicitly; it can also map both IPv4 and IPv6 explicitly by field name at the same time.

    • Supports the aggregate argument, which takes as an argument a dictionary with name and layer 3 address fields.

  • The *os_interface module is used for managing all other aspects of network interfaces, including descriptions and enabling and disabling interfaces.

Revision: do457-2.5-4693601