Ethernet interface management

Use the command-line interface to administer Ethernet interfaces.

Interface object

Help is available on the command-line interface for the Interface object. To get help, pass the Interface object as an argument to the help() function, as shown in the following example:
>>> help(deployer.ethernet.interface)

Interface Attributes

Interface object has the following attributes:
defaultipv6gateway
The default gateway associated with this interface. The string value must be an IPv6 address expressed in dotted decimal notation, as shown in the following example:
"192.168.1.1"."
defaultgateway
The default gateway associated with this interface. The string value must be an IP address expressed in dotted decimal notation, as shown in the following example:
"192.168.1.1"."
enabled
A Boolean flag that indicates whether the interface is enabled. This attribute can be set to enable or disable the interface.
id
The identifier assigned to the interface. The command-line interface has the following Ethernet interfaces with identifiers:
  • eth0
  • eth1
  • eth2
  • eth3
  • eth4
  • eth5
  • eth6
  • eth7
  • eth8
  • eth9
  • mgt0
  • mgt1
The identifiers are assigned by the Cloud Pak System and cannot be changed.
ipv6address
A string value that specifies the IPv6 address and subnet mask assigned to the interface. The string must be of the form "<dotted_decimal_address>/<subnet_mask_length>", as shown in the following example:
"192.168.1.0/24"."
ipaddress
A string value that specifies the IP address and subnet mask assigned to the interface. The string must be of the form "<dotted_decimal_address>/<subnet_mask_length>", as shown in the following example:
"192.168.1.0/24"."
mode
The Ethernet mode used by the interface. This attribute must have one of the following string values:
  • Auto
  • 10baseT-HD
  • 10baseT-FD
  • 100baseTx-HD
  • 100baseTx-FD
  • 1000baseTx-FD
mtu
The maximum transmission unit to be used with the interface, expressed as a string.

Interfaces object

The list of Ethernet interfaces on the IBM® Cloud Pak Software.

Help is available on the command-line interface for the Interfaces object. To get help, pass the Interfaces object as an argument to the help() function, as shown in the following example:
>>> help(deployer.ethernet.interfaces)

For more information about working with resource objects, see the Related concepts section.