Network Problem

Asked by Ramakrishna

Our Ubuntu 10.10 LAN server just developed a problem.

I have tried the following and its not working.

I tried the following with TWO different network Cards (replaced the Micronix with a RTL8139B). Because I suspected the NIC could have developed a problem. I got the same results in the both cases.

sim@zambesi-server:~$ ifconfig
lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:1138 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1138 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:120628 (120.6 KB) TX bytes:120628 (120.6 KB)

virbr0 Link encap:Ethernet HWaddr 0e:19:b7:54:7c:9d
          inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
          inet6 addr: fe80::c19:b7ff:fe54:7c9d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:51 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:9529 (9.5 KB)

sim@zambesi-server:~$ sudo ifup eth1
SIOCSIFADDR: No such device
eth1: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
eth1: ERROR while getting interface flags: No such device
Failed to bring up eth1.

sim@zambesi-server:~$ sudo lshw -C network
[sudo] password for sim:
  *-network:0 UNCLAIMED
       description: Ethernet controller
       product: MX987x5
       vendor: Macronix, Inc. [MXIC]
       physical id: b
       bus info: pci@0000:00:0b.0
       version: 25
       width: 32 bits
       clock: 33MHz
       capabilities: pm bus_master cap_list
       configuration: latency=32 maxlatency=56 mingnt=8
       resources: ioport:9100(size=256) memory:f7000100-f70001ff memory:f6000000-f603ffff
  *-network:1 UNCLAIMED
       description: Ethernet controller
       product: RTL-8139/8139C/8139C+
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: c
       bus info: pci@0000:00:0c.0
       version: 10
       width: 32 bits
       clock: 33MHz
       capabilities: pm bus_master cap_list
       configuration: latency=32 maxlatency=64 mingnt=32
       resources: ioport:9500(size=256) memory:f7001100-f70011ff

sim@zambesi-server:~$ sudo lspci | grep -i eth
00:0b.0 Ethernet controller: TEC Corporation Device 0531 (rev 25)
00:0c.0 Ethernet controller: Coreco Inc Device 8139 (rev 10)

Please someone assist.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Please open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo lspci | grep -i eth

sudo lshw -C network

sudo ifconfig -a

sudo lsmod | grep 8139

give your user password when requested, you don't see nothing when you type it, then press enter.

Copy and paste the result here

Thank you

Revision history for this message
Ramakrishna (ramakrishna-kaki) said :
#2

ramakrishna@Eureka-desktop:~$ sudo lspci | grep -i eth
[sudo] password for ramakrishna:
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) 01:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

ramakrishna@Eureka-desktop:~$ sudo lshw -C network
  *-network:0
description: Ethernet interface
product: RTL-8139/8139C/8139C+
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:01:00.0
logical name: eth0
version: 10
serial: 00:e0:4c:e9:da:a6
size: 100MB/s
capacity: 100MB/s
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=8139too driverversion=0.9.28 duplex=half latency=64 link=yes maxlatency=64 mingnt=32 module=8139too multicast=yes port=MII speed=100MB/s

  *-network:1
description: Ethernet interface
product: RTL-8139/8139C/8139C+
vendor: Realtek Semiconductor Co., Ltd.
physical id: 5
bus info: pci@0000:01:05.0
logical name: eth1
version: 10
serial: 00:0f:ea:94:10:30
size: 10MB/s
capacity: 100MB/s
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=8139too driverversion=0.9.28 duplex=half latency=64 link=no maxlatency=64 mingnt=32 module=8139too multicast=yes port=MII speed=10MB/s

ramakrishna@Eureka-desktop:~$ sudo ifconfig -a
eth0
Link encap:Ethernet HWaddr 00:E0:4C:E9:DA:A6
inet6 addr: fe80::2e0:4cff:fee9:daa6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:7133 (6.9 KB)
Interrupt:18 Base address:0xa000
eth1
Link encap:Ethernet HWaddr 00:0F:EA:94:10:30
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:20 Base address:0xc000
eth0:avah Link encap:Ethernet HWaddr 00:E0:4C:E9:DA:A6
inet addr:169.254.10.218 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:18 Base address:0xa000
lo
Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:776 (776.0 b) TX bytes:776 (776.0 b)

ramakrishna@Eureka-desktop:~$ sudo lsmod | grep 8139
8139too 27776 0
8139cp 25088 0
mii 6528 2 8139too,8139cp

Revision history for this message
Ramakrishna (ramakrishna-kaki) said :
#3

Thanks for your immediate Response

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#4

I think you hardware may have only a configuration issue
What kind of network or external device are you trying to connect...?
1) - a local area network
2) - a ethernet modem/router

Thank you.

Revision history for this message
Ramakrishna (ramakrishna-kaki) said :
#5

