LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-04-2001, 06:16 AM   #1
Chrisf
LQ Newbie
 
Registered: Nov 2001
Distribution: RedHat 7.1
Posts: 13

Rep: Reputation: 0
Question RedHat 7.1 Ethernet problems


I just installed RedHat 7.1 and am having considerable difficulty getting connected to the Internet. I have disabled my onboard ethernet card because it was incompatible and am now using a DLink card.

It's currently part of a LAN (with a alcatel adsl speed touch home, and a linksys etherfast cable/dsl router.

When the system is booting up it does it's normal stuff but when it comes to eth0 it says:

Bringing up interface eth0:

and takes a good couple minutes and finally returns something to the effect of "assigning ip address failed"

When I type ifconfig in the terminal the eth0 doesn't show up at all. When I enter in ifconfig -a I get the following

eth0 Link encap:Ethernet HWaddr 00:50:FC:1B:96:2A
BROADCAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:11 Base address:0xd000

I also get the lo information, but I'm not sure if that's relevant so I'll leave it out for now.

I may just have the netcfg configured wrong (I'm not entirely sure what I have to assign manually, I'm using dhcp), but I'm really stuck on this and any help would be greatly appreciated (and would allow me to be rid of the evil windows forever

Thanks a lot guys
 
Old 11-05-2001, 10:36 AM   #2
WindozBytes
Member
 
Registered: Aug 2001
Location: CT, USA
Distribution: Mandriva 2008
Posts: 105

Rep: Reputation: 15
Assuming that you get your IP lease from the router and not directly from the ISP, you should be able to secure a lease with the following:

ensure that your /etc/sysconfig/network-scripts/ifcfg-eth0 file has these 3 lines

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
 
Old 11-05-2001, 11:01 AM   #3
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Just run 'netconfig' as root and set the system for DHCP. That should set the card up properly and poll the network for a DHCP lease.

Let us know if that doesn't work.

Note: Running 'ifconfig' will only show active interfaces, the '-a' switch you added is for 'all' which includes inactive interfaces.

Other things:

- make sure you're getting a link light
- You say you are part of a LAN? Does that mean you have several machines sharing your ADSL connection? If so, then how are the other machines set up? Are they DHCP or do they have static IP addresses?
 
Old 11-09-2001, 09:40 AM   #4
TheGrinch
LQ Newbie
 
Registered: Nov 2001
Location: The Netherlands
Distribution: Redhat 7.2
Posts: 6

Rep: Reputation: 0
Hi there.

Where do you get the IP address for your Linux box from? Is it from your ISP?

I had the same problem when I switched from using my *cough* windows *cough* box for internet access to using a linux box.

I have a cable connection, which is very picky on which ethernet card it accepts. Basically I had to tell the ethernet card (the new one) to have the MAC address of the old card. (Don't use the old card anymore since it is only 10 MBit.)

In the ifup-eth0 file I added:

MACADDR="00.11.22.33.44.55" <- insert MAC here

to trick the cable modem into believing it was the same card.

A good place to look would be http://www.europe.redhat.com/documen...dem/index.php3

This one also has bits about DSL in it.

Hope this helps

TheGrinch.\
 
Old 11-10-2001, 09:53 AM   #5
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Okay... this might help... my cable provider just moved us from static to dynamic addressing. I have trouble getting it to work in Linux. I found out that the ISP's DHCP server requires the system's hostname to be sent when requesting a lease.
You can check this by issuing "dhcpcd -h YOURHOSTNAME" using whatever name your ISP gave you.

To make that happen automatically, you need make your ifcfg file like this:

DEVICE=eth1
DHCP_HOSTNAME=YOURHOSTNAME
BOOTPROTO=DHCP
ONBOOT=YES
TYPE=Ethernet
USERCTL=no
PEERDNS=no
 
Old 11-11-2001, 07:54 PM   #6
Chrisf
LQ Newbie
 
Registered: Nov 2001
Distribution: RedHat 7.1
Posts: 13

Original Poster
Rep: Reputation: 0
I moved the computer to a different Lan and altered the config files as suggested and it's working great now. Thanks for the help guys
 
  


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
Ethernet Adsl Modem Driver Problems And Install Problems... akhilnair Linux - Hardware 12 11-28-2004 08:19 AM
Redhat Enterprise 3 NForce2 ethernet Problems emig647 Linux - Networking 2 07-28-2004 02:23 AM
Ethernet card on laptop: I installed my D-Link ethernet card into Redhat 9, not detec brighamr Linux - Hardware 0 05-18-2004 12:33 AM
Redhat Linux 8.0 ethernet problems zfrost Linux - Hardware 0 10-22-2003 12:19 PM
Linux (redhat 8) Netgear ethernet fa311 problems JJoseph Linux - Networking 1 09-06-2003 10:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:17 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
Open Source Consulting | Domain Registration