Top
PRIMECLUSTER GLS for Windows User's Guide 4.3

5.2.5 Changing the MAC Address of a Virtual Adapter

MAC addresses of virtual adapters are generated automatically in GLS, but you can specify optional MAC addresses in cases where automatic generation causes an address to be duplicated.

This section describes how to change the MAC address of a virtual adapter. In the procedure below, the name of the virtual adapter is sha0 and the automatically generated MAC address is changed to the optional MAC address 02-01-01-01-01-01.

  1. Deactivate all virtual adapters by executing the stphanet command.

    > stphanet
    FJSVhanet: INFO: 00005: The ping monitor stopped.
    FJSVhanet: INFO: 00000: The command ended normally (sha0).
  2. Check the information defining the virtual adapter whose MAC address settings you want to change by executing the print subcommand of the hanetconfig command with the -d option.

    > hanetconfig print -d
     Name    VID  MAC Address
    +-------+----+-----------------------------------------------------------------+
     sha0    ---- Auto

    For more details on the hanetconfig command, refer to "6.2.2 hanetconfig."

  3. Check whether the ping monitor function is set.

    > hanetpoll print

    For more details on the hanetpoll command, refer to "6.2.4 hanetpoll."

    If ping monitoring is not set, step 4 is not applicable.

  4. If you have set the ping monitor function, delete the corresponding settings.

    Delete the physical adapters bundled in the virtual adapter for which to change the settings by executing the delete subcommand of the hanetpoll command.

    > hanetpoll delete -t "Local Area Connection 1"
    FJSVhanet: INFO: 00000: The command ended normally.
    > hanetpoll delete -t "Local Area Connection 2"
    FJSVhanet: INFO: 00000: The command ended normally.
  5. Delete the information defining the virtual adapter whose MAC address settings you want to change by executing the delete subcommand of the hanetconfig command.

    > hanetconfig delete -n sha0
  6. Reset the virtual adapter with the new MAC address by executing the create subcommand of the hanetconfig command.

    > hanetconfig create -n sha0 -t "Local Area Connection 1","Local Area Connection 2" -a 02-01-01-01-01-01 
  7. Check that the changes were successful by executing the print subcommand of the hanetconfig command with the -d option.

    > hanetconfig print -d
     Name    VID  MAC Address
    +-------+----+-----------------------------------------------------------------+
     sha0    ---- 02-01-01-01-01-01

See

To ensure that GLS is set and functions correctly, perform the following tasks after changing the MAC address of a virtual adapter: