Under Construction

hmc chnet

The command “hmc chnet” can be used to configure the configuration of an HMC network interface. For 7063 HMCs, the BMC network interface can also be configured using the option “-b” (BMC):

hmc chnet [-b] [-D] [-j] [-v] <hmc> [<interface> [<IP> [<netmask>]]] [<attributes> ...]
   -b : configure BMC interface
   -j : enable jumbo frames

To configure a static IPv4 address on a network interface, one of the following variants can be used:

$ hmc chnet hmc02 eth3 172.16.199.69 255.255.255.0
$ # or
$ hmc chnet hmc02 eth3 172.16.199.69 netmask=255.255.255.0
$ # or
$ hmc chnet hmc02 eth3 172.16.199.69 ipv4netmask=255.255.255.0
$ # or
$ hmc chnet hmc02 eth3 addr=172.16.199.69 ipv4netmask=255.255.255.0
$ # or
$ hmc chnet hmc02 interface=eth3 addr=172.16.199.69 ipv4netmask=255.255.255.0
$

The change may take a minute or two.

If an HMC is to act as a DHCP server on one of the interfaces, it is easiest to use one of the predefined ranges of IP addresses (“hmc lsnet -D”). Only the IP address for the HMC itself and the argument dpcpserver=on are then specified. No netmask may be specified:

$ hmc chnet hmc02 eth3 172.16.0.1 dhcpserver=on
$ # or
$ hmc chnet hmc02 eth3 addr=172.16.0.1 dhcpserver=on
$ # or
$ hmc chnet hmc02 interface=eth3 addr=172.16.0.1 dhcpserver=on
$

If an interface is to be deconfigured, the special value “none” must be used instead of an IP address:

$ hmc chnet hmc02 eth3 none
$ # or
$ hmc chnet hmc02 eth3 addr=none
$ # or
$ hmc chnet hmc02 interface=eth3 addr=none
$

The following attributes are supported for configuring an HMC network interface:

   interface - the name of the network interface to change
   addr|ipv4addr - the IPv4 address to set or none to clear the static IP address set
   ipv6addr - the IPv6 address to set or none to clear the static IP address set
   netmask|ipv4netmask - the IPv4 netmask to use
   ipv6auto - enable (on) or disable (off) IPv6 autoconfiguration
   ipv6privacy - enable (on) or disable (off) usage of privacy extensions
   dhcp|ipv4dhcp - enable (on) or disable (off) obtaining an IPv4 address via DHCP
   ipv6dhcp - enable (on) or disable (off) obtaining an IPv6 address via DHCP
   lparcomm - DEPRECATED, enable (on) or disable (off) partition communication
   tso - enable (on) or disable (off) TCP segmentation offload (TSO)
   speed - set the speed to one of the following values: auto, 10, 100, 1000
   duplex - set duplex to on of: auto, half or full
   jumboframe - enable (on) or disable (off) jumbo frames

For HMCs of type 7063 with integrated BMC, the BMC network interfaces can be configured via the HMC. The option “-b” (BMC) must be used for this.

For example, to set the IP address of the BMC to hmc02, one of the following commands can be used:

$ hmc chnet -b hmc02 192.168.100.37 255.255.255.0 gateway=192.168.100.1
$ # or
$ hmc chnet -b hmc02 addr=192.168.100.37 netmask=255.255.255.0 gateway=192.168.100.1
$

The following attributes are supported for configuring BMC network interfaces:

   addr|ipv4addr - the IPv4 address to set or none to clear the static IP address set
   netmask|ipv4netmask - the IPv4 netmask to use
   dhcp|ipv4dhcp - enable (on) or disable (off) obtaining an IPv4 address via DHCP
   mode - the mode of the interface (ded, shared or failover)
   vlanid - the VLAN-ID to use
   vlanpriority - the priority to use

In addition to configuring IP addresses, the command also supports setting a host name, setting the local domain, and setting a default gateway.

For example, to set the hostname and local domain, the following command can be used:

$ hmc chnet hmc01 hostname=hmc03 domain=example.com
$

Setting a default gateway on the eth0 interface can be done with the following command:

$ hmc chnet hmc01 eth0 gateway=172.16.57.1
$ # or
$ hmc chnet hmc01 interface=eth0 gateway=172.16.57.1
$