pt_set_pc_ipv4
Configure a PC's static IPv4 address, subnet mask, and gateway in Packet Tracer to set up or correct host network connectivity.
Instructions
Configure a PC's static IPv4 address, mask and gateway. / 配置PC静态地址、掩码、网关。
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>",
"address": "<address>",
"netmask": "<netmask>",
"gateway": "<gateway>"
},
"name": "pt_set_pc_ipv4"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Host port; default FastEthernet0. / PC接口。 | |
| device | Yes | PC name. / PC名称。 | |
| address | Yes | IPv4 address. / IPv4地址。 | |
| gateway | Yes | IPv4 gateway in the same subnet. / 同网段网关。 | |
| netmask | Yes | Dotted subnet mask. / 子网掩码。 |