Operating System - Linux
1753736 Members
4763 Online
108799 Solutions
New Discussion юеВ

DHCP client - not connecting to server

 
tony j. podrasky
Valued Contributor

DHCP client - not connecting to server

Good Afternoon Gentlemen;

I want to move the cable-modem from an old laptop running Red Hat Enterprise 3.0 to
a newer tower running Fedora 16 Linux. At this time the old laptop is the
gateway for the rest of the computers in the house to access the internet. They're
all on the same network, but, of course the laptop also has a NIC to the cable-modem.

I've followed all the instructions I could find, in doing what I believe to be a
thorough seach, but am unable to get a dhcp client to control the p1p1 interface.

I've include as much information as I could, in hopes that it helps to identify
where the problem is - but without going overboard.

The p1p1 interface is the one I'm trying to get configured by dhcp. It should
contact the cox.sd.com server and gets its address - but it never does. If
I load it by hand, and do a tcpdump -i p1p1 I can see the traffic coming in.

Oh - but after a while, it goes offline and the network information (ip,
bcast, netmaks) disappears. (I believe the dhcp client is responsible).

(Oh - I disabled dhcpd - because (to me, anyway) it didn't make sense to
have a daemon running on a client.)

Here's the files that I thought might help:

----------------------------------------------------------------------------
MESSAGE:

