Creating a vlan interface, Enabling stp on a vlan – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 312

280
Network OS NETCONF Operations Guide
53-1003231-02
VLAN configuration and management
21
Creating a VLAN interface
On Brocade VDX hardware, VLANs are treated as interfaces from a configuration viewpoint.
By default, all the DCB ports are assigned to VLAN 1 (VLAN ID equals 1). The VLAN ID can be 1
through 8192, but VLAN IDs 3584 through 4094 are internally-reserved VLAN IDs. VLAN 8191 is
the largest VLAN ID that can be assigned.
To create a VLAN interface, perform the following steps.
1. Issue an <edit-config> RPC to configure the <interface-vlan> node in the
urn:brocade.com:mgmt:brocade-interface namespace,
2. Under the <interface-vlan> element, specify the <interface>/<vlan> hierarchy of node
elements.
3. Under the <vlan> node, specify the <name> element containing the new VLAN ID.
The following example creates VLAN 1010.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="1904" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<interface-vlan xmlns="urn:brocade.com:mgmt:brocade-interface">
<interface>
<vlan>
<name>1010</name>
</vlan>
</interface>
</interface-vlan>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="1904" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Enabling STP on a VLAN
When all of the interface ports have been configured for a VLAN, you can enable Spanning Tree
Protocol (STP) for all members of the VLAN with a single RPC. Whichever protocol is currently
selected is used by the VLAN. Only one type of STP can be active at a time.
A physical interface port can be a member of multiple VLANs. For example, a physical port can be a
member of VLAN 1002 and VLAN 55 simultaneously. In addition, VLAN 1002 can have STP enabled
and VLAN 55 can have STP disabled, simultaneously.
To enable STP for a VLAN, select the type of STP for the VLAN, and then enable spanning tree on
that VLAN.
To enable spanning tree on a VLAN, perform the following steps.