Class RoutingInterfaceCreateRequest
Routing interface create request
[DataContract]
public class RoutingInterfaceCreateRequest : NamedItem
- Inheritance
-
RoutingInterfaceCreateRequest
- Inherited Members
Constructors
RoutingInterfaceCreateRequest()
public RoutingInterfaceCreateRequest()
Properties
DefaultGateway
Required. 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.
[ApiAccess(ApiAccess.ReadCreate)]
[DataMember(Name = "defaultGateway")]
public string DefaultGateway { get; set; }
Property Value
InterfaceIp
Required. The IP address this switch will use for layer 3 routing on this VLAN or subnet. This cannot be the same as the switch's management IP.
[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "interfaceIp")]
public string InterfaceIp { get; set; }
Property Value
Ipv6
The IPv6 settings of the interface
[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "ipv6")]
public RoutingInterfaceIpv6? Ipv6 { get; set; }
Property Value
Loopback
The loopback settings of the interface. Documentation incomplete 2025-09-29
[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "loopback")]
public object? Loopback { get; set; }
Property Value
Mode
L3 Interface mode, can be one of 'vlan', 'routed' or 'loopback'. Default is 'vlan'. CS 17.18 or higher is required for 'routed' mode. enum = ["loopback", "routed", "vlan"]
[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "mode")]
public string? Mode { get; set; }
Property Value
Mtu
The maximum transmission unit for the interface
[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "mtu")]
public int? Mtu { get; set; }
Property Value
- int?
MulticastRouting
Enable multicast support if, multicast routing between VLANs is required. Options are, 'disabled', 'enabled' or 'IGMP snooping querier'.
[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "multicastRouting")]
public MulticastRouting? MulticastRouting { get; set; }
Property Value
OspfSettings
The OSPF routing settings of the interface.
[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "ospfSettings")]
public OspfSettings? OspfSettings { get; set; }
Property Value
Subnet
Required. The network that this routed interface is on, in CIDR notation (ex. 10.1.1.0/24).
[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "subnet")]
public string Subnet { get; set; }
Property Value
SwitchPortId
Switch Port ID when in Routed mode (CS 17.18 or higher required)
[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "switchPortId")]
public string? SwitchPortId { get; set; }
Property Value
UplinkV4
Whether this is the switch's IPv4 uplink
[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "uplinkV4")]
public bool? UplinkV4 { get; set; }
Property Value
- bool?
UplinkV6
Whether this is the switch's IPv6 uplink
[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "uplinkV6")]
public bool? UplinkV6 { get; set; }
Property Value
- bool?
VlanId
The VLAN this routed interface is on. VLAN must be between 1 and 4094.
[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "vlanId")]
public int VlanId { get; set; }
Property Value
Vrf
VRF settings. Included on networks with IOS XE 17.18 or higher
[DataMember(Name = "vrf")]
public RoutingInterfaceVrf? Vrf { get; set; }