The pnp startup-vlan receive enable command enables a switch to receive the PnP VLAN negotiation packets sent by its upstream device.
The undo pnp startup-vlan receive enable command disables a switch from receiving the PnP VLAN negotiation packets sent by its upstream device.
By default, a switch is enabled to receive the PnP VLAN negotiation packets from its upstream device.
On a campus network shown in Figure 1, the VLAN for the IP address pool of the DHCP server is not VLAN 1 and SwitchB is newly connected to the network. After SwitchB is connected to the network, it uses the management VLAN 1 to send a request packet to the DHCP server to obtain the NETCONF enabling configuration, IP address, and information of controller. The VLAN for the IP address pool of the DHCP server is not VLAN 1. As a result, SwitchB cannot obtain the related information.
To address the problem, configure PnP VLAN auto-negotiation on SwitchA. After SwitchB starts, SwitchA transmits the PnP VLAN ID to SwitchB through PnP VLAN auto-negotiation, so that SwitchB can use the PnP VLAN to obtain the related information from the DHCP server.
SwitchB can obtain the PnP VLAN ID transmitted by SwitchA only after SwitchB is enabled to receive the PnP VLAN negotiation packets sent by its upstream device. This function is enabled by default. If the configuration file contains the undo pnp startup-vlan receive enable command, the function of receiving the PnP VLAN negotiation packets sent by the upstream device is disabled. You can enable the function on controller.
The function of transmitting the PnP VLAN ID to the downstream device and the PnP VLAN ID can be preconfigured on controller and delivered to a switch after the switch has registered with controller. If the switch does not register with controller, perform preconfiguration on the switch.