In the Huawei CloudCampus Solution, a DHCP server helps implement plug-and-play deployment of switches, removing the need to manually enable NETCONF and configure iMaster NCE-Campus's address information.
Background
In Figure 2, assume that an administrator changes the management VLAN to a VLAN other than VLAN 1 (default VLAN) on iMaster NCE-Campus. The administrator also needs to change the VLAN for the IP address pool of the DHCP server to the management VLAN. An unconfigured switch, SwitchC, needs to connect to the network. After SwitchC is powered on and starts, it sends a request packet containing VLAN 1 to the DHCP server to obtain the NETCONF enabling configuration and iMaster NCE-Campus's address information. However, SwitchC fails to obtain the requested data and register with iMaster NCE-Campus. This is because the VLAN for the IP address pool of the DHCP server has been changed to a VLAN other than VLAN 1.
The auto-negotiated uplink Eth-Trunk of the downstream device is fixed as Eth-Trunk 0, whose working mode is also auto-negotiated with the upstream device. To manually change the working mode of Eth-Trunk 0, you need to first run the undo pnp startup-vlan receive enable command to disable the PnP VLAN auto-negotiation function on the downstream device.
Adding a new unconfigured switch to a campus network
Processing a PnP VLAN switchover
In Figure 4, when the upstream device has NETCONF enabled, iMaster NCE-Campus can modify the PnP VLAN of the upstream device to enable the downstream device to use the new PnP VLAN for re-registration. When the upstream device does not have NETCONF enabled, you can modify the PnP VLAN of the upstream device using a command to enable the downstream device to use the new PnP VLAN for re-registration.
The upstream device's PnP VLAN and the management VLAN are two concepts. The two VLANs can be the same or different. If the two VLANs are different, the downstream device can register with iMaster NCE-Campus normally only when iMaster NCE-Campus communicates with the upstream device normally.
When the upstream device has NETCONF enabled, changing the PnP VLAN enables only the downstream device but not the upstream device to register with iMaster NCE-Campus again. Whether the upstream device registers with iMaster NCE-Campus again depends on whether its management VLAN is changed.