Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
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.
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940
Rep:
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
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
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.
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940
Rep:
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.
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.
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.