LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-04-2007, 06:29 PM   #1
analian
LQ Newbie
 
Registered: Sep 2006
Distribution: Debian testing
Posts: 6

Rep: Reputation: 0
Weird net behaviour with Debian Lenny


Hello,

I've got a comp with Debian Lenny installed.
Also I've got a Linksys BEFSR41v3.1 router.
I connect through pppoe to my ISP. I've got a strange problem though.
The inet connection is just fine, but I'm having problems pinging the router from my comp. I realized I had the interface set in a different subnet of the router's subnet, so I did

# ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up

(the router's ip address is 192.168.1.1 with netmask 255.255.255.0, as default to all linksys routers)

then I
# ifconfig

eth0 Link encap:Ethernet HWaddr 00:00:E8:05:0C:01
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:687803 errors:0 dropped:0 overruns:0 frame:0
TX packets:262931 errors:65 dropped:0 overruns:0 carrier:65
collisions:0 txqueuelen:1000
RX bytes:646613799 (616.6 MiB) TX bytes:24949329 (23.7 MiB)
Interrupt:20 Base address:0x9000


then I ping the router and can browse its admin page but only for about 20-30 seconds

then suddenly i'm not able to ping the router anymore and when I
# ifconfig

eth0 Link encap:Ethernet HWaddr 00:00:E8:05:0C:01
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:688655 errors:0 dropped:0 overruns:0 frame:0
TX packets:264147 errors:65 dropped:0 overruns:0 carrier:65
collisions:0 txqueuelen:1000
RX bytes:646708758 (616.7 MiB) TX bytes:25054069 (23.8 MiB)
Interrupt:20 Base address:0x9000

As you see, I've "lost" my ip address and netmask configuration and that's the reason I cannot ping the router anymore. So I'm asking, why the heck is this happening?

Tried the same thing on my other computer, which has Debian Etch installed, and no such problems occurred. Is it a Lenny issue or something else is wrong?

Thank you.

P.S.
I disabled the dchp in the router's options to be sure my comp doesn't get a new ip via dhcp, but as expected this wasn't the case. Something else is wrong.

P.S.2
Another stupid thing that happens is that I can't connect to the inet form the comp with etch, though no filtering is set in the router's options. Any idea why this happens? I use analoguos setup for both machines.

Last edited by analian; 06-04-2007 at 06:43 PM.
 
Old 06-04-2007, 06:45 PM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
depending on your /etc/network/interfaces file (perhaps post it here) you might be starting a dhcp client on your debian computer. if the client is not stopped then you will of course lose your statically set address.

if dhclient or dhcpcd is actually running you should find it in the output of ps -AH
 
Old 06-04-2007, 07:07 PM   #3
analian
LQ Newbie
 
Registered: Sep 2006
Distribution: Debian testing
Posts: 6

Original Poster
Rep: Reputation: 0
Here's my /etc/network/interfaces:

Actually I've got two LAN cards, and I'm actually working with eth1_rename_ren (I can't explain why is this absurd name, but I still can't figure how to fix it). I wrote eth0 in the above example for clarity, so the eth0 in the file presented below is my other LAN card.

------------------------------------------------------------------------
# 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
allow-hotplug eth0
iface eth0 inet dhcp

auto eth0

iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider
------------------------------------------------------------------------

I tried killing all dh* processess -- found only an instance of dhcdbd running and killed it. Now I can't even configure my eth1_rename_ren statically at all, no idea why.

Btw I'm using kernel version 2.6.20-1-686, if this can be useful.
 
Old 06-05-2007, 02:39 AM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
if you have 2 nics, i dont see an entry in that config file for your absurdly named interface!
unless of course that funny named interface is just an alias!

try configuring your interface with that interfaces config gile (man interfaces) will get you further on how to use the directives, etc.
hotplug is enabled, so if the link goes down (for whatever reason) and comes back up, hotplug will probably either down and up the interface, or simply request another dhcp address.
 
Old 06-05-2007, 09:12 AM   #5
analian
LQ Newbie
 
Registered: Sep 2006
Distribution: Debian testing
Posts: 6

Original Poster
Rep: Reputation: 0
It appears you are right.

First I managed to change the stupid eth1_rename_ren name to eth1 using udev, which is one problem less.

Then I edited /etc/network/interfaces accordingly and I've got static address now and life's better (:

I just don't understand where did the dhcp reply come form, since I've disabled dchp on my router. I guess it was routed through my router from my isp's dchp server.

Thank you for the advice.
 
Old 06-07-2007, 03:11 PM   #6
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
dhcp responses are not routed!
if a dhcp request times out the client asignes an address in a certain subnet (169.254.xxx.xxx) i believe... not 100% sure though.
 
Old 06-08-2007, 06:16 PM   #7
analian
LQ Newbie
 
Registered: Sep 2006
Distribution: Debian testing
Posts: 6

Original Poster
Rep: Reputation: 0
That's an answer where did these 169.254.xxx.xxx addresses get from (:

Thank you.
 
Old 06-08-2007, 06:28 PM   #8
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 625

Rep: Reputation: 32
Quote:
Originally Posted by analian
That's an answer where did these 169.254.xxx.xxx addresses get from (:

Thank you.
i think those are the default addresses when no ip is assigned either static or dynamic.....just a thought....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
debian lenny glibc_2.4 missing Gerard_2009 Debian 5 06-01-2008 08:14 AM
Need basic router help (Debian Lenny) Nathan1993 Linux - Server 3 04-21-2007 12:24 PM
Last week Debian Testing is still ETCH or lenny already?? doraimom Debian 1 04-09-2007 07:01 AM
9.3 weird behaviour ????? bigjohn Suse/Novell 9 07-06-2005 06:44 AM
Weird Apache behaviour ? zalmox Linux - Software 1 11-10-2003 09:12 AM


All times are GMT -5. The time now is 03:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration