摘要 |
A method for configuring IP addresses of a router broadcasts a dynamic host configuration protocol (DHCP) discover packet over a network for receiving a DHCP offer packet sent from the modem. The DHCP offer packet comprises the private IP address of the modem. The method further obtains the private IP address of the modem from the DHCP offer packet, and configures IP addresses of a WAN port and a LAN port of the router according to the private IP address of the modem, so as to allow the private IP address of the modem to be in the same network segment with the IP address of the WAN port but in different network segments with the IP address of the LAN port.
|