An auto-provision method for Fiber-to-the Home, FTTH, backhaul, midhaul or fronthaul for mobile base stations based on software defined networking, SDN, wherein a base station is connected to an optical network unit, ONU, the method comprising: a) detecting, by an optical liner terminal, OLT, installed within an Internet service provider infrastructure when the ONU is connected to an optical termination point, and responsive to said detection said OLT further notifying a software defined networking, SDN, controller installed at said Internet service provider infrastructure about the ONU-OLT connection and further sending an event activating a temporary virtual Customer Premises Equipment, vCPE, installed within the Internet service provider infrastructure ; b) providing, by the SDN controller , via the temporary vCPE , connectivity to said base station to a first restricted network providing access to a web site with limited connectivity , the web site with limited connectivity being part of the Internet service provider infrastructure , the base station being connected to the temporary vCPE via a first virtual local area network, and the temporary vCPE being connected to the web site with limited connectivity via a second virtual local area network; c) receiving, by the web site with limited connectivity , credential information identifying a technician of the base station on the web site with limited connectivity , wherein the web site with limited connectivity , once the technician being connected therein, further receives configuration information specifying which Fiber-to-the Home, FTTH, backhaul, midhaul or fronthaul services the base station requires subscription; and d) disconnecting, by the SDN controller, the base station from the web site with limited connectivity and from the temporary vCPE , and reconnecting the base station to a second network configured to provide access to a core network and to the subscribed FTTH backhaul, midhaul or fronthaul services to the base station . a) detecting, by an optical liner terminal, OLT, installed within an Internet service provider infrastructure when the ONU is connected to an optical termination point, and responsive to said detection said OLT further notifying a software defined networking, SDN, controller installed at said Internet service provider infrastructure about the ONU-OLT connection and further sending an event activating a temporary virtual Customer Premises Equipment, vCPE, installed within the Internet service provider infrastructure ; b) providing, by the SDN controller , via the temporary vCPE , connectivity to said base station to a first restricted network providing access to a web site with limited connectivity , the web site with limited connectivity being part of the Internet service provider infrastructure , the base station being connected to the temporary vCPE via a first virtual local area network, and the temporary vCPE being connected to the web site with limited connectivity via a second virtual local area network; c) receiving, by the web site with limited connectivity , credential information identifying a technician of the base station on the web site with limited connectivity , wherein the web site with limited connectivity , once the technician being connected therein, further receives configuration information specifying which Fiber-to-the Home, FTTH, backhaul, midhaul or fronthaul services the base station requires subscription; and d) disconnecting, by the SDN controller, the base station from the web site with limited connectivity and from the temporary vCPE , and reconnecting the base station to a second network configured to provide access to a core network and to the subscribed FTTH backhaul, midhaul or fronthaul services to the base station . <EOS>