Skip to content

VLAN

VLAN interfaces, also known as Switched Virtual Interfaces (SVIs), provide Layer 3 gateway functionality for VLANs by creating routable interfaces associated with specific VLAN IDs, enabling inter-VLAN routing, network segmentation, and centralized gateway services for broadcast domains. They support comprehensive Layer 3 features including IPv4 and IPv6 addressing, routing protocol participation (OSPF, BGP), DHCP relay services, access control lists, and advanced capabilities such as BFD for fast convergence and HSRP/VRRP for high availability. VLAN interfaces are essential for network infrastructure design, serving as default gateways for VLANs, enabling communication between different network segments, and providing centralized routing and policy enforcement points in switched network environments.

Diagram

Diagram

Classes

interfaces (iosxe.devices.configuration)

NameTypeConstraintMandatoryDefault Value
vlansList[vlans]No

vlans (iosxe.devices.configuration.interfaces)

NameTypeConstraintMandatoryDefault Value
idIntegermin: 1, max: 4094Yes
interface_groupsListStringNo
descriptionStringNo
shutdownBooleantrue, falseNo
autostateBooleantrue, falseNo
vrf_forwardingStringNo
ipv4Class[ipv4]No
ipv6Class[ipv6]No
bfdClass[bfd]No
load_intervalIntegermin: 30, max: 600No
mplsClass[mpls]No
ospfClass[ospf]No
ospfv3Class[ospfv3]No
pimClass[pim]No

ipv4 (iosxe.devices.configuration.interfaces.vlans)

NameTypeConstraintMandatoryDefault Value
addressIPNo
address_maskIPNo
proxy_arpBooleantrue, falseNo
arp_inspection_trustBooleantrue, falseNo
arp_inspection_limit_rateIntegermin: 0, max: 4294967295No
dhcp_relay_source_interface_typeChoiceLoopback, Vlan, GigabitEthernet, FiveGigabitEthernet, TenGigabitEthernet, FortyGigabitEthernet, HundredGigabitEthernet, PortChannelNo
dhcp_relay_source_interface_idStringNo
helper_addressesList[helper_addresses]No
access_group_inStringNo
access_group_outStringNo
redirectsBooleantrue, falseNo
unreachablesBooleantrue, falseNo
unnumberedStringNo

ipv6 (iosxe.devices.configuration.interfaces.vlans)

NameTypeConstraintMandatoryDefault Value
enableBooleantrue, falseNo
addressesList[addresses]No
link_local_addressesListIPNo
address_autoconfig_defaultBooleantrue, falseNo
address_dhcpBooleantrue, falseNo
mtuIntegermin: 1280, max: 9976No
nd_ra_suppress_allBooleantrue, falseNo
flow_monitorsList[flow_monitors]No

bfd (iosxe.devices.configuration.interfaces.vlans)

NameTypeConstraintMandatoryDefault Value
templateStringNo
enableBooleantrue, falseNo
local_addressStringNo
intervalIntegermin: 50, max: 9999No
interval_min_rxIntegermin: 50, max: 9999No
interval_multiplierIntegermin: 3, max: 50No
echoBooleantrue, falseNo

mpls (iosxe.devices.configuration.interfaces.vlans)

NameTypeConstraintMandatoryDefault Value
ipBooleantrue, falseNo
mtuIntegerNo

ospf (iosxe.devices.configuration.interfaces.vlans)

NameTypeConstraintMandatoryDefault Value
costIntegermin: 1, max: 65535No
dead_intervalIntegermin: 1, max: 65535No
hello_intervalIntegermin: 1, max: 65535No
mtu_ignoreBooleantrue, falseNo
network_typeChoicebroadcast, non-broadcast, point-to-multipoint, point-to-pointNo
priorityIntegermin: 0, max: 255No
ttl_security_hopsIntegermin: 1, max: 254No
process_idsList[process_ids]No
message_digest_keysList[message_digest_keys]No

ospfv3 (iosxe.devices.configuration.interfaces.vlans)

NameTypeConstraintMandatoryDefault Value
network_typeChoicebroadcast, non-broadcast, point-to-multipoint, point-to-pointNo
costIntegermin: 1, max: 65535No

pim (iosxe.devices.configuration.interfaces.vlans)

NameTypeConstraintMandatoryDefault Value
passiveBooleantrue, falseNo
dense_modeBooleantrue, falseNo
sparse_modeBooleantrue, falseNo
sparse_dense_modeBooleantrue, falseNo
bfdBooleantrue, falseNo
borderBooleantrue, falseNo
bsr_borderBooleantrue, falseNo
dr_priorityIntegermin: 0, max: 4294967294No

helper_addresses (iosxe.devices.configuration.interfaces.vlans.ipv4)

NameTypeConstraintMandatoryDefault Value
addressIPYes
globalBooleantrue, falseNo
vrfStringNo

addresses (iosxe.devices.configuration.interfaces.vlans.ipv6)

NameTypeConstraintMandatoryDefault Value
prefixIPYes
eui_64Booleantrue, falseNo

flow_monitors (iosxe.devices.configuration.interfaces.vlans.ipv6)

NameTypeConstraintMandatoryDefault Value
nameStringYes
directionChoiceinput, outputYes

process_ids (iosxe.devices.configuration.interfaces.vlans.ospf)

NameTypeConstraintMandatoryDefault Value
idIntegermin: 1, max: 65535No
areasListStringNo

message_digest_keys (iosxe.devices.configuration.interfaces.vlans.ospf)

NameTypeConstraintMandatoryDefault Value
idIntegermin: 1, max: 255Yes
md5_auth_keyStringNo
md5_auth_typeChoice0, 7No

Examples

iosxe:
devices:
- name: Device1
configuration:
interfaces:
vlans:
- id: 100
description: Production VLAN 100 Gateway
shutdown: false
autostate: true
ipv4:
address: 10.100.1.1
address_mask: 255.255.255.0
proxy_arp: false
helper_addresses:
- address: 10.1.1.10

Full example:

iosxe:
devices:
- name: Device1
configuration:
interfaces:
vlans:
- id: 10
description: VLAN 10
interface_groups:
- dot1x
shutdown: false
ipv4:
address: 172.16.10.1
address_mask: 255.255.255.0
proxy_arp: true
dhcp_relay_source_interface_type: GigabitEthernet
dhcp_relay_source_interface_id: "1/0/1"
helper_addresses:
- address: 10.1.1.1
access_group_in: ACL_IN
access_group_out: ACL_OUT
redirects: false
unreachables: false
ipv6:
enable: true
addresses:
- prefix: 2001:db8:10::1/64
link_local_addresses:
- fe80::11
address_autoconfig_default: false
address_dhcp: false
mtu: 1450
nd_ra_suppress_all: true
bfd:
enable: true
local_address: 1.2.3.4
interval: 100
interval_multiplier: 3
interval_min_rx: 120
echo: false
mpls:
ip: true
mtu: 1450
ospf:
cost: 50
dead_interval: 3
hello_interval: 1
mtu_ignore: true
network_type: broadcast
priority: 1
ttl_security_hops: 2
process_ids:
- id: 1
areas:
- "0.0.0.1"
ospfv3:
network_type: broadcast
cost: 50
pim:
passive: true
dense_mode: false
sparse_mode: false
sparse_dense_mode: false
bfd: true
border: true
bsr_border: true
dr_priority: 100