Nov 5 14:42:22 blacktower dhclient[1508]: Internet Systems Consortium DHCP Client 4.2.4-P2
Nov 5 14:42:22 blacktower dhclient[1508]: Copyright 2004-2012 Internet Systems Consortium.
Nov 5 14:42:22 blacktower dhclient[1508]: All rights reserved.
Nov 5 14:42:22 blacktower dhclient[1508]: For info, please visit https://www.isc.org/software/dhcp/
Nov 5 14:42:22 blacktower dhclient[1508]:
Nov 5 14:42:22 blacktower NetworkManager[996]: <info> (p1p1): DHCPv4 state changed nbi -> preinit
Nov 5 14:42:22 blacktower dhclient[1508]: Listening on LPF/p1p1/68:05:ca:03:0c:59
Nov 5 14:42:22 blacktower dhclient[1508]: Sending on LPF/p1p1/68:05:ca:03:0c:59
Nov 5 14:42:22 blacktower dhclient[1508]: Sending on Socket/fallback
Nov 5 14:42:22 blacktower dhclient[1508]: DHCPDISCOVER on p1p1 to 255.255.255.255 port 67 interval 3
Nov 5 14:42:25 blacktower dhclient[1508]: DHCPDISCOVER on p1p1 to 255.255.255.255 port 67 interval 5
Nov 5 14:42:28 blacktower NetworkManager[996]: <info> Activation (p1p1) Stage 3 of 5 (IP Configure Start) starting DHCPv6 as requested by IPv6 router...
Nov 5 14:42:28 blacktower NetworkManager[996]: <info> Activation (p1p1) Beginning DHCPv6 transaction (timeout in 45 seconds)
Nov 5 14:42:28 blacktower NetworkManager[996]: <info> dhclient started with pid 1510
Nov 5 14:42:28 blacktower dhclient[1510]: Internet Systems Consortium DHCP Client 4.2.4-P2
Nov 5 14:42:28 blacktower dhclient[1510]: Copyright 2004-2012 Internet Systems Consortium.
Nov 5 14:42:28 blacktower dhclient[1510]: All rights reserved.
Nov 5 14:42:28 blacktower dhclient[1510]: For info, please visit https://www.isc.org/software/dhcp/
Nov 5 14:42:28 blacktower dhclient[1510]:
Nov 5 14:42:28 blacktower NetworkManager[996]: <info> (p1p1): DHCPv6 state changed nbi -> preinit6
Nov 5 14:42:28 blacktower dhclient[1510]: Bound to *:546
Nov 5 14:42:28 blacktower dhclient[1510]: Listening on Socket/p1p1
Nov 5 14:42:28 blacktower dhclient[1510]: Sending on Socket/p1p1
Nov 5 14:42:28 blacktower dhclient[1510]: XMT: Solicit on p1p1, interval 1090ms.
Nov 5 14:42:29 blacktower NetworkManager[996]: <info> Policy set 'System em1' (em1) as default for IPv4 routing and DNS.
Nov 5 14:42:29 blacktower dhclient[1510]: XMT: Solicit on p1p1, interval 2230ms.
Nov 5 14:42:30 blacktower dhclient[1508]: DHCPDISCOVER on p1p1 to 255.255.255.255 port 67 interval 9
Nov 5 14:42:31 blacktower dhclient[1510]: XMT: Solicit on p1p1, interval 4440ms.
Nov 5 14:42:36 blacktower dhclient[1510]: XMT: Solicit on p1p1, interval 9120ms.
Nov 5 14:42:39 blacktower dhclient[1508]: DHCPDISCOVER on p1p1 to 255.255.255.255 port 67 interval 15
Nov 5 14:42:45 blacktower dhclient[1510]: XMT: Solicit on p1p1, interval 18170ms.
Nov 5 14:42:54 blacktower dhclient[1508]: DHCPDISCOVER on p1p1 to 255.255.255.255 port 67 interval 14
Nov 5 14:43:03 blacktower dhclient[1510]: XMT: Solicit on p1p1, interval 36540ms.
Nov 5 14:43:07 blacktower NetworkManager[996]: <warn> (p1p1): DHCPv4 request timed out.
Nov 5 14:43:07 blacktower NetworkManager[996]: <info> (p1p1): canceled DHCP transaction, DHCP client pid 1508
Nov 5 14:43:07 blacktower NetworkManager[996]: <info> Activation (p1p1) Stage 4 of 5 (IPv4 Configure Timeout) scheduled...
Nov 5 14:43:07 blacktower NetworkManager[996]: <info> Activation (p1p1) Stage 4 of 5 (IPv4 Configure Timeout) started...
Nov 5 14:43:07 blacktower NetworkManager[996]: <info> Activation (p1p1) Stage 4 of 5 (IPv4 Configure Timeout) complete.
Nov 5 14:43:13 blacktower NetworkManager[996]: <warn> (p1p1): DHCPv6 request timed out.
Nov 5 14:43:13 blacktower NetworkManager[996]: <info> (p1p1): canceled DHCP transaction, DHCP client pid 1510
Nov 5 14:43:13 blacktower NetworkManager[996]: <info> Activation (p1p1) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Nov 5 14:43:13 blacktower NetworkManager[996]: <info> Activation (p1p1) Stage 4 of 5 (IPv6 Configure Timeout) started...
Nov 5 14:43:13 blacktower NetworkManager[996]: <info> (p1p1): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Nov 5 14:43:13 blacktower NetworkManager[996]: <info> Marking connection 'Wired connection 1' invalid.
Nov 5 14:43:13 blacktower NetworkManager[996]: <warn> Activation (p1p1) failed.
Nov 5 14:43:13 blacktower NetworkManager[996]: <info> Activation (p1p1) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Nov 5 14:43:13 blacktower NetworkManager[996]: <info> (p1p1): device state change: failed -> disconnected (reason 'none') [120 30 0]
Nov 5 14:43:13 blacktower NetworkManager[996]: <info> (p1p1): deactivating device (reason 'none') [0]
Nov 5 14:43:13 blacktower NetworkManager[996]: <info> Policy set 'System em1' (em1) as default for IPv4 routing and DNS.
Nov 5 14:43:13 blacktower NetworkManager[996]: <info> Policy set 'System em1' (em1) as default for IPv4 routing and DNS.

---------------------------------------------------------------------------------------

RESPONSE FROM <ifconfig> (after I do the following command):

ifconfig p1p1 inet 68.7.160.182 broadcast 68.7.163.255 netmask 255.255.252.0 up

root% ifconfig
em1 Link encap:Ethernet HWaddr C8:60:00:BE:2C:01
inet addr:15.19.89.17 Bcast:15.19.95.255 Mask:255.255.248.0
inet6 addr: fe80::ca60:ff:febe:2c01/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:223 errors:0 dropped:23 overruns:0 frame:0
TX packets:291 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21682 (21.1 KiB) TX bytes:21830 (21.3 KiB)
Interrupt:20 Memory:f7e00000-f7e20000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:167 errors:0 dropped:0 overruns:0 frame:0
TX packets:167 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:17588 (17.1 KiB) TX bytes:17588 (17.1 KiB)

