DebianThis forum is for the discussion of Debian Linux.
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.
iface eth0 inet static
name Ethernet LAN card
address w.x.y.a
netmask 255.255.255.0
gateway w.x.y.b
In the resolv.conf I have:
Code:
nameserver w.x.1.1
nameserver w.x.1.5
When I try to connect (ifup eth0) I get no error (no feedback at all - normal?) but I cant ping any IP or domain and the browser gets stuck at "looking up some.domain..."
When I boot into Windows and enter the above values everything works fine.
Start with checking if you have an IP with 'ifconfig'
(You should have since there is no message - that is standard in Linux. When a command is succesful there is normally no output.)
With only one NIC you should be fine, but try two things:
1. Check DNS: In browser, don't use name but IP; like 216.109.117.207
This is IP for www.yahoo.com, if it works you have a DNS-problem.
2. In routing-table 0.0.0.0 should be OK for default gateway, but maybe you have to specify it:
# route add default eth0
I tried the yahoo IP.
The browser says "Connection refused when attempting to contact"
and ping says "from <my ip> icmp_seq=2 destination host unreachable"
ifconfig shows my correct IP for eth0
I just realized that eth1394 takes eth0 (dmesg told me that)! I guess that's the problem.
Now I cant make eth1394 let go eth0!
I tried removing eth1394 with modconf but on reboot it's loaded again!
What is the nice way to get rid of eth1394 or its alliance with eth0. And will eth0 work with my NIC afterwards?
try to set it manualy
ifconfig eth1394 down
ifconfig eth0 w.x.y.z
route add default gw your.gate.way.IP
echo "nameserver your.DNS.I.P" > /etc/resolv.conf
type ifconfig to see the result
if u have intenet try to fill in /etc/network/interfaces like in mine but with your correct data
iface eth0 inet static
address 192.168.0.7
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
name Ethernet LAN card
network 192.168.0.0
Now that I know that the eth1394 module was the problem, it works when I do it manually.
But the behavior of the modules upon boot is not consistent. sometimes e100 binds to eth0 and eth1394 to eth1 and sometimes it is the other way round. I would like it to happen the same way on every reboot.
I added eth1394 to /etc/hotplug/blacklist so this one shouldn't load at all now, right? And therefor e100 will always be eth0, like I want it to.
if you're using the debian 3.1 installer, it should have done the network configuration correctly and automatically. it may have decided to use eth1 as your lan interface. if so, you should have set up your network config for eth1 instead of eth0.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.