LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 03-15-2013, 08:41 AM   #16
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23

I could now try again the 'sudo ifconfig eth1 up' command. It runs without producing any error. However, the network still is not turned on and 'ifconfig eth1' still shows same output as posted above (0 bytes and packets sent and received).
 
Old 03-15-2013, 09:10 AM   #17
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,869

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Have you configured eth1 ?
 
Old 03-15-2013, 10:54 AM   #18
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
I used to install network-manager and network-manager-applet after installing any linux distribution and then add address, netmask etc to it. These are still the same while the network has now become disabled. Could you please tell clearly what exactly you mean by configuring or post a link to a suitable webpage which gives such details. Thanks.

Last edited by rng; 03-15-2013 at 10:57 AM.
 
Old 03-15-2013, 11:06 AM   #19
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,869

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
By configure, I mean, using NM, WICD or direct editing of system files to set up eth1, not eth0. I take from your post you used NM for the configuration of eth1.

I don't use Debain, so I'm unfamiliar with system files that are used to configure ethernet adapters. I have had problems with NM in the past ( on a Ubuntu system ), so I use WICD now, or edit system files directly.
 
Old 03-15-2013, 12:10 PM   #20
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,460
Blog Entries: 4

Rep: Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505
Member Response

Hi,

Quote:
Originally Posted by rng View Post
I used to install network-manager and network-manager-applet after installing any linux distribution and then add address, netmask etc to it. These are still the same while the network has now become disabled. Could you please tell clearly what exactly you mean by configuring or post a link to a suitable webpage which gives such details. Thanks.
Please remember that you can always 'man command' for explanation for any bash command.

You can open a terminal and become root by 'su -' and answering password then for a static IP assignment do;
Code:
 ~#ifconfig -a                                            #get recognized devices, even downed devices. Look at 'man ifconfig'.
 ~#ifconfig eth1 192.168.1.10                   #set to a available IP, mask will be set
 ~#route add default gw 192.168.1.1        #set to your gateway
 ~#route -n                                               #show the kernel route table
 ~#ifconfig eth1 up                                    #should be up already
 ~#ping 192.168.1.1                                 #ping your gateway IP address
 ~#ping 208.69.32.130                             #google.com IP
 ~#ping google.com                                   #test DNS, if fail then check /etc/resolv.conf for your ISP DNS or use third level such as '4.2.2.1' which is one of many from Verizon
Sample '/etc/resolv.conf';
Code:
~# cat /etc/resolv.conf
#----- cut here--------------
#search workgroup           #you can search local domain replace workgroup with your domain name

#Google DNS
#nameserver 8.8.8.8
#10-21-12:11:31 onebuck

nameserver 192.168.1.1    #for local DNS server if setup
nameserver 4.2.2.1            #Verizon third level DNS
nameserver 4.2.2.2
nameserver  208.67.220.220 # OpenDNS IP address
#-----End cut --------------
If your route is setup correctly, something like this;
Code:
~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    1      0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
From 'man route';
Code:
OUTPUT
       The output of the kernel routing table is organized in the following columns

       Destination
              The destination network or destination host.

       Gateway
              The gateway address or '*' if none set.

       Genmask
              The netmask for the destination net; '255.255.255.255' for a host destination and '0.0.0.0' for the default route.

       Flags  Possible flags include
              U (route is up)
              H (target is a host)
              G (use gateway)
              R (reinstate route for dynamic routing)
              D (dynamically installed by daemon or redirect)
Notice the 'U' & 'G' flags from the 'man route' then look at the route sample and note the UG for eth1 gateway that is classed as 'up'.

Quote:
Just a few links to aid you to gaining some understanding;



1 Linux Documentation Project
2 Rute Tutorial & Exposition
3 Linux Command Guide
4 Bash Beginners Guide
5 Bash Reference Manual
6 Advanced Bash-Scripting Guide
7 Linux Newbie Admin Guide
8 LinuxSelfHelp
9 Utimate Linux Newbie Guide
10 Linux Home Networking
11 Virtualization- Top 10

The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
Hope this helps!
 
Old 03-15-2013, 12:30 PM   #21
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
@Onebuck:
Thanks for detailed information, steps and links. I will try these and post the feedback.

@camorri:
I do not think that the command 'ifconfig eth1 down' leads to LED lights at the LAN connector to be switched off. What command can do that? I need to use the same command to switch on the connector.
 
Old 03-15-2013, 02:30 PM   #22
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,869

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Quote:
I do not think that the command 'ifconfig eth1 down' leads to LED lights at the LAN connector to be switched off. What command can do that?
The light is controlled by hardware; as far as I know. The light goes on when there is a signal on the ethernet cable plugged into the port. You need an active device at the other end of the cable, and a good cable.
 
Old 03-15-2013, 08:53 PM   #23
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by camorri View Post
The light is controlled by hardware; as far as I know. The light goes on when there is a signal on the ethernet cable plugged into the port. You need an active device at the other end of the cable, and a good cable.
The light will go off if there is no signal on the cable. But it also goes off if you disable network in windows (try it). In my system, signal is clearly there in cable and network is working perfectly in windows but light is not turning on in linux. In linux, the light switches on very soon after booting linux, which is not occuring in my system. With 'ifconfig eth1 down', the network is disconnected but light does not go off.

