Create A Layer 3 Interface For A Switch Stack

POST {{baseUrl}}/networks/:networkId/switch/stacks/:switchStackId/routing/interfaces

Create a layer 3 interface for a switch stack #### Body Parameters Parameter|Type|Description :-------------: |:-------------: |:-------------: name| string| A friendly name or description for the interface or VLAN. subnet| string| The network that this routed interface is on, in CIDR notation (ex. 10.1.1.0/24). interfaceIp| string| The IP address this switch stack will use for layer 3 routing on this VLAN or subnet. This cannot be the same as the switch's management IP. multicastRouting| string| Enable multicast support if, multicast routing between VLANs is required. Options are, 'disabled', 'enabled' or 'IGMP snooping querier'. Default is 'disabled'. vlanId| integer| The VLAN this routed interface is on. VLAN must be between 1 and 4094. defaultGateway| string| The next hop for any traffic that isn't going to a directly connected subnet or over a static route. This IP address must exist in a subnet with a routed interface. ospfSettings| object| The OSPF routing settings of the interface.

Supports Action Batches

ResourceOperation
/networks/{networkId}/switch/stacks/{switchStackId}/routing/interfacescreate

Request Body

{"name"=>"<string>", "subnet"=>"<string>", "interfaceIp"=>"<string>", "vlanId"=>"<integer>", "multicastRouting"=>"<string>", "defaultGateway"=>"<string>", "ospfSettings"=>{"area"=>"<string>", "cost"=>"<integer>", "isPassiveEnabled"=>"<boolean>"}}

HEADERS

KeyDatatypeRequiredDescription
X-Cisco-Meraki-API-Keynull
Content-Typestring

RESPONSES

status: Created

{&quot;interfaceId&quot;:&quot;1234&quot;,&quot;name&quot;:&quot;L3 interface&quot;,&quot;subnet&quot;:&quot;192.168.1.0/24&quot;,&quot;interfaceIp&quot;:&quot;192.168.1.2&quot;,&quot;multicastRouting&quot;:&quot;disabled&quot;,&quot;vlanId&quot;:100,&quot;defaultGateway&quot;:&quot;192.168.1.1&quot;,&quot;ospfSettings&quot;:{&quot;area&quot;:&quot;0&quot;,&quot;cost&quot;:1,&quot;isPassiveEnabled&quot;:true}}