addLink
Connect two network devices by cabling their free interfaces. Choose straight, cross, fiber, serial, or auto cable type after verifying interfaces are unused with getNetwork.
Instructions
Connect two devices with a cable. Both interfaces must be free (in_use=false in getNetwork output). If unsure, call getNetwork first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| linkType | Yes | Cable type. Use 'straight' for most LAN, 'cross' for PC-PC, 'serial' for WAN. | |
| device1Name | Yes | ||
| device2Name | Yes | ||
| device1Interface | Yes | Free interface on device 1. | |
| device2Interface | Yes | Free interface on device 2. |