LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   eth0 Activates but no internet! (https://www.linuxquestions.org/questions/linux-networking-3/eth0-activates-but-no-internet-195475/)

benrose111488 06-19-2004 07:26 PM

eth0 Activates but no internet!
 
I recently installed Fedora Core 2 for my friend...

He has ONE ethernet controller connected to a router connected to his DSL modem...

Via DHCP, eth0 successfully determines an IP and activtaes ok

but he still has no connection to the internet... Mozilla says that he's not connected, and Gaim says the same thing...

And a when I installed Fedora Core 2 on my PC, i had a problem with my modem, which i fixed with (as root)
setserial /dev/modem autoconfig
setserial /dev/modem skip_test

So any suggestions?

Stumped!

thanks everyone!
-Benji
brose@nac.net

jcookeman 06-19-2004 07:51 PM

Can you post the output of 'ifconfig', 'route' and 'cat /etc/resolv.conf'?

benrose111488 06-19-2004 08:33 PM

lol my friend spent an hour going from one computer to another transferring this data so go a little easy on him next time if possible ;-)

but thanks!

ifconfig...
Eth0 Link encap:Ethernet Hwaddr 00:0C:6E:5F:D5:CF
Inet addr: 192.168.0.7 Bcast:192.168.0.255 Mask:255.255.255.0
Inet6 addr: fe80::20c:6eff:fe5f:d5cf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0 txqueuelen:1000
RX bytes:4969 (4.8 Kb) TX bytes:2472 (2.4 Kb)
Interrupt:3 Base Address: Ox4000

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:4090 errors:0 dropped:0 overruns:0 frame:0
TX packets:4090 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0 txqueuelen:0
RX bytes:2509265 (2.3 Mb) TX bytes:2509265 (2.3 Mb)

and then for route:
Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 Eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
^^srry if it doesnt show up right, just try to match up the columns as best u can^^

and for the cat /etc/resolv.conf:
search localdomain

aight so that should do it... thanks for all ur help!

-Benji

benrose111488 06-19-2004 08:35 PM

I just noticed in the ifconfig there's a laughing face, ignore that because its supposed ot be a colon and a capital D

sorry for the inconvinence, and thanks again for the help

-Benji

homey 06-19-2004 08:54 PM

Quote:

Inet6 addr: fe80::20c:6eff:fe5f:d5cf/64 Scope:Link
It may be related to that Inet6 line. I don't have FC2 up right now but I seem to recall a check box to tell the system to use ipv4. That would be in the GUI tool which comes up with the command: redhat-config-network

jcookeman 06-19-2004 08:57 PM

Ok, you don't have a default gateway set.. Your route ahould have an entry "default" like this:
Code:

Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.2.0    *              255.255.255.0  U    0      0        0 ath0
loopback        justinlap.secni 255.0.0.0      UG    0      0        0 lo
default        192.168.2.1    0.0.0.0        UG    0      0        0 ath0

Second, you don't have an entry in /etc/resolv.conf for your nameserver. Like this:
Code:

nameserver 68.63.80.5
nameserver 68.63.80.6

This usually comes from invoking dhclient (I assume since you're using RedHat) or dhcpcd with the wrong flags.

Check your 'ps -aux' to see what flags it is being invoked with:
Code:

root      7548  0.0  0.0  1360  440 ?        S<s  20:01  0:00 /sbin/dhcpcd -t 10 ath0
With dhcpcd -R prevents dhcpcd from replacing existing /etc/resolv.conf file. -G prevents dhcpcd from installing default routes provided by DHCP server.

The easy way to set this manually is to:
Code:

route add default gw 192.168.1.1 eth0
Whatever the real IP is of the router, and edit /etc/resolv.conf to contain nameserver entries for your ISPs nameserver. Or, whatever nameservers you are using.

Justin

benrose111488 06-19-2004 11:53 PM

homey, In FC2 there's IPv6 and not IPv4 so idk if theres a difference involved, but as for now im gonna put ur idea on hold and try Justin's idea. If that doesn't work, then i'll try yours, but or some reason Justin's sounds more promising. and THANK YOU

Justin - THANK YOU!!!

Since I wont get to try this out untril probably Monday when I go over his house (Betcha didnt know ur talking to a 15 year old all this time) any replies wont be submitted until then about this working... but to both of you, check back on Monday night IF YOU CAN, and THANK YOU guys SOOOO MUCH for all of your help. Just let me know if there's anything i can help either of you with, I've been using Linux since I was 8 lol

so, one last time, THANK YOU! and plz check back around Monday night.

benrose111488 06-21-2004 04:18 PM

IT WORKED!!!

I did exactly what Justin said and it still didnt work so i undid it and enabled IPv6 and it didnt work lol So then I did what BOTH of you said and it worked! lol thank you guys muchly!!!

:-)

sfamonkey 06-21-2004 04:42 PM

I hope you figure it out!


All times are GMT -5. The time now is 05:48 AM.