cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cloning MX Catch 22 - Can't update Addressing or DHCP

mrfixit
Conversationalist

Cloning MX Catch 22 - Can't update Addressing or DHCP

Hi, all, I just cloned a new small MX from an existing working small MX and I'm going through the pages creating the new network.

 

On the Addressing and VLAN page, when I update a VLAN, I get:

 

There were errors in saving this configuration:

  • The first IP address 10.154.99.1 is not in the subnet 10.188.99.0/24.
  • The last IP address 10.154.99.49 is not in the subnet 10.188.99.0/24.

 

So I go to the DHCP page and make an update there. Then I get:

 

There were errors in saving this configuration:

  • The first IP address 10.188.99.1 is not in the subnet 10.154.99.0/24.
  • The last IP address 10.188.99.49 is not in the subnet 10.154.99.0/24.

 

We have a bunch of VLANs and subsequently a bunch of DHCP servers.

 

I have tried changing DHCP Client addressing to: "Do not respond to DHCP requests", but still the same errors.

 

How can I change the second octet on all my entries in Addressing and DHCP without having to start from scratch?

 

Thank you.

1 REPLY 1
mrfixit
Conversationalist

Re: Cloning MX Catch 22 - Can't update Addressing or DHCP

So, I think I found the "why" in this problem. In the GUI, these functions are on two different pages: Addressing & VLANs and DHCP. But, in the API, these two sections are one function: updateNetworkVlan:

 

{
    "id": 99,
    "networkId": "xxxxxxxxxxxxx",
    "name": "xxxxxxxxxxxxx",
    "applianceIp": "10.154.99.1",
    "subnet": "10.154.99.0/24",
    "fixedIpAssignments": {},
    "reservedIpRanges": [
        {
            "start": "10.154.99.1",
            "end": "10.154.99.49",
            "comment": "Reserved Range"
        }
    ],
    "dnsNameservers": "x.x.x.x\nx.x.x.x.x",
    "dhcpHandling": "Run a DHCP server",
    "dhcpLeaseTime": "1 day",
    "dhcpBootOptionsEnabled": false,
    "dhcpOptions": []
}

 

Updating via API works as expected as I can change all of the second octets. But is there a way to change these addresses in the portal without getting an error? Thank you.

Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.