摘要 |
A method for assigning an IP address to a terminal device and a communication system. The method includes: a router transmitting to a layer-2 device network a Router Advertisement message carrying routing prefix information; the layer-2 device network generating extended routing prefix information which identifies the downlink port uniquely within the broadcast domain of the subnet where the layer-2 device network is located according to the routing prefix information in the Router Advertisement message, and transmitting to the terminal device a Router Advertisement message carrying the extended routing prefix information; and the terminal device generating its IP address according to the extended routing prefix information in the Router Advertisement message and an Interface ID of the terminal device. Accordingly, it is unnecessary for the terminal device to perform address uniqueness check across the layer-2 devices in the network to ensure uniqueness of the IP address of the terminal device, thus improving the operating performance of the network.
|