configurar_pc
Set IP, subnet mask, gateway, and DNS for PC, Laptop, or Server endpoints in Packet Tracer, or enable DHCP to assign address automatically.
Instructions
Configura la IP de una PC, Laptop o Servidor en Packet Tracer. Usa esta función en lugar de configurar_dispositivo() para endpoints.
nombre: nombre del dispositivo (debe ser PC-PT, Laptop-PT o Server-PT)
ip: dirección IP, ej: '192.168.10.2'
mascara: máscara de subred, ej: '255.255.255.0'
gateway: puerta de enlace, ej: '192.168.10.1'
dns: servidor DNS (default: '8.8.8.8')
dhcp: True para obtener IP por DHCP (ignora ip/mascara/gateway)
Ejemplo: configurar_pc('PC1', '192.168.10.2', '255.255.255.0', '192.168.10.1')
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": {
"nombre": "<nombre>",
"ip": "<ip>",
"mascara": "<mascara>",
"gateway": "<gateway>"
},
"name": "configurar_pc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | ||
| dns | No | 8.8.8.8 | |
| dhcp | No | ||
| nombre | Yes | ||
| gateway | Yes | ||
| mascara | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |