LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trouble connecting to internet with Fedora 14 (https://www.linuxquestions.org/questions/linux-newbie-8/trouble-connecting-to-internet-with-fedora-14-a-854905/)

tri88 01-07-2011 07:16 PM

Trouble connecting to internet with Fedora 14
 
A little background.
This past fall, I formatted my hard drive and put fedora 12 on. Worked fine until my old hard drive decided to die. During the last few days of dying Fedora stopped being able to connect to my Linksys Wireless G router(I'm hard wired), or detect any connections. I just assumed this was the hard drives fault.

Now, I have a new WD hard drive with Fedora 14 on it and still cannot connect to the internet.

I fear worst case scenario would be my ethernet port is dead but I wouldnt know how to detect that.
I thought that it might be a problem of drivers also but couldnt find anything on this subject.



Some data

Router: Linksys WRT54G-TM

Quote:

$ lscpi
00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 81)
00:01.0 PCI bridge: Intel Corporation 82945G/GZ/P/PL PCI Express Root Port (rev 81)
00:1d.0 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1e.2 Multimedia audio controller: Intel Corporation 82801G (ICH7 Family) AC'97 Audio Controller (rev 01)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01)
01:00.0 VGA compatible controller: ATI Technologies Inc RV530LE [Radeon X1600/X1650 PRO]
01:00.1 Display controller: ATI Technologies Inc RV530LE [Radeon X1650 PRO] (Secondary)

Quote:

$ 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:124 errors:0 dropped:0 overruns:0 frame:0
TX packets:124 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9556 (9.3 KiB) TX bytes:9556 (9.3 KiB)

frankbell 01-07-2011 07:51 PM

Drivers usually are not an issue with a wired connection, at least not that I have encountered.

Ideally, I would try a live CD that I know can connect to the internet on a wired connection (tested on another computer) and see if it can connect. Slax or Knoppix would be good for this.

ubyt3m3 01-07-2011 09:19 PM

I installed Fedora 14 on my notebook and desktop as virutalbox client. For both cases, the network service did not start automatically. So, this is the steps that I took:

1) Checked the configured NIC:
Code:

# ifconfig -a
eth0  Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
      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)

lo0    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:4 errors:0 dropped:0 overruns:0 frame:0
      TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:240 (240.0 b) TX bytes: 240 (240.0 b)

2) Create a configuration file for eth0 in /etc/sysconfig/network-scripts/.
Code:

#cd /etc/sysconfig/network-scripts/
#vim ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
TYPE=Ethernet
ONBOOT=yes

Since I'm using DHCP, BOOTPROTO is set to dhcp.

3) Start up eth0:
Code:

# ifup eth0
4) Make sure eth0 is received IP address:
Code:

# ifconfig eth0
eth0  Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
      inet addr:192.168.0.6 Bcast:192.168.0.255 Mask:255.255.255.0
      inet6 addr: fe80::a00:27ff:fe6f:542e/64 Scope:Link
      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)

5) Check start up status for network service:
Code:

# chkconfig --list network
network  0:off  1:off  2:off  3:off  4:off  5:off  6:off

6) Enable network service on startup:
Code:

# chkconfig --levels 35 network on
7) Reboot the server to check if IP address is assigned after rebooting:
Code:

# reboot
8) After the server is back up, check for IP address:
Code:

# ip addr
1: lo:...
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
  inet 192.168.0.6/24 brd 192.168.0.255 scope global eth0
  inet6 fe80::a00:27ff:fe6f:542e/64 scope link
  valid_lft forever preferred_lft forever

That's it. I hope this helped you.
-gibb

PS. BTW, I turned off NetworkManager prior to these steps.

Code:

# service NetworkManager stop
# chkconfig NetworkManager off


tri88 01-07-2011 10:49 PM

Hey ubyt3m3, I'm having some trouble with step 2.

Also, I dont get the same output for step 1. Is having eth0 necessary?

1.
Quote:

# ifconfig -a
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:88 errors:0 dropped:0 overruns:0 frame:0
TX packets:88 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6992 (6.8 KiB) TX bytes:6992 (6.8 KiB)
2
Quote:

# vim ifcfg-eth0
Command not found.

ubyt3m3 01-08-2011 01:04 AM

It looks like your system doesn't recognize any network adapter. Do you know what it is? It may be a good idea to run live CD to see if that recognizes any (like frankbell suggested). If all fails, get a new NIC card. I hope a live CD sees your network adapter.

-gibb

tri88 01-08-2011 11:35 AM

Live CD also does not work.

The Network Adapter came attached to the MSI motherboard I bought back in 2006.

Heres a couple of pics of the internals if it helps
http://i.imgur.com/xs354.jpg
http://i.imgur.com/gfBD0.jpg

tri88 01-08-2011 11:56 AM

I went ahead and ordered a new network adapter.

Will reply how it goes.

falmdavis 01-08-2011 12:02 PM

Quote:

Originally Posted by tri88 (Post 4217028)
Hey ubyt3m3, I'm having some trouble with step 2.

Also, I dont get the same output for step 1. Is having eth0 necessary?

Quote:

# vim ifcfg-eth0
Command not found.
You can use any editor that you have installed on your system.
Code:

# vi ifcfg-eth0
Any text editor should work.

eth0 is the first ethernet device. You can also set it up manually instead of with a script. Fedora should have a network manager where you can go through a list of questions about your network services and it will create the scripts for you, or you can edit the files yourself if you know how to do that. You can also manually set up your ethernet. Search Linuxquestions on how to do that.

Code:

# ifup eth0
# ifconfig -a

You can try to see if eth0 comes up with the above code. You can also see if you have dhcp running.

tri88 01-18-2011 07:11 AM

UPDATE:

MY new NIC came in the mail yesterday. Plugged it in and NetworkManager detected it instantly. Awesome.

In case anyone is wondering it was this card. about $10 including shipping.

Thanks for all responses


All times are GMT -5. The time now is 06:22 AM.