LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-04-2005, 06:52 AM   #1
mehlkelm
Member
 
Registered: Apr 2003
Location: Basel, Switzerland
Distribution: Ubuntu, OS X
Posts: 77

Rep: Reputation: 15
Cannot configure ethernet at work


I tried to configure my laptop to connect to the network at work.

I have following information from the admin:

IP: w.x.y.a
netmask: 255.255.255.0
gateway w.x.y.b
dns-server: w.x.1.1
w.x.1.5

I edited my /etc/network/interfaces like this:

Code:
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.

route -n gives me:
Code:
Destination         Gateway      Genmask       etc...
w.x.y.0               0.0.0.0        255.255.255.0
0.0.0.0               w.x.y.254    0.0.0.0
which I find strange but I dont really understand the routing table..

Any ideas?

Stefan
 
Old 07-04-2005, 07:05 AM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
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

All I can think of for now.
 
Old 07-04-2005, 07:12 AM   #3
mehlkelm
Member
 
Registered: Apr 2003
Location: Basel, Switzerland
Distribution: Ubuntu, OS X
Posts: 77

Original Poster
Rep: Reputation: 15
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

??
 
Old 07-04-2005, 07:43 AM   #4
Tons of Fun
Member
 
Registered: Dec 2004
Location: Orlando, Florida
Distribution: Debian 10 | Kali Linux | Ubuntu 20.04 LTS
Posts: 382

Rep: Reputation: 37
I had the same problem with my wifi card. In your interfaces file, change

name Ethernet LAN card

to:

name eth0

As soon as I changed mine from "name Wireless LAN card" to "name ath0", it connected.

I hope this helps.

 
Old 07-04-2005, 08:06 AM   #5
mehlkelm
Member
 
Registered: Apr 2003
Location: Basel, Switzerland
Distribution: Ubuntu, OS X
Posts: 77

Original Poster
Rep: Reputation: 15
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?

Stefan
 
Old 07-07-2005, 05:33 AM   #6
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Sorry, wrong question answered....

Last edited by pingu; 07-07-2005 at 05:55 AM.
 
Old 07-07-2005, 07:43 AM   #7
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 321

Rep: Reputation: 33
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
 
Old 07-07-2005, 07:49 AM   #8
mehlkelm
Member
 
Registered: Apr 2003
Location: Basel, Switzerland
Distribution: Ubuntu, OS X
Posts: 77

Original Poster
Rep: Reputation: 15
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.

thanks for the help
 
Old 07-09-2005, 08:13 PM   #9
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
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.
 
  


Reply



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
Cannot configure ethernet adapter soumyadas Linux - Networking 3 08-25-2005 02:06 AM
ethernet recognized but can not configure honu Linux - Hardware 1 12-24-2004 01:38 PM
Configure ethernet adapter rec Linux - Newbie 12 03-17-2004 12:35 AM
i cant configure ethernet card mrajab Linux - Hardware 0 03-01-2004 05:11 PM
Configure pc ethernet card stupidclese Linux - Newbie 2 08-31-2003 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:56 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration