connect
Cable two free ports on Packet Tracer devices, letting pktctl auto-pick serial, straight, or cross cable, or force a specific type.
Instructions
Cable two ports together. Both ports must exist and be free. With the default auto cable pktctl picks serial, straight or cross the way the CCNA rules do; pass cable to force fiber, rollover, console, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cable | No | Cable to use. `auto` picks serial for serial ports, straight between a host or router and a switch, and cross between devices of the same layer. | |
| port_a | Yes | Port on the first device, exactly as `list_ports` shows it, for example `GigabitEthernet0/0`. | |
| port_b | Yes | Port on the second device. | |
| device_a | Yes | First device name. | |
| device_b | Yes | Second device name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| cable | Yes |