Ik heb een kist met Debian Sarge. Het IP adres wordt toegewezen via DHCP. Echter, soms komt het wel eens voor dat de DHCP server kwijt is. Of de kabel eruit ligt. Of de stroom uitvalt. Of weet ik veel wat voor ellende.
In dat geval zou het fijn zijn als dhclient zijn stinkende best bleef doen om een IP adres te verkijgen. En het niet gewoon opgeven... wat hij dus wel bij mij doet. In man dhclient.conf en dhclient kan ik niets nuttigs vinden. De retry en timeout statements hebben hier vziw niets mee te maken, en zijn bovendien de default gelaten (niet ingevuld).
Ik heb geprobeerd ifplugd te installeren, omdat ik het irritant vind dat ik steeds moet inloggen op die bak om weer verbinding op te zetten. Helaas lijkt ifplugd ook niet te werken. Weet iemand een manier om dhclient aan het verstand te peuteren dat hij moet blijven draaien? Op debian-user krijg ik weinig respons, behalve dat het gedrag van mijn dhclient vreemd is.
Wat info:
Relevante packages:
De enige (uncommented) regel in mijn dhclient.conf:
NICjes config:
Stukje syslog met het naderende einde
:
In dat geval zou het fijn zijn als dhclient zijn stinkende best bleef doen om een IP adres te verkijgen. En het niet gewoon opgeven... wat hij dus wel bij mij doet. In man dhclient.conf en dhclient kan ik niets nuttigs vinden. De retry en timeout statements hebben hier vziw niets mee te maken, en zijn bovendien de default gelaten (niet ingevuld).
Ik heb geprobeerd ifplugd te installeren, omdat ik het irritant vind dat ik steeds moet inloggen op die bak om weer verbinding op te zetten. Helaas lijkt ifplugd ook niet te werken. Weet iemand een manier om dhclient aan het verstand te peuteren dat hij moet blijven draaien? Op debian-user krijg ik weinig respons, behalve dat het gedrag van mijn dhclient vreemd is.
Wat info:
Relevante packages:
code:
1
2
3
4
5
| sphere@sluis:~$ dpkg -l | grep dhcp rc dhcp 2.0pl5-19.1 DHCP server for automatic IP address assignm ii dhcp-client 2.0pl5-19.1 DHCP Client ii dhcp3-common 3.0.1-2 Common files used by all the dhcp3* packages ii dhcp3-server 3.0.1-2 DHCP server for automatic IP address assignm |
De enige (uncommented) regel in mijn dhclient.conf:
code:
1
| send dhcp-lease-time 600; |
NICjes config:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| sphere@sluis:~$ more /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth1
iface eth1 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255 |
Stukje syslog met het naderende einde
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
| Oct 17 09:04:19 localhost dhclient: Internet Software Consortium DHCP Client 2.0pl5 Oct 17 09:04:19 localhost dhclient: Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. Oct 17 09:04:19 localhost dhclient: All rights reserved. Oct 17 09:04:19 localhost dhclient: Oct 17 09:04:19 localhost dhclient: Please contribute if you find this software useful. Oct 17 09:04:19 localhost dhclient: For info, please visit http://www.isc.org/dhcp-contrib.html Oct 17 09:04:19 localhost dhclient: Oct 17 09:04:19 localhost dhclient: sit0: unknown hardware address type 776 Oct 17 09:04:19 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:04:19 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=397. Oct 17 09:04:20 localhost dhclient: sit0: unknown hardware address type 776 Oct 17 09:04:20 localhost dhclient: Listening on LPF/eth1/00:20:18:80:85:50 Oct 17 09:04:20 localhost dhclient: Sending on LPF/eth1/00:20:18:80:85:50 Oct 17 09:04:20 localhost dhclient: Sending on Socket/fallback/fallback-net Oct 17 09:04:20 localhost dhclient: DHCPREQUEST on eth1 to 255.255.255.255 port 67 Oct 17 09:04:20 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:04:20 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=377. Oct 17 09:04:21 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:04:21 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=760. Oct 17 09:04:24 localhost dhclient: DHCPREQUEST on eth1 to 255.255.255.255 port 67 Oct 17 09:04:24 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:04:24 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=2960. Oct 17 09:04:25 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:04:25 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=377. Oct 17 09:04:26 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:04:26 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=376. Oct 17 09:04:30 localhost kernel: eth1: no IPv6 routers present Oct 17 09:04:30 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:04:30 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=1177. Oct 17 09:04:30 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3 Oct 17 09:04:31 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:04:31 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=976. Oct 17 09:04:33 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 4 Oct 17 09:04:33 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:04:33 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=1389. Oct 17 09:04:37 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7 Oct 17 09:04:41 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:04:41 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=3776. Oct 17 09:04:43 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:04:43 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=1077. Oct 17 09:04:44 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 19 Oct 17 09:05:03 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:05:03 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=18576. Oct 17 09:05:03 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8 Oct 17 09:05:04 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:05:04 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=576. Oct 17 09:05:11 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9 Oct 17 09:05:11 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:05:11 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=6653. Oct 17 09:05:20 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10 Oct 17 09:05:30 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 1 Oct 17 09:05:30 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:05:30 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=10176. Oct 17 09:05:31 localhost dhclient: No DHCPOFFERS received. Oct 17 09:05:31 localhost dhclient: Trying recorded lease 83.85.134.79 Oct 17 09:05:32 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:05:32 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=1061. Oct 17 09:05:34 localhost dhclient: bound: renewal in 117 seconds. Oct 17 09:05:34 localhost dhclient: receive_packet failed on eth1: Network is down Oct 17 09:05:36 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:05:36 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=398. Oct 17 09:05:41 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:05:41 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=4061. Oct 17 09:05:45 localhost kernel: eth1: no IPv6 routers present Oct 17 09:07:28 localhost dhclient: DHCPREQUEST on eth1 to 10.1.127.7 port 67 Oct 17 09:07:28 localhost dhclient: send_packet: Network is unreachable Oct 17 09:07:28 localhost dhclient: send_packet: please consult README file regarding broadcast address. Oct 17 09:07:36 localhost dhclient: DHCPREQUEST on eth1 to 10.1.127.7 port 67 Oct 17 09:07:36 localhost dhclient: send_packet: Network is unreachable Oct 17 09:07:36 localhost dhclient: send_packet: please consult README file regarding broadcast address. Oct 17 09:07:43 localhost dhclient: DHCPREQUEST on eth1 to 10.1.127.7 port 67 Oct 17 09:07:43 localhost dhclient: send_packet: Network is unreachable Oct 17 09:07:43 localhost dhclient: send_packet: please consult README file regarding broadcast address. Oct 17 09:07:56 localhost dhclient: DHCPREQUEST on eth1 to 10.1.127.7 port 67 Oct 17 09:07:56 localhost dhclient: send_packet: Network is unreachable Oct 17 09:07:56 localhost dhclient: send_packet: please consult README file regarding broadcast address. Oct 17 09:08:05 localhost dhclient: DHCPREQUEST on eth1 to 10.1.127.7 port 67 Oct 17 09:08:05 localhost dhclient: send_packet: Network is unreachable Oct 17 09:08:05 localhost dhclient: send_packet: please consult README file regarding broadcast address. Oct 17 09:08:16 localhost dhclient: DHCPREQUEST on eth1 to 10.1.127.7 port 67 Oct 17 09:08:16 localhost dhclient: send_packet: Network is unreachable Oct 17 09:08:16 localhost dhclient: send_packet: please consult README file regarding broadcast address. Oct 17 09:08:33 localhost dhclient: DHCPREQUEST on eth1 to 10.1.127.7 port 67 Oct 17 09:08:33 localhost dhclient: send_packet: Network is unreachable Oct 17 09:08:33 localhost dhclient: send_packet: please consult README file regarding broadcast address. Oct 17 09:08:50 localhost fetchmail[2017]: awakened at Mon Oct 17 09:08:50 2005 Oct 17 09:08:50 localhost fetchmail[2017]: POP3 connection to pop3.casema.nl failed: temporary name server error. Oct 17 09:08:50 localhost fetchmail[2017]: Query status=2 (SOCKET) Oct 17 09:08:50 localhost fetchmail[2017]: POP3 connection to pop.wanadoo.nl failed: temporary name server error. Oct 17 09:08:50 localhost fetchmail[2017]: Query status=2 (SOCKET) Oct 17 09:08:50 localhost fetchmail[2017]: POP3 connection to elektron.its.tudelft.nl failed: temporary name server error. Oct 17 09:08:50 localhost fetchmail[2017]: Query status=2 (SOCKET) Oct 17 09:08:50 localhost fetchmail[2017]: sleeping at Mon Oct 17 09:08:50 2005 Oct 17 09:09:03 localhost dhclient: DHCPREQUEST on eth1 to 10.1.127.7 port 67 Oct 17 09:09:03 localhost dhclient: send_packet: Network is unreachable Oct 17 09:09:03 localhost dhclient: send_packet: please consult README file regarding broadcast address. Oct 17 09:09:55 localhost dhclient: DHCPREQUEST on eth1 to 10.1.127.7 port 67 Oct 17 09:09:55 localhost dhclient: send_packet: Network is unreachable Oct 17 09:09:55 localhost dhclient: send_packet: please consult README file regarding broadcast address. Oct 17 09:10:41 localhost dhclient: DHCPREQUEST on eth1 to 10.1.127.7 port 67 Oct 17 09:10:41 localhost dhclient: send_packet: Network is unreachable Oct 17 09:10:41 localhost dhclient: send_packet: please consult README file regarding broadcast address. Oct 17 09:11:12 localhost dhclient: DHCPREQUEST on eth1 to 10.1.127.7 port 67 Oct 17 09:11:12 localhost dhclient: send_packet: Network is unreachable Oct 17 09:11:12 localhost dhclient: send_packet: please consult README file regarding broadcast address. Oct 17 09:11:20 localhost dhclient: DHCPREQUEST on eth1 to 255.255.255.255 port 67 Oct 17 09:11:20 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:11:20 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=335861. Oct 17 09:11:42 localhost dhclient: DHCPREQUEST on eth1 to 255.255.255.255 port 67 Oct 17 09:12:03 localhost dhclient: DHCPREQUEST on eth1 to 255.255.255.255 port 67 Oct 17 09:12:03 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:12:03 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=21171. Oct 17 09:12:30 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:12:30 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=798. Oct 17 09:12:30 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 5 Oct 17 09:12:30 localhost dhclient: receive_packet failed on eth1: Network is down Oct 17 09:12:31 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:12:31 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=786. Oct 17 09:12:34 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 14 Oct 17 09:12:35 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:12:35 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=785. Oct 17 09:12:40 localhost kernel: eth1: no IPv6 routers present Oct 17 09:12:48 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8 Oct 17 09:12:48 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:12:48 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=9535. Oct 17 09:12:56 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8 Oct 17 09:13:04 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10 Oct 17 09:13:04 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:13:04 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=8185. Oct 17 09:13:14 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 15 Oct 17 09:13:29 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 1 Oct 17 09:13:29 localhost kernel: NETDEV WATCHDOG: eth1: transmit timed out Oct 17 09:13:29 localhost kernel: eth1: Tx timed out, cable problem? TSR=0x0, ISR=0x0, t=15185. Oct 17 09:13:30 localhost dhclient: No DHCPOFFERS received. Oct 17 09:13:30 localhost dhclient: No working leases in persistent database. Oct 17 09:13:30 localhost dhclient: Exiting. |