pt_set_port
Sets low-level attributes on a live Packet Tracer port, applying only passed values for bandwidth, duplex, description, MAC, power, zone, Proxy ARP, or IKE without configure terminal.
Instructions
Sets low-level attributes of a port on a live device in PT.
Only applies the attributes passed explicitly (parameters with
sentinel defaults). Useful for adjustments the CLI doesn't expose easily, or
that you want to apply without entering configure terminal.
Parameters:
device: device name in PT (e.g. "R1")
interface: interface name (e.g. "GigabitEthernet0/0")
bandwidth: bandwidth in kbps (>0 to apply; 0 = don't change)
bandwidth_auto: 1 enables BW auto-negotiation, 0 disables it, -1 doesn't change
full_duplex: 1 full duplex, 0 half duplex, -1 doesn't change
duplex_auto: 1 enables duplex auto-negotiation, 0 disables, -1 doesn't change
description: descriptive text (empty = doesn't change)
mac_address: MAC in "AABB.CCDD.EEFF" format (empty = doesn't change)
power: 1 powers the port on, 0 off, -1 doesn't change
zone_member: name of the port's security zone, for Zone-Based Firewall (empty = doesn't change). Router interfaces only.
proxy_arp: 1 enables Proxy ARP, 0 disables it, -1 doesn't change. Turning it off is common hardening: with Proxy ARP the router answers ARPs that are not its own and leaks information about the topology.
ike: 1 enables IKE on the interface (IPsec VPN), 0 disables it, -1 doesn't change.
Returns which attributes were applied (those with a method available in
the port's API). If some setXxx does not exist on the device's model,
it is silently ignored and only what took effect is reported.
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": {
"device": "<device>",
"interface": "<interface>"
},
"name": "pt_set_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ike | No | ||
| power | No | ||
| device | Yes | ||
| bandwidth | No | ||
| interface | Yes | ||
| proxy_arp | No | ||
| description | No | ||
| duplex_auto | No | ||
| full_duplex | No | ||
| mac_address | No | ||
| zone_member | No | ||
| bandwidth_auto | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |