A link aggregation port switching method, comprising: adding a first port to an aggregation link in an ingress direction and setting an ingress forwarding state of the first port to be a permitted forwarding state in response to the first port of link aggregation switching from a down state to an up state; and adding the first port to the aggregation link in an egress direction in response to determining that an ingress forwarding state is set to be a permitted forwarding state by a peer end of the first port, wherein after adding the first port to the aggregation link in the ingress direction and setting the ingress forwarding state of the first port to be the permitted forwarding state, the method further comprises: transmitting, when a state of each port of link aggregation in the ingress direction and a state of each port of link aggregation in the egress direction are not set independently, a private protocol packet to the peer end of the first port via the first port, the private protocol packet being configured to be received by a CPU of a network device at the peer end for setting an ingress state of the peer end of the first port to be a forward state by the CPU; and determining, after waiting for a first preset time length, that the peer end of the first port sets an ingress forwarding state to be a permitted forwarding state. adding a first port to an aggregation link in an ingress direction and setting an ingress forwarding state of the first port to be a permitted forwarding state in response to the first port of link aggregation switching from a down state to an up state; and adding the first port to the aggregation link in an egress direction in response to determining that an ingress forwarding state is set to be a permitted forwarding state by a peer end of the first port, wherein after adding the first port to the aggregation link in the ingress direction and setting the ingress forwarding state of the first port to be the permitted forwarding state, the method further comprises: transmitting, when a state of each port of link aggregation in the ingress direction and a state of each port of link aggregation in the egress direction are not set independently, a private protocol packet to the peer end of the first port via the first port, the private protocol packet being configured to be received by a CPU of a network device at the peer end for setting an ingress state of the peer end of the first port to be a forward state by the CPU; and determining, after waiting for a first preset time length, that the peer end of the first port sets an ingress forwarding state to be a permitted forwarding state. transmitting, when a state of each port of link aggregation in the ingress direction and a state of each port of link aggregation in the egress direction are not set independently, a private protocol packet to the peer end of the first port via the first port, the private protocol packet being configured to be received by a CPU of a network device at the peer end for setting an ingress state of the peer end of the first port to be a forward state by the CPU; and determining, after waiting for a first preset time length, that the peer end of the first port sets an ingress forwarding state to be a permitted forwarding state.