This section describes how to change the VLAN ID of a virtual adapter. In the procedure below, the name of the virtual adapter is sha0 and the VLAN ID is changed from 10 to 20.
Deactivate all virtual adapters by executing the stphanet command.
> stphanet FJSVhanet: INFO: 00005: The ping monitoring stopped. FJSVhanet: INFO: 00000: The command ended normally. |
Check the information defining the virtual adapter whose VLAN ID you want to change by executing the print subcommand of the hanetconfig command.
> hanetconfig print
Name VID Adapters
+--------+----+----------------------------------------------------------------+
sha0 10 Local Area Connection 1,Local Area Connection 2 |
For more details on the hanetconfig command, refer to "6.2.2 hanetconfig."
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.
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. |
Delete the virtual adapter whose VLAN ID you want to change by executing the delete subcommand of the hanetconfig command.
> hanetconfig delete -n sha0 |
Reset the virtual adapter with the new VLAN ID (20) by executing the create subcommand of the hanetconfig command.
> hanetconfig create -n sha0 -v 20 -t "Local Area Connection 1","Local Area Connection 2" |
Check the changes by executing the print subcommand of the hanetconfig command.
> hanetconfig print
Name VID Adapters
+-------+----+-----------------------------------------------------------------+
sha0 20 Local Area Connection 1,Local Area Connection 2 |
See
To ensure that GLS is set and functions correctly, perform the following tasks after changing the VLAN ID of a virtual adapter:
Set the ping monitor function.
For more details, refer to "5.3.2 Setting Ping Monitoring."
Set IP addresses.
For more details, refer to "3.4.5 Follow-up Tasks: IP Address Settings."
Activate virtual adapters.
For more details, refer to "5.1.2 Activating and Deactivating Virtual Adapters."
Start the ping monitor function.
For more details, refer to "5.3.3 Starting and Stopping the Ping Monitor Function."