generar_config_router
Generates Cisco IOS router-on-a-stick configuration with 802.1Q subinterfaces per VLAN and DHCP pools from interface and subnet inputs, eliminating manual command assembly.
Instructions
Genera la configuración router-on-a-stick: subinterfaces 802.1Q por VLAN y DHCP.
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": {
"interfaz": "<interfaz>",
"subredes": "<subredes>"
},
"name": "generar_config_router"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dns | No | Servidor DNS para los clientes DHCP | 8.8.8.8 |
| con_dhcp | No | ||
| interfaz | Yes | Interfaz hacia el switch, p. ej. Gi0/0 | |
| subredes | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pasos | Yes | ||
| config_completa | Yes |