Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
I have ubuntu 6.06 and an ADSL modem with ethernet cable which goes in my laptop. My internet is not working now. I went to system->administration->networking and then choose the modem connection. when i checked on the enable this device, it asks for phone number and Dial-prefix. As such i have a normal ADSL modem with dynamic ip with broadband. I tried my phone number in this but it is not proper.
I tried all the commands like
sudo dhclient eth0
sudo ifdown eth0
sudo ifup eth0
but still no progress. The problem is clear that the modem device is not activated but i dont know how to activate it. It asks for phone number and dial prefix options
An ADSL modem is not the kind of modem to which the tool refers. You should go back into your network configuration tool and change your selection to something like 'ethernet'.
Once that has been done, run the same commands you've already tried. That should get things going.
--- rod.
An ADSL modem is not the kind of modem to which the tool refers. You should go back into your network configuration tool and change your selection to something like 'ethernet'.
Once that has been done, run the same commands you've already tried. That should get things going.
--- rod.
Hello,
I checked in my system->administration->networking
But here there are only two option in the general tab i.e. wireless connection and modem connection. There is no ethernet connection in that list
I think ubuntu has not detected my ethernet device. Is there any solution..
My hypothesis is that the ethernet hardware (there IS ethernet, right?) has not been detected properly on boot. Either there is no installed driver, or the driver cannot initialize the ethernet hardware. First, has there ever been an OS in which the ethernet hardware did work installed on this laptop?
In order to identify the ethernet hardware, become root and do:
Code:
/sbin/lspci -v
It should print a number of stanzas of information regarding the various hardware subsystems in your computer. One or more of those should be related to the ethernet. It will probably be identified with words similar to "Ethernet controller:", followed by a lot of parameters describing the hardware. This should include a manufacturer, model, and revision level. Post that information here, if it shows up. If it doesn't, you will have to scan through the spec's for your laptop, and find where it is documented. You may be able to search the net to find this info, based on the make/model of your laptop.
It is unlikely to exist, but try running (again, as root) /sbin/lsmod, to see what kernel drivers are installed. Ethernet drivers tend not to be built into the kernel, since there are so many of them. Potentially, you will see a driver name that matches your ethernet hardware.
Run dmesg, and scan for any references to 'eth0'. Particularly, look for any error, warnings, or other indication of faults and failures around the the lines where eth0 is referenced. If any are found, post them here.
Finally, scan the system logs, probably in /var/log/messages for messages similar to those described above. Post any that are found.
(Yes, I realize it will be difficult to copy and past them here without a working network, unless you have a working wireless)
Once the ethernet hardware has been identified, we can take steps to make sure the correct driver software gets loaded, and then you will be able to configure, as you attempted already.
--- rod.
My hypothesis is that the ethernet hardware (there IS ethernet, right?) has not been detected properly on boot. Either there is no installed driver, or the driver cannot initialize the ethernet hardware. First, has there ever been an OS in which the ethernet hardware did work installed on this laptop?
In order to identify the ethernet hardware, become root and do:
Code:
/sbin/lspci -v
The output of this command did show a block pertaining to ethernet controller:
*********************************************
0000:09:00.0 Ethernet controller: Marvell Technology Group Ltd.: Unknown device 4354 (rev 12)
Subsystem: Dell: Unknown device 022f
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at fe8fc000 (64-bit, non-prefetchable) [size=16K]
I/O po
rts at de00 [size=256]
Capabilities: <available only to root>
*********************************************
Quote:
Originally Posted by theNbomr
It should print a number of stanzas of information regarding the various hardware subsystems in your computer. One or more of those should be related to the ethernet. It will probably be identified with words similar to "Ethernet controller:", followed by a lot of parameters describing the hardware. This should include a manufacturer, model, and revision level. Post that information here, if it shows up. If it doesn't, you will have to scan through the spec's for your laptop, and find where it is documented. You may be able to search the net to find this info, based on the make/model of your laptop.
It is unlikely to exist, but try running (again, as root) /sbin/lsmod, to see what kernel drivers are installed. Ethernet drivers tend not to be built into the kernel, since there are so many of them. Potentially, you will see a driver name that matches your ethernet hardware.
Run dmesg, and scan for any references to 'eth0'. Particularly, look for any error, warnings, or other indication of faults and failures around the the lines where eth0 is referenced. If any are found, post them here.
Finally, scan the system logs, probably in /var/log/messages for messages similar to those described above. Post any that are found.
(Yes, I realize it will be difficult to copy and past them here without a working network, unless you have a working wireless)
Once the ethernet hardware has been identified, we can take steps to make sure the correct driver software gets loaded, and then you will be able to configure, as you attempted already.
--- rod.
My friend suggested me to reinstall ubuntu7.10, since this is more stable. What do you suggest
Last edited by saurabhgupta1403; 06-12-2008 at 11:58 PM.
You could do that. As it happens, I use a PC with a Marvell ethernet controller. The driver for it is called 'skge'. You could try (as root):
Code:
modprobe skge
I cannot tell whether your ethernet chip is compatible with that driver, or whether your distro includes that driver (I think the drivers distributed must be pretty sandard, though). Give it a shot and see what happens. If it works, I will explain how to set it up to load from bootup.
You could do that. As it happens, I use a PC with a Marvell ethernet controller. The driver for it is called 'skge'. You could try (as root):
Code:
modprobe skge
I cannot tell whether your ethernet chip is compatible with that driver, or whether your distro includes that driver (I think the drivers distributed must be pretty sandard, though). Give it a shot and see what happens. If it works, I will explain how to set it up to load from bootup.
--- rod.
The command "modprobe skge" didn't do anything. The system->Administrator->Network Tools shows network device as Loopback Interface(lo). when i selected eth0, it showed, Hardware not available and all other interface also nt available. I think ubuntu 6.06 is not able to detect my ethernet port. internet works very fine on MS vista. Can you please help me how to fix it or how to load the drivers during boot up.
When you say "didn't do anything" do you mean that it executed without complaint? Did you subsequently do 'lsmod' to see if the module was loaded? It sounds like it did load properly, and we just have to set up a few more system files.
I don't know the details of Ubuntu's convention for filenames, so I will try to describe things in general terms. In the /etc hierarchy, you should be able to find a file named 'modprobe.conf', possibly 'modules.conf'. Also in the /etc/hierarchy will be a directory containing config files for each network device. Evidently, your system has configured the loopback interface 'lo', so do a find for ifcfg-lo. Wherever you ind that, we hope to also find ifcfg-eth0. For the remainder of this post, I will assume it is found and correctly configured.
In modprobe.conf, add the line
Code:
alias eth0 skge
Remove the installed module, if it is installed:
Code:
rmmod skge
Re-load it:
Code:
modprobe skge
Startup the network
Code:
ifup eth0
Check functionality:
Code:
/sbin/ifconfig -a
ping linuxquestions.org
We really ned to first know about whether the driver installed correctly or not.
Anyone who knows the details of a Ubuntu network setup, please jump in here.
--- rod.
When you say "didn't do anything" do you mean that it executed without complaint? Did you subsequently do 'lsmod' to see if the module was loaded? It sounds like it did load properly, and we just have to set up a few more system files.
The output of the comamnd lsmod after "modprobe skge"
**************************************************
I don't know the details of Ubuntu's convention for filenames, so I will try to describe things in general terms. In the /etc hierarchy, you should be able to find a file named 'modprobe.conf', possibly 'modules.conf'. Also in the /etc/hierarchy will be a directory containing config files for each network device. Evidently, your system has configured the loopback interface 'lo', so do a find for ifcfg-lo. Wherever you ind that, we hope to also find ifcfg-eth0. For the remainder of this post, I will assume it is found and correctly configured.
In modprobe.conf, add the line
Code:
alias eth0 skge
Remove the installed module, if it is installed:
Code:
rmmod skge
Re-load it:
Code:
modprobe skge
Startup the network
Code:
ifup eth0
Check functionality:
Code:
/sbin/ifconfig -a
ping linuxquestions.org
We really ned to first know about whether the drive installed correctly or not.
Anyone who knows the details of a Ubuntu network setup, please jump in here.
--- rod.
I am unable to find the file module.conf in my ubuntu, however a file named modules in the /etc/ directory has the following contents:
**********************************************************************
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
Yes, you are most of the way there. The driver has loaded and found your hardware, as evidenced by the MAC address it has read from the ethernet hardware.
Try, as root:
Code:
/sbin/ifconfig eth0 address 192.168.0.123 up
For the address, replace the 192.168.0.123 with a suitable address, if you know one exists.
Afterward, try pinging something on a local network, if you have one. Also, run 'ifconfig -a' again, to see that has been assigned an IP address.
Try adding the name of the skge driver to /etc/modules (it appears to be the correct file). Re-boot. With luck, your ethernet comes up automatically.
--- rod.
Okay, after little research, I found Ubuntu Geek, which describes well enough where the appropriate files are for a Ubuntu system. If your network is still not working after the above steps, try editing /etc/network/interfaces:
Code:
sudo vi /etc/network/interfaces
Make it contain the following:
Code:
# The primary network interface - use DHCP to find our address
auto eth0
iface eth0 inet dhcp
Okay, after little research, I found Ubuntu Geek, which describes well enough where the appropriate files are for a Ubuntu system. If your network is still not working after the above steps, try editing /etc/network/interfaces:
Code:
sudo vi /etc/network/interfaces
Make it contain the following:
Code:
# The primary network interface - use DHCP to find our address
auto eth0
iface eth0 inet dhcp
Run, as root,:
Code:
ifconfig eth0 up
This should bring your network alive.
--- rod.
hello,
In the /etc/network/interfaces file, it already contains this:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
......
.....
.....
---------
So I didn't change anything. Still the internet is not working.I used the command
ifconfig eth0 up
And, to determine that the internet is not working, you did.... ? And the results were..... ? You did this while the ethernet driver was still loaded, right?
BTW, was 'the internet' ever working at this site, on any host with any OS?
--- rod.
I checked in my system->administration->networking
But here there are only two option in the general tab i.e. wireless connection and modem connection. There is no ethernet connection in that list
I think ubuntu has not detected my ethernet device. Is there any solution..
Why not try upgrading to the latest version of Ubuntu? v6 is already two generations old. if there's a driver problem, it might have been fixed in later releases.
Open a terminal and code:
sudo apt-get update
sudo apt-get upgrade
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.