一台PC可以获取IP地址,另一台不能获取IP地址

发布时间:  2012-07-18 浏览次数:  110 下载次数:  0
问题描述
在同一USG设备下挂两台PC,一台PC可以获取IP地址,另一台不能获取IP地址,拓扑图如下:

查看防火墙已分配给PC的IP地址:
dis dhcp server ip-in-use   all
Global pool:
IP address     Hardware address    Lease expiration              Type
192.168.10.13  00e0-4ce2-f2ca      Dec 10 2011 13:38:18 PM       Auto:COMMITED

Interface pool:
IP address     Hardware address    Lease expiration              Type

13:59:57  12-09-2011
查看设备DEBUGGING信息:

*0.178689716 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: receive DHCPDISCOVER from BC30-5BE9-582D
*0.178689716 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServerFindFreeIP: start get ip from DHCP free ip
*0.178689716 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: Sending ICMP ECHO to Target IP: 192.168.10.11
*0.178689716 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer:Assigned Free Lease
*0.178690216 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: ICMP Timeout
*0.178690216 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: Still Need to ICMP detect for 1 times
*0.178690216 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: Sending ICMP ECHO to Target IP: 192.168.10.11
*0.178690716 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: ICMP Timeout
*0.178690716 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: All Try finished
*0.178690716 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: Send DHCPOFFER to MAC=> BC30-5BE9-582D Offer IP=> 192.168.10.11
*0.178693683 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: receive DHCPDISCOVER from BC30-5BE9-582D
*0.178693683 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer:Assigned Used Lease
*0.178701616 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: receive DHCPDISCOVER from BC30-5BE9-582D
*0.178701616 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: Sending ICMP ECHO to Target IP: 192.168.10.11
*0.178701633 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer:Assigned Used Lease
*0.178701733 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: receive DHCPREQUEST from BC30-5BE9-582D
*0.178701733 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer:User Accept Other's Offer  ? //PC2接受了其他提供的地址
查看PC2的TCP/IP信息:
C:\Documents and Settings\Administrator>ipconfig/all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : gglserver
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Unknown
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter 本地连接:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Broadcom NetXtreme Gigabit Ethernet
   Physical Address. . . . . . . . . : BC-30-5B-E9-58-2D
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IP Address. . . . . . . . . . . . : 192.168.10.0     
   Subnet Mask . . . . . . . . . . . : 255.0.0.0

   Default Gateway . . . . . . . . . :
   DHCP Server . . . . . . . . . . . : 192.168.10.13   
   Lease Obtained. . . . . . . . . . : 2011年12月8日 15:56:31
   Lease Expires . . . . . . . . . . : 2011年12月10日 15:56:31

C:\Documents and Settings\Administrator>


告警信息
处理过程

通过将PC1电脑断开与防火墙的连接后,PC2可以正常获取IP地址。
[USG2110_F]
*0.180802400 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: receive DHCPDISCOVER from BC30-5BE9-582D
*0.180802400 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: Sending ICMP ECHO to Target IP: 192.168.10.11
*0.180802400 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer:Assigned Used Lease
*0.180802900 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: ICMP Timeout
*0.180802900 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: Still Need to ICMP detect for 1 times
*0.180802900 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: Sending ICMP ECHO to Target IP: 192.168.10.11
*0.180803400 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: ICMP Timeout
*0.180803400 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: All Try finished
*0.180803400 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: Send DHCPOFFER to MAC=> BC30-5BE9-582D Offer IP=> 192.168.10.11
*0.180803500 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: receive DHCPREQUEST from BC30-5BE9-582D
*0.180803500 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: Ack User's Lease
*0.180803500 USG2110_F DHCPS/7/DHCPS_DEBUG_COMMON:
DhcpServer: Send DHCPACK to MAC=> BC30-5BE9-582D Offer IP=> 192.168.10.11   //确认提供IP地址


[USG2110_F]dis dhcp server  ip-in-use al
Global pool:
IP address     Hardware address    Lease expiration              Type
192.168.10.11  bc30-5be9-582d      Dec 10 2011 14:33:39 PM       Auto:COMMITED
192.168.10.13  00e0-4ce2-f2ca      Dec 10 2011 14:29:49 PM       Auto:COMMITED

Interface pool:
IP address     Hardware address    Lease expiration              Type

14:33:56  12-09-2011

根因
通过以上信息可以看到,PC1获取到的IP是192.168.10.0,DHCP服务器指向192.168.10.13,直接指向了那台PC,是由于PC1开启了DHCP服务导致。
建议与总结

END