Meraki MR does not accept my static Lan IP with API

Solved
david11
Conversationalist

Meraki MR does not accept my static Lan IP with API

Hello everybody

 

I am writing a script that sets the LAN-IPs for all the AccessPoints.

My problem is that the MRs that are in a network change their LAN-IP-Address to the static one but the MRs that are in no network and are still in the inventory do not apply the static IP-Address.

Is this normal or is there a problem with my api call? 

That is my payload with IPs as x 🙂

payload = {
"wan1": {
"vlan": None,
"staticGatewayIp": "x.x.x.x",
"staticIp": x.x.x.x,
"staticSubnetMask": "x.x.x.x",
"usingStaticIp": True,
"staticDns": ["x.x.x.x"]
}
}

 

1 Accepted Solution
RaphaelL
Kind of a big deal
Kind of a big deal

To set a static IP on a device it has to be in a network. 

 

This isn't the subject of your post , but why are you using static IPs. More trouble and no gain.

View solution in original post

3 Replies 3
RaphaelL
Kind of a big deal
Kind of a big deal

To set a static IP on a device it has to be in a network. 

 

This isn't the subject of your post , but why are you using static IPs. More trouble and no gain.

PhilipDAth
Kind of a big deal
Kind of a big deal

+1.  Use DHCP for APs.

david11
Conversationalist

Thanks for your comments and helping me.

 

@RaphaelL it is a requirement. I am just implementing it. 🙂

Get notified when there are additional replies to this discussion.