The embodiment of the application provides a
gateway address allocation method, a
core network, a user terminal, a medium and a product. The method comprises the following steps: when a
protocol data unit session is established by the user terminal, the
core network acquires the information of a
network segment of a hanging device associated with the user terminal and an
Internet protocol address of the user terminal, encapsulates the information of the
network segment of the hanging device into a protocol configuration option field, and constructs a
protocol data unit session establishment response message according to the protocol configuration option field and
the Internet protocol address of the user terminal, wherein the
protocol data unit session establishment response message comprises the protocol configuration option field and
the Internet protocol address of the user terminal. Then, the protocol data unit session establishment response message is sent to the user terminal, and the user terminal is used for allocating
the Internet protocol address of the gateway used by the hanging device according to the protocol data unit session establishment response message. The application does not need a user to manually configure the
network segment information to the user terminal, and the intelligent degree and the accuracy of address allocation are improved.