Adding a Secondary Port to a VM
This operation enables you to add a secondary port to a VM.
Procedure
- Go to the CLI.
- Run the add virtual_machine secondary_port vm_id=? port_type=? port_id=? primary_port_id=? command.Table 7-8 describes the related parameters.Table 7-8 Parameters for adding a secondary port to a VM
Parameter
Description
Value
vm_id=?
VM ID.
To obtain the value, run the show virtual_machine general command without parameters.
port_type=?
Secondary port type.
The value can be eth or bond, where:
- eth: ETH port.
- bond: bond port.
port_id=?
Secondary port ID.
You can obtain the value by pressing Ctrl+A.
primary_port_id=?
Primary port ID.
You can obtain the value by pressing Ctrl+A.
- Confirm that all required parameters are correctly configured.
Example
Add a secondary physical port to a VM.
admin:/>add virtual_machine secondary_port vm_id=65537 port_type=eth port_id=CTE0.B.IOM1.P0
primary_port_id=131328
Command executed successfully.
Add a secondary bond port to a VM.
admin:/>add virtual_machine secondary_port vm_id=2 port_type=bond port_id=139009
primary_port_id=131328
Command executed successfully.