internet conection in linux

  • balakrishna
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Mar 09, 2008
  • Posts: 10
  • Status: Offline

Post March 15th, 2008, 12:56 am

first i did system-config-network
2.then i selected new from menu
3.i selected ethernet connection
In that way i configured
after that when i am trying to activate the ethernet card it is displaying the error as Sorry eth0 does not seem to be present ....delay in initialization
and onemore thing
dhclient is running but when i gave ifconfig it is not able to determine eth0



CAN ANYONE PLEASE TELL ME THE SOLUTION FOR THIS PROBLEM
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 15th, 2008, 12:56 am

  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post March 15th, 2008, 5:34 am

It sounds like Linux isn't seeing the NIC. To check, run dmesg | more
See if it's listed or if it has another name.
Then run dhclient eth0 or whatever it is.
ifconfig -u should show the connection.

The commands I gave maybe different depending on the distribution.
How do you know when a politician is lying? His mouth is moving.
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post March 15th, 2008, 11:12 am

it may be easier to see the nic if you do lspci | Eth
(notice the capital E in eth. you should capitalize this when you run the command)
what distro are you using?
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • balakrishna
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Mar 09, 2008
  • Posts: 10
  • Status: Offline

Post March 15th, 2008, 9:25 pm

presently i am using redhat linux 5.0
  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post March 16th, 2008, 5:52 am

You might as well get a newer version. It would make things a lot easier.
How do you know when a politician is lying? His mouth is moving.
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post March 16th, 2008, 6:22 am

do you mean redhat enterprise linux? or just plain redhat linux? (there is a difference >.<)
i would assume RHEL..?
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • balakrishna
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Mar 09, 2008
  • Posts: 10
  • Status: Offline

Post March 16th, 2008, 6:45 am

yes it is RHEL 5.0
So what do i do for the internet connection in linux
  • this213
  • Guru
  • Guru
  • User avatar
  • Joined: Mar 01, 2004
  • Posts: 1242
  • Loc: ./
  • Status: Offline

Post March 19th, 2008, 12:00 pm

First off, make sure your card is detected. As root:
Code: [ Select ]
/sbin/lspci | grep -i eth


If your card isn't detected here, you're not going to be able to configure it. If it's not detected, your card is either bad or the driver for it isn't installed (the latter of which would be unlikely).

If your card is detected, open /etc/sysconfig/network-scripts/ifcfg-eth0 in your favorite text editor and make it look something like this:
Code: [ Select ]
DEVICE=eth0
BOOTPROTO=static
BROADCAST=123.123.123.255
HWADDR=00:00:00:00:00:00
IPADDR=123.123.123.123
NETMASK=255.255.255.0
NETWORK=123.123.123.0
ONBOOT=yes
GATEWAY=123.123.123.1
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
NM_CONTROLLED=no
  1. DEVICE=eth0
  2. BOOTPROTO=static
  3. BROADCAST=123.123.123.255
  4. HWADDR=00:00:00:00:00:00
  5. IPADDR=123.123.123.123
  6. NETMASK=255.255.255.0
  7. NETWORK=123.123.123.0
  8. ONBOOT=yes
  9. GATEWAY=123.123.123.1
  10. TYPE=Ethernet
  11. USERCTL=no
  12. IPV6INIT=no
  13. PEERDNS=yes
  14. NM_CONTROLLED=no

Of course, use values appropriate to your network. To get the NICs MAC address (HWADDR in the file), you can do:
Code: [ Select ]
dmesg | grep -i eth

and look for a line something like:
Code: [ Select ]
forcedeth 0000:00:0a.0: ifname eth0, PHY OUI 0x5043 @ 1, addr 00:00:00:00:00:00

Be sure to include the last line in the file, otherwise NetworkManager could make a mess of things for you.

Once you've done this, issue:
Code: [ Select ]
/etc/init.d/network restart

If your NIC doesn't come up, post whatever errors you're getting.
  • balakrishna
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Mar 09, 2008
  • Posts: 10
  • Status: Offline

Post March 20th, 2008, 2:53 am

when i did lspci | grep -i eth
It is displaying that ethernet controller :unknown device

and when i did dmesg | grep -i eth
it is displaying nothing
  • vijayan
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Jul 31, 2006
  • Posts: 52
  • Loc: india
  • Status: Offline

Post March 20th, 2008, 3:42 am

Hi,

try with this command [b]neat-tui[/b]


**********
Vijayan Linux
**********
  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post March 20th, 2008, 5:37 am

When I was having trouble with an adapter in FreeBSD, I went to radio shack and I bought a Trendnet TU2-ET100 USB to Ethernet adapter for under $30 and that was the end of the problem.

Once again, Unix and Linux fall short on 'user friendly' configuration of hardware and software. After so many years of being in existence, there is no reason for it.
How do you know when a politician is lying? His mouth is moving.
  • this213
  • Guru
  • Guru
  • User avatar
  • Joined: Mar 01, 2004
  • Posts: 1242
  • Loc: ./
  • Status: Offline

Post March 20th, 2008, 6:10 am

Your card not being detected (or being detected as an unknown device) means that your card is either bad or the driver isn't installed for it. I'd like to see Windblows bring up a NIC with no driver.

If the card is good, it means you're using something that isn't remotely normal to begin with. If this is a wireless card (which would be odd running under RHEL), see here: http://fedoramobile.org/wireless/

If you're using a wireless card, it probably means that you're not running a server, which then means that you have no need for RHEL on this machine and you would be better served by a desktop-centric distribution, like Fedora.

If your card is bad, you can get a new Gigabit speed card from newegg for around $20 (shipping included) or a 10/100 card for around $10.

Of course, the other option is that you are indeed running Redhat Linux 5, in which case you need a newer distribution.
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post March 20th, 2008, 7:12 am

this213 wrote:
Your card not being detected (or being detected as an unknown device) means that your card is either bad or the driver isn't installed for it. I'd like to see Windblows bring up a NIC with no driver.

exactly.. i'd also like to see winblows have as much default driver support as linux.
i was so confused the first time i installed linux and i didn't have to install mobo drivers, ethernet drivers, usb drivers, sound card drivers.... lol
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Joined: Jan 23, 2004
  • Posts: 2673
  • Loc: Somewhere outside the box in Sarasota, FL.
  • Status: Offline

Post March 20th, 2008, 10:50 am

Don2007 wrote:
When I was having trouble with an adapter in FreeBSD, I went to radio shack and I bought a Trendnet TU2-ET100 USB to Ethernet adapter for under $30 and that was the end of the problem.

Once again, Unix and Linux fall short on 'user friendly' configuration of hardware and software. After so many years of being in existence, there is no reason for it.


I have said it before and I will say it again; *nix is just not for everyone I guess.

Some people have a hard time reading the hardware compatibility lists, others with simple instructions on how to enable drivers.

For those people, they make Windows. Bingo, everyone's happy because there are choices.
"It's always a long day, 86,400 won't fit into a short."
  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post March 20th, 2008, 11:56 am

You're right and you're wrong. You right that Unix and Linux aren't for everyone but you're wrong about them being 'simple instructions'. The cups driver is just one example.

Then I hear Linux users talking about how Linux is going to be #1 and surpass MS. That's not going to happen.
How do you know when a politician is lying? His mouth is moving.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 20th, 2008, 11:56 am

Post Information

  • Total Posts in this topic: 26 posts
  • Users browsing this forum: No registered users and 137 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.