Add link
add_linkConnect two device ports with a cable in Cisco Packet Tracer; interface abbreviations are expanded and cable type can be inferred when omitted.
Instructions
Connect two device ports with a cable. Use Packet Tracer interface names; abbreviations are expanded (Gi0/0 -> GigabitEthernet0/0, Fa0/1 -> FastEthernet0/1, Se0/0/0 -> Serial0/0/0). Each port can belong to only one link, and the two ends must be on different devices. Onboard ports: 1841: FastEthernet0/0-1; 1941: GigabitEthernet0/0-1; 2811: FastEthernet0/0-1; 2901: GigabitEthernet0/0-1; 2911: GigabitEthernet0/0-2; ISR4321: GigabitEthernet0/0/0-1 (unverified); ISR4331: GigabitEthernet0/0/0-2 (unverified); 2950-24: FastEthernet0/1-24 (unverified); 2950T-24: FastEthernet0/1-24, GigabitEthernet0/1-2 (unverified); 2960-24TT: FastEthernet0/1-24, GigabitEthernet0/1-2; 3560-24PS: FastEthernet0/1-24, GigabitEthernet0/1-2 (unverified); 3650-24PS: GigabitEthernet1/0/1-24 (unverified); PC-PT: FastEthernet0; Server-PT: FastEthernet0; Laptop-PT: FastEthernet0 (unverified); Printer-PT: FastEthernet0 (unverified). Routers have no onboard serial ports and modules cannot be added yet, so connect routers over Ethernet. Omit cable to let the server infer it: straight between unlike devices (router/host <-> switch/hub), cross between like devices (switch-switch, router-router, router-PC, PC-PC), straight from an access point to a switch/hub and cross to a router/host, serial for Serial ports, console for Console/RS232 ports.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dev1": "<dev1>",
"port1": "<port1>",
"dev2": "<dev2>",
"port2": "<port2>"
},
"name": "add_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dev1 | Yes | Device name, e.g. R1, S1, PC1 (case-insensitive). | |
| dev2 | Yes | Device name, e.g. R1, S1, PC1 (case-insensitive). | |
| cable | No | Cable type. Omit it to let the server infer the right one (recommended). "auto" is passed to PT as-is and its behaviour is unverified. | |
| port1 | Yes | Interface name, e.g. GigabitEthernet0/0, FastEthernet0/1, FastEthernet0 (abbreviations such as Gi0/0 are expanded). | |
| port2 | Yes | Interface name, e.g. GigabitEthernet0/0, FastEthernet0/1, FastEthernet0 (abbreviations such as Gi0/0 are expanded). |