FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 11-17-2010, 09:36 AM
Adam Hardy
 
Default dhclient3 fetching NIC IP for gateway machine from DSL modem

I've got a weird problem that I always thought must be my hardware but I
replaced the hardware and it's continuing.


My gateway lenny box hooks up my LAN to the broadband using dhclient3 to fetch
the external IP address from the DSL modem. The second NIC is the internal LAN
so it's irrelevant, but just to mention so nobody thinks I'm mixing it up.


I have 3 DSL modem and they all act the same. After a day or a week, I lose the
ability to ping the DSL modem, or to browse its GUI admin interface.


A power cycle of the modem and doing 'ifdown eth1' 'ifup eth1' is so far the
only way I've found to sort it out.


The gateway runs dnsmasq to provide DHCP service to the LAN and iptables as a
firewall and for NAT'ing.


To give some info, hopefully useful to show the situation:

dhclient.conf:

option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
supersede domain-name "localdomain";
supersede domain-name-servers 127.0.0.1, 208.67.222.222, 208.67.220.220;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-search, host-name,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes;
require subnet-mask;


adam@isengard:~/junk/photos$ /sbin/ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:a0:cc:52:5d:fe
inet addr:109.156.124.66 Bcast:109.156.124.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3622978 errors:1 dropped:0 overruns:0 frame:0
TX packets:3417304 errors:1 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:1514614115 (1.4 GiB) TX bytes:362903393 (346.0 MiB)
Interrupt:22 Base address:0xd800



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4CE3B012.3070507@cyberspaceroad.com">http://lists.debian.org/4CE3B012.3070507@cyberspaceroad.com
 
Old 11-17-2010, 01:24 PM
"Jesús M. Navarro"
 
Default dhclient3 fetching NIC IP for gateway machine from DSL modem

Hi, Adam:

On Wednesday 17 November 2010 11:36:02 Adam Hardy wrote:
> I've got a weird problem that I always thought must be my hardware but I
> replaced the hardware and it's continuing.
>
> My gateway lenny box hooks up my LAN to the broadband using dhclient3 to
> fetch the external IP address from the DSL modem. The second NIC is the
> internal LAN so it's irrelevant, but just to mention so nobody thinks I'm
> mixing it up.
>
> I have 3 DSL modem and they all act the same. After a day or a week, I lose
> the ability to ping the DSL modem, or to browse its GUI admin interface.

Probably your modems just hung up; quite typical of these cheap devices.

> A power cycle of the modem and doing 'ifdown eth1' 'ifup eth1' is so far
> the only way I've found to sort it out.

Most probably it is the power cycle of the modem the thing making the
difference.

You restarting the network device is just "brute forcing" a new IP lease for
the interface from the restarted modem.

Unluckily, while dhclient3 man page talks about dhcpctl and omapi as means to
interact with a running dhclient3 instance, it seems they haven't been added
to Debian's dhclient3 package, so it seems ifdown/ifup it's the only way to
go.

Cheers.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201011171524.41035.jesus.navarro@undominio.net">ht tp://lists.debian.org/201011171524.41035.jesus.navarro@undominio.net
 

Thread Tools




All times are GMT. The time now is 05:08 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org