Under Construction

hmc lsnet

The command “hmc lsnet” can be used to display the network settings of the HMC or BMC. The DNS client configuration and the preconfigured DHCP network areas can also be listed.

   hmc lsnet [-o <format>] [{-f|-j|-y}] [-F <fields>] [-s <selections>] [-6] [-b] [-D] [-v] <hmc> [<interface> ...]
   -6 : display IPv6 instead of IPv4 data
   -b : display the BMC network configuration
   -D : display the preconfigured DHCP IP ranges
   -n : display name server client configuration

By default, the IPv4 network configuration of a specified HMC is displayed:

$ hmc lsnet hmc01
INTER  IPV4           IPV4             IPV4  DHCP    DHCP                         JUMBO          
FACE   ADDR           NETMASK          DHCP  SERVER  SERVERRANGE                  FRAME  SPEED  DUPLEX  TSO
eth0   172.16.131.21  255.255.255.0    off   off     -                            off    auto   auto    -
eth1   10.0.0.1       255.255.255.0    off   on      10.0.0.2,10.0.0.254          off    auto   auto    -
eth2   10.127.255.1   255.255.255.0    off   on      10.127.255.2,10.127.255.254  off    auto   auto    -
eth3   0.0.0.0        255.255.255.0    off   off     -                            off    auto   auto    -
eth4   0.0.0.0        255.255.255.255  off   off     -                            off    auto   auto    -
eth5   0.0.0.0        255.255.255.255  off   off     -                            off    auto   auto    -
$

If the option “-6” is used, the IPv6 configuration is shown instead.

For HMCs with BMC (7063-CR1 and 7063-CR2), the “-b” (BMC) option can be used to display the BMC’s network configuration:

$ hmc lsnet -b hmc01
MODE    IPV4ADDR       NETWORKMASK      GATEWAY       IPV4DHCP
ded     0.0.0.0        255.255.255.255  172.16.131.1  on
shared  172.16.131.26  255.255.255.0    172.16.131.1  off
$

IBM has pre-configured a number of network areas to use DHCP. These can be displayed using the “-D” (DHCP) option:

$ hmc lsnet -D hmc01
SERVER         NETMASK        START_RANGE    END_RANGE
192.168.128.1  255.255.128.0  192.168.128.2  192.168.255.254
172.16.0.1     255.255.0.0    172.16.0.3     172.16.255.254
172.17.0.2     255.255.0.0    172.17.0.3     172.17.255.254
10.0.0.1       255.255.255.0  10.0.0.2       10.0.0.254
10.0.128.1     255.255.240.0  10.0.128.2     10.0.143.254
10.0.255.1     255.255.255.0  10.0.255.2     10.0.255.254
10.1.0.1       255.255.240.0  10.1.0.2       10.1.15.254
10.1.255.1     255.255.255.0  10.1.255.2     10.1.255.254
10.127.0.1     255.255.240.0  10.127.0.2     10.127.15.254
10.127.255.1   255.255.255.0  10.127.255.2   10.127.255.254
10.128.0.1     255.255.240.0  10.128.0.2     10.128.15.254
10.128.128.1   255.255.255.0  10.128.128.2   10.128.128.254
10.128.240.1   255.255.240.0  10.128.240.2   10.128.255.254
10.254.0.1     255.255.255.0  10.254.0.2     10.254.0.254
10.254.240.1   255.255.240.0  10.254.240.2   10.254.255.254
10.255.0.1     255.255.255.0  10.255.0.2     10.255.0.254
10.255.128.1   255.255.240.0  10.255.128.2   10.255.143.254
10.255.255.1   255.255.255.0  10.255.255.2   10.255.255.254
$

To display the current DNS client configuration, the option “-n” (name service) can be used:

$ hmc lsnet -n hmc01
HOSTNAME  DOMAIN          DOMAINSUFFIX    NAMESERVER
hmc01    powercampus.de  powercampus.de  172.89.65.19,172.89.12.48,172.93.173.84
$

The network configuration can be changed with the command “hmc chnet”.