Iam using Local Area Network only and the connected speed is 10Mb .
When iam using Windows XP i will configure link speed to 10Mb Half duplex then only net used to work.

Revision history for this message
Ramakrishna (ramakrishna-kaki) said :
#6

Dear marcobra,

Firstly iam thankful for your interest in solving this problem. Iam very happy to know this is only a congfiguration issue. I thought of this is some major problem and i was so depressed even. I will be very thankful to you if you can solve my problem as soon as possible.

Thanking you.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#7

Please boot this pc in Windows and from the windows menu:
start->run
type cmd press enter
Then type:
ipconfig
press enter
try to read your windows assigned ip number.

Please copy and paste it here.
Thank you

Revision history for this message
Ramakrishna (ramakrishna-kaki) said :
#8

Dear Marcobra,

I booted my pc as you said. Here is the data which i got it by running ipconfig

Windows IP Configuration
Ethernet adapter Local Area Connection:
        Connection-Specific DNS Suffix : bits-pilani.ac.in
        IP Address : 172.23.1.93
        Subnet Mask : 255.255.255.0
        Default Gateway : 172.23.1.254

Thanking you

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#9

Please first try to configure your network as DHCP client
Open menu System->Administration->Network-> Wired Connection : properties
and try first to configure your eth0 and eth1 as dhcp
and restart your network layer, open a Terminal from the menu
Applications->Accessories->Terminal and type:

sudo /etc/init.d/networking restart

give your user password when requested, you don't see nothing when you type it, then press enter.

Try to use your network

----------------------------------------------------------------------------
If upper instructions don't make your network work
-------------------------
Please configure your nics first eth0 and then eth1 like the Windows configuration
Open menu System->Administration->Network-> Wired Connection : properties
Select -> Static ip address and specify
IP Address : 172.23.1.93
Subnet Mask : 255.255.255.0
Default Gateway : 172.23.1.254
for the dns use opendns server or your
DNS: 208.67.222.222 and 208.67.220.220

Restart your network: open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo /etc/init.d/networking restart

give your user password when requested, you don't see nothing when you type it, then press enter.

Try to use your network

Hope this help

Revision history for this message
Ramakrishna (ramakrishna-kaki) said :
#10

Dear Marcobra,

After Configuring the network to DHCP and restarting the results i got the below message

ramakrishna@Eureka-desktop:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces...
There is already a pid file /var/run/dhclient.eth0.pid with pid 6961
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:e0:4c:e9:da:a6
Sending on LPF/eth0/00:e0:4c:e9:da:a6
Sending on Socket/fallback
RTNETLINK answers: No such process
There is already a pid file /var/run/dhclient.eth1.pid with pid 134519120
 Internet Systems Consortium DHCP Client V3.0.5
 Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth1/00:0f:ea:94:10:30
Sending on LPF/eth1/00:0f:ea:94:10:30
Sending on Socket/fallback
There is already a pid file /var/run/dhclient.eth0.pid with pid 134519120
Internet Systems Consortium DHCP Client V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:e0:4c:e9:da:a6
Sending on LPF/eth0/00:e0:4c:e9:da:a6
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9 No
DHCPOFFERS received. No working leases in persistent database - sleeping. [ OK ]

The Same thing for eth1

after configuring to static ip and restarting the network the message i got is
ramakrishna@Eureka-desktop:~$ sudo /etc/init.d/networking restart
 * Reconfiguring network interfaces... [ OK ]

In either case my net is not working.
Thanking you

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#11

Try to get the ip address of some different devices connected to your network...
Please ping that ip address from your ubuntu pc open a terminal and type:

ping 172.23.1.NNN

or try to ping your gateway

ping 172.23.1.254

Please give us some feedback
Thank you

Revision history for this message
Ramakrishna (ramakrishna-kaki) said :
#12

Dear Mar cobra,

Thanks for your reply,
I have discussed this problem with one of my friend and he suggested me to do this
su root
password
mii-tool -F 10baseT-HD
sudo /etc/init.d/networking restart
mii-tool -R

After these number of commands my net starts working and i was delightful.
But he told me do this every time I boot in to ubuntu.
is there any permanent solution by which it can work with out entering any more commands after i boot because this system will be used by my parents who are not familiar with this OS.
looking forward for your reply soon.

Thank You

Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#13

Try to open your /etc/rc.local

sudo gedit /etc/rc.local

and add your desired row into that file:

mii-tool -F 10baseT-HD
sudo /etc/init.d/networking restart
mii-tool -R

Please be sure, don't touch, at the end of file, the "exit 0" instruction

Hope this Help

Revision history for this message
Ramakrishna (ramakrishna-kaki) said :
#14

Thanks marcobra, that solved my question.