p1p1 Link encap:Ethernet HWaddr 68:05:CA:03:0C:59
inet addr:68.7.160.182 Bcast:68.7.163.255 Mask:255.255.252.0
inet6 addr: fe80::6a05:caff:fe03:c59/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7681 errors:0 dropped:0 overruns:0 frame:0
TX packets:134 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:512325 (500.3 KiB) TX bytes:22546 (22.0 KiB)
Interrupt:17 Memory:f7cc0000-f7ce0000

wlan0 Link encap:Ethernet HWaddr 00:08:CA:E5:52:73
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


AS I SAID if I do a tcpdump -i p1p1 there's a lot of traffic:

root% tcpdump -i p1p1
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on p1p1, link-type EN10MB (Ethernet), capture size 65535 bytes
14:33:16.998315 ARP, Request who-has 68.7.172.91 tell 68.7.172.1, length 46
14:33:17.187012 ARP, Request who-has 98.173.47.210 tell 98.173.47.209, length 46
14:33:17.441673 ARP, Request who-has 98.176.95.50 tell 98.176.92.1, length 46
14:33:17.513169 ARP, Request who-has 70.167.115.178 tell 70.167.115.177, length 46
14:33:17.602912 ARP, Request who-has 70.167.115.179 tell 70.167.115.177, length 46
14:33:17.726733 ARP, Request who-has 70.167.115.181 tell 70.167.115.177, length 46
14:33:17.843564 ARP, Request who-has 98.176.95.209 tell 98.176.92.1, length 46
14:33:17.938986 ARP, Request who-has 184.191.162.136 tell 184.191.162.129, length 46
14:33:18.023998 ARP, Request who-has 98.176.95.3 tell 98.176.92.1, length 46
14:33:18.092713 ARP, Request who-has 98.176.95.66 tell 98.176.92.1, length 46
14:33:18.508420 ARP, Request who-has 98.175.250.119 tell 98.175.250.113, length 46
14:33:18.588332 ARP, Request who-has 24.249.207.251 tell 24.249.207.241, length 46
14:33:18.643615 ARP, Request who-has 98.175.250.122 tell 98.175.250.113, length 46
14:33:18.649858 ARP, Request who-has 98.175.250.120 tell 98.175.250.113, length 46
14:33:18.699692 ARP, Request who-has 98.175.250.121 tell 98.175.250.113, length 46
14:33:18.918301 ARP, Request who-has 68.7.162.0 tell 68.7.160.1, length 46
14:33:19.386169 IP6 fe80::21d:45ff:fe70:9dd9 > ff02::1: ICMP6, router advertisement, length 32
14:33:19.445358 ARP, Request who-has 98.175.253.243 tell 98.175.253.241, length 46
14:33:19.481923 ARP, Request who-has 72.212.141.85 tell 72.212.141.1, length 46
14:33:19.576302 ARP, Request who-has 68.7.161.0 tell 68.7.160.1, length 46
14:33:20.022830 ARP, Request who-has 68.7.156.118 tell 68.7.156.1, length 46

---------------------------------------------------------------------------------------------

HERE's THE ifcfg info:

root% cat ifcfg-em1
IPV6INIT="no"
UUID="1dad842d-1912-ef5a-a43a-bc238fb267e7"
IPADDR0="15.19.89.17"
PREFIX0="21"
DEFROUTE="yes"
IPV4_FAILURE_FATAL=no
NM_CONTROLLED="yes"
BOOTPROTO="none"
GATEWAY0="15.19.89.8"
DEVICE="em1"
TYPE="Ethernet"
ONBOOT="yes"
NAME="System em1"
HWADDR=C8:60:00:BE:2C:01
SEARCH="sd.cox.net"
DNS1="68.105.28.11"
DNS2="68.105.29.11"
DNS3="68.105.28.12"


root% cat ifcfg-p1p1
NAME=p1p1
BOOTPROTO=dhcp
HWADDR=68:05:CA:03:0C:59
ONBOOT=yes

------------------------------------------------------------------------------------------

Any ideas will be gladly accepted.

regards,
tony

REMEMBER: Once you eliminate your #1 problem, #2 gets a promotion.