I had noted this in a previous question also but at that time my network was working properly.
http://www.linuxquestions.org/questi...ection-897585/

Last edited by rng; 03-15-2013 at 11:18 PM.
 
Old 03-16-2013, 11:17 AM   #24
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,869

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Quote:
The light will go off if there is no signal on the cable.
Agreed. I pulled the cable on mine, the light goes off.

Quote:
But it also goes off if you disable network in windows (try it).
I don't have windows on my system, so I can not test this.

Quote:
With 'ifconfig eth1 down', the network is disconnected but light does not go off.
This works the same on my system. I have WICD installed, the interesting part for we is, if I run ifconfig eth0 down, I can still ping my router. I have to go into WICD, and press Disconnect button for things to stop working. Go into NM and disable the interface, see what the light does then.

The fact that your light does come on part way through the boot, leads me to believe there is nothing wrong in hardware.

You have Network Manager installed. Things worked normally, then stopped.

Was your interface when things worked known as eth0 or eth1 ?

If there has been a name change, due to something link a udev rule changing it, I suspect NM is messed up. I got rid of it when I ran Ubuntu on my netbook because of dumb problems like this. I replaced it with WICD for ease of use.
 
Old 03-16-2013, 11:36 PM   #25
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
I went into BIOS and disabled "Onboard LAN boot ROM" and my network connection started working normallly and my problem got solved.

Should this always be disabled whenever linux is installed? Why was network working properly earlier?
Quote:
Was your interface when things worked known as eth0 or eth1 ?
It has been eth1 for a long time. Now also it has resumed to be eth1.
Quote:
Go into NM and disable the interface, see what the light does then.
I tried disabling networking (top option on right clicking the network manager applet) but still the lights are on. I think the only way to reliably disconnect a linux computer from network is to unplug the cable connection.

Last edited by rng; 03-17-2013 at 08:15 AM.
 
Old 03-17-2013, 07:07 AM   #26
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,869

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Well, glad you got it working again. Never used, or set an option in the BIOS like that.
So, no comment there.

Best of luck with it.
 
Old 04-05-2013, 12:20 AM   #27
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
After these many days when network was working well, the same problem has restarted. The network has gone off in Debian linux with LED lights at LAN connection switched off. It occurred suddenly while the system (including the network) was working properly. The network does not work even from Arch or Mint linux which are on this system. However, the lights return when I boot to windows and the network works without any problem. The output of various commands from linux are as follows:
Code:
$lspci -v
Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8169 PCI Gigabit Ethernet Controller (rev 10)
Kernel driver in use: r8169

$ route -n 
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

$ sudo modprobe r8169
(finishes without any message or error)

$sudo systemctl 
RTL8169 loaded active plugged

$ ls /sys/class/net
eth1  lo

$ ip link show dev eth1
2: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT qlen 1000
    link/ether 00:16:e6:93:6e:5f brd ff:ff:ff:ff:ff:ff

$ sudo ip link set eth1 up 
(finishes without any message or error)

$ ifconfig
eth1      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx  
          inet6 addr: fe80::216:e6ff:fe93:6e5f/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:62745 errors:0 dropped:40 overruns:0 frame:0
          TX packets:3964 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:8842962 (8.4 MiB)  TX bytes:549583 (536.7 KiB)
          Interrupt:23 Base address:0x2000 

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:64 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5168 (5.0 KiB)  TX bytes:5168 (5.0 KiB)


$ systemctl status NetworkManager.service
NetworkManager.service - Network Manager
	  Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled)
	  Active: active (running) since Fri, 05 Apr 2013 08:49:09 +0530; 33min ago
	Main PID: 824 (NetworkManager)
	  CGroup: name=systemd:/system/NetworkManager.service
		  â”” 824 /usr/sbin/NetworkManager --no-daemon


$ systemctl status network.service
network.service
	  Loaded: error (Reason: No such file or directory)
	  Active: inactive (dead)
Any help will be appreciated.
 
Old 04-12-2013, 08:11 AM   #28
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
I disabled the onboard LAN and put in another ethernet card which was picked up automatically and works without a problem. Obviously, there is some hardware problem with onboard LAN.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Elinks 0.12pre5 loads slowly via home ethernet connection even with ipv6 disabled quexxon-12 Linux - Networking 0 10-07-2011 03:51 PM
Wireless and Ethernet interfaces disabled in Ubuntu 8.10 NearIdentity Linux - Networking 1 10-04-2009 11:33 PM
Problem with ethernet card [Marvel Yukon Ethernet controller] in Fedora 4 me4linux Linux - Hardware 3 03-28-2007 03:39 PM
Ethernet controller disabled? MatthiasOtto Linux - Hardware 6 01-15-2005 01:37 PM
Ethernet Controller juniox Linux - Hardware 1 11-08-2004 04:03 PM


All times are GMT -5. The time now is 08:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration