I am working in the Enterprise DevNet.
I am attempting to use this endpoint to create an appliance static route.
I have 1 VLAN in the MX.
id : 1
networkId : L_646829496481116086
name : Default
applianceIp : 192.168.128.1
subnet : 192.168.128.0/24
fixedIpAssignments :
reservedIpRanges : {}
dnsNameservers : upstream_dns
dhcpHandling : Run a DHCP server
dhcpLeaseTime : 1 day
dhcpBootOptionsEnabled : False
dhcpOptions : {}
interfaceId : 646829496481737561
ipv6 : @{enabled=False}
mandatoryDhcp : @{enabled=False}
I have 2 interfaces in the switch:
interfaceId : 646829496481104683
name : Bob
subnet : 192.168.128.0/24
interfaceIp : 192.168.128.1
multicastRouting : disabled
vlanId : 1
defaultGateway : 192.168.128.1
switchName : SW-F02
serial : Q2GW-2CPC-JCYZ
interfaceId : 646829496481104684
name : Joe
subnet : 192.168.132.0/24
interfaceIp : 192.168.132.1
multicastRouting : disabled
vlanId : 132
switchName : SW-F02
serial : Q2GW-2CPC-JCYZ
When I try to pass the following JSON to the this endpoint I get an invalid next hop error. Configuring this Static Route in the dashboard works.
{
"gatewayIp": "192.168.132.1",
"subnet": "192.168.132.0/24",
"name": "VLAN132"
}
Error message is:
"The static LAN route \u0022VLAN132\u0022 has an invalid next hop IP. The IP address 192.168.132.1 is not on a configured subnet."
Check out my Meraki API PowerShell Module.
Powershell Gallary: https://www.powershellgallery.com/packages?q=Meraki-API-V1
Project Site: https://github.com/Clifra-Jones/Meraki-API-V1