Patent attributes
An object of the present invention is to provide an edge device, a control method, and a program with which the effects of loop generation can be minimized from the NW operator side while ensuring connection normality with the device of an NW user. An edge device according to the present invention physically closes an access port upon confirmation that the access port has been connected to an external device while the access port is in a physically released state and a DF state is undefined, notifies other edge devices within an EVPN MH configuration that the host device has entered a state in which the host device may become the DF and causes an EVPN function unit to calculate the DF state to be set, physically opens the access port when the calculation result indicates DF, and physically closes the access port when the calculation result indicates BDF.