LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-06-2006, 11:37 AM   #1
Giusemarini
LQ Newbie
 
Registered: Aug 2005
Posts: 10

Rep: Reputation: 0
Network doesn't work!


Hi everybody.
I've just installed Ubuntu 5.10 and I've got a big problem.
On my Acer Aspire 1694wlmi I've got two network cards:
- Broadcom NetXtreme Gigabit Ethernet (eth0)
- Intel PRO/Wireless 2200 BG (eth1)
Neither eth0 nor eth1 work, but I know that wifi needs more work, while in all other distributions the ethernet worked properly!
This time ethernet just doesn't work.
I tried to configure eth0 grafically and manually, but still when I try ping 192.168.1.1 (my router) the response is "Destination Host Unreachable", and if I try ping a site (like google) the response is worst: "unknown host".
In /etc/resolve.conf my gateway is correctly set.
This is my /etc/network/interfaces:

# 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
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
# The primary network interface
iface eth0 inet static
network 192.168.1.0
broadcast 192.168.1.255
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.1.1
address 192.168.1.8
netmask 255.255.255.0
gateway 192.168.1.1
iface eth1 inet static
wireless-essid MDMGDM
wireless-key aaaaaaaaaaaaaaaaaaaaaaaaaa
address 192.168.1.9
netmask 255.255.255.0
gateway 192.168.1.1
auto eth0

I can't really understand what is wrong....
Can somebody help me?
Thank you very much
Giuse
 
Old 02-06-2006, 12:43 PM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
Hi !
What is the output for "ifconfig eth0" and "ifconfig eth1" ?
What is the output for "route -n" ?
What is the output for "cat /etc/resolv.conf" ?
What is the output for "lspci" ?

Theses commands are the "bare-bones" for networking debug. It will show to us if the network card was detected, what are the current settings on the card (not at the configuration files) and network sub-system.
 
Old 02-06-2006, 01:16 PM   #3
Giusemarini
LQ Newbie
 
Registered: Aug 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Here are my outputs:

-ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:C0:9F:8E:F9:44
inet addr:192.168.1.8 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2c0:9fff:fe8e:f944/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:10


-ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:12:F0:06A:2A
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0xe000 Memory:c8219000-c8219fff


-resolv.conf
nameserver 192.168.1.1

-route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0


-lspci (network section)
0000:06:03.0 Network controller: Intel Corp. PRO/Wireless 2200BG (rev 05)
0000:06:08.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5788 Gigabit Ethernet (rev 03)
 
Old 02-07-2006, 04:49 AM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
Your setup for eth0 is fine. The route table is fine, as the resolver.
Looks like the problem is not on the machine you are working on.
Change your focus away from your machine.

Check cables, hubs, etc. Do you have a second machine in this lan to check if you can access it ? Helps if you disable the firewall in every machine you are testing.

Try to ping the other interface (WAN) of your router. May be the router is blocking replies for the ping on the LAN interface...
 
Old 02-07-2006, 01:02 PM   #5
Giusemarini
LQ Newbie
 
Registered: Aug 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by marozsas
Your setup for eth0 is fine. The route table is fine, as the resolver.
I tried on another computer of the lan, but that works fine.
Moreover the same configuration (router, ethernet card, cables) worked perfectly in Mandriva and I've just tried in Knoppix 4.0.2 and there are no problem!
The problem arises only on Ubuntu and Kubuntu 3.10!
I noticed a difference, though.
While in Ubuntu with route -n the output is:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0


In Knoppix is almost the same, but in the first line, instead of 192.168.1.0 there is 192.168.1.1.
Is it normal??
Thank you....
 
Old 02-08-2006, 04:42 AM   #6
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
No it is not normal.
The first column is a network address (all bits in the hosts section are zeros). 192.168.1.1/24 is a host address, not a network address.

The first line tells to the router sub-system that every packet to the network 192.168.1.0/255.255.255.0 can be sent directly to the wire (eth0) (because the gateway is zero).
The second line tells that packets for any other addresses (all zeros) must be sent to an another router at address 192.168.1.1 which can be found at the wire attached to eth0.
I don't known how this wrong address goes there.

To fix it:
# route del -net 192.168.1.1 netmask 255.255.255.0
# route add -net 192.168.1.0 netmask 255.255.255.0 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
Network Doesn't Work At All ljr2600 Linux - Networking 1 10-22-2005 06:05 PM
Do network installations work? l2526 SUSE / openSUSE 6 04-13-2005 03:06 AM
Home Network Similar to Work Network Boffy Linux - Networking 2 08-05-2004 06:52 PM
Getting network to work LinuxBlackBox Linux - Hardware 5 05-12-2004 03:14 AM
home network and work network PlatinumRik Linux - Wireless Networking 2 02-24-2004 07:12 PM

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

All times are GMT -5. The time now is 02:14 AM.

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