View Full Version : Can't connect to the internet
johntp
2006-12-28, 11:12 PM CST
Hi all,
For some reason or another, my fedora box won't connect to the internet. In System>Administrative>Networking it has two devices eth0 and eth1 and as far as I know I can't fine any errors for them. I just installed the drivers for my network cards so maybe I did something wrong there. The system seems to be finding the cards though. What could be wrong?
-John
Zotter
2006-12-28, 11:21 PM CST
Which card is connected to your I-net facing side?
Run ifconfig ethx - where x=the card facing the Inet. such as: ifconfig eth1
Post results here
run:
route
Post results here
Verify your /etc/resolv.conf file is correct
Specify if you're using DHCP or static IPs
That should give us something to start with.
johntp
2006-12-29, 12:04 AM CST
Here's some more information. Thanks for the reply.
Link encap:Ethernet HWaddr 00:50:8D:95:FE:12
inet6 addr: fe80::250:8dff:fe95:fe12/64 Scope:Link
UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1
RX packets:524 errors:0 dropped:0 overruns:0 frame:0
TX packets:294 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:97764 (95.4 KiB) TX bytes:59894 (58.4 KiB)
Interrupt:177 Base address:0xde00
when I ran route it didn't show anything.
"Destination Gateway Genmask FlagsMetric REF Use IFace"
I'm planning on using DHCP.
Oh when I ping my 127.0.0.1 it replys so maybe the card is working? And when I set it up as a static IP the router see's it as an "attatched device" but I still can connect to the internet.
Zotter
2006-12-29, 09:42 AM CST
<voice='Adam'>Well, there's your problem!</voice>
Your interface doesn't have an IPv4 address. (It does have an IPv6 addy, but I doubt you're running an IPv6 only network - or are you?).
No default route - gotta have a default gateway defined or your stack has no idea where to send traffic outside the LAN.
And, I'm betting it's safe to assume you don't have a valid DNS server configured in /etc/resolv.conf either.
Chances are when you get DHCP all configured up and working, it'll configure these 'details' for you.
For background, here's a setup that's working - DHCP assigned:
$/sbin/ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:30:E1:28:EF:1F
inet addr:10.33.55.11 Bcast:10.33.55.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2398959 errors:0 dropped:0 overruns:0 frame:0
TX packets:3528588 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1199695147 (1.1 GiB) TX bytes:3794666553 (3.5 GiB)
Interrupt:177 Base address:0x2d00
$ /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.33.55.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 10.33.55.1 0.0.0.0 UG 0 0 0 eth0
$ cat /etc/resolv.conf
order hosts bind
search network.local
nameserver 10.33.55.137
In this setup, 10.33.55.1 is a NAT router connected to the I-net.
(and yes, details have been changed from actual)
127.0.0.1 is the local loop back interface. It's a virtual interface that has nothing to do with your card at all. It exists in memory only.
johntp
2006-12-29, 11:12 AM CST
Thanks, how do I give it an IPv4 addy? What should I do. (I'm a noob)
BELIEVE me I'm not running an IPv6 network! :)
When I open /etc/sysconfig/network-scripts/ifcfg-eth0 it says the "IPV6INIT=no" and in "etc/sysconfig/network" it says "NETWORKING_IPV6 = no".
Thanks.
johntp
2006-12-29, 05:26 PM CST
I got my thing to use IPv4 by adding
"alias net-pf-10 off" to my modprobe.conf file.
anyway, here is what I get when I run
/sbing/ifconfig eth0
/sbin/route
cat /etc/resolv.conf
cat /etc/modprobe.cof
cat /etc/sysconfig/network
ping 192.168.0.1
[root@localhost ~]# /sbin/ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:50:8D:95:FE:12
inet addr:192.168.0.15 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1
RX packets:336 errors:0 dropped:0 overruns:0 frame:0
TX packets:292 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:23785 (23.2 KiB) TX bytes:20898 (20.4 KiB)
Interrupt:177 Base address:0xde00
[root@localhost ~]# /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
(COPIED YOURS AND CHANCED THE NAMESERVER)
[root@localhost ~]# cat /etc/resolv.conf
order hosts bind
search network.local
nameserver 192.168.0.1
MY MODPROBE.CONF (IF IT HELPS AT ALL)
[root@localhost ~]# cat /etc/modprobe.conf
alias scsi_hostadapter sata_sil24
alias scsi_hostadapter1 ahci
alias snd-card-0 snd-hda-intel
options snd-card-0 index=0
options snd-hda-intel index=0
remove snd-hda-intel { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-hda-intel
alias eth0 r1000
alias eth1 r1000
alias net-pf-10 off
[root@localhost ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
THIS IS WHAT I GET WHEN I PING MY ROUTER (GATEWAY)
[root@localhost ~]# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
From 192.168.0.15 icmp_seq=2 Destination Host Unreachable
From 192.168.0.15 icmp_seq=3 Destination Host Unreachable
From 192.168.0.15 icmp_seq=4 Destination Host Unreachable
--- 192.168.0.1 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3000ms
, pipe 3
[root@localhost ~]# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
From 192.168.0.15 icmp_seq=2 Destination Host Unreachable
From 192.168.0.15 icmp_seq=3 Destination Host Unreachable
From 192.168.0.15 icmp_seq=4 Destination Host Unreachable
--- 192.168.0.1 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5000ms
, pipe 3
johntp
2006-12-29, 11:56 PM CST
Seem to have fixed it. Thanks for all the advice.
Zotter
2006-12-30, 12:10 PM CST
Good on ya John! Sorry I was a bit tardy get back to you, but you've taken the ball and run well with it on your own. Nicely done!
johntp
2006-12-30, 03:35 PM CST
Hey , don't be too proud of me. I simply gave up on my onboard ethernet controllers and bought two others and put them in my PCI slots. That way I could just let Fedora handle them and not worry with drivers. Plus, one of the ethernet jacks in my house doens't work (another problem). So I'm definately not a genius here :P .
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.