LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-08-2006, 09:41 PM   #1
drko
LQ Newbie
 
Registered: Jul 2005
Distribution: opensuse, ubuntu, vector linux, slakcware
Posts: 19

Rep: Reputation: 0
can't get internet


I just installed fedora core 6 and during the installation I told it to configure hostname, gateway, and ip through dhcp, but when I can't seem to connect to the internet. help?

my specs:
amd athlon 64 3000+ (939)
1 gig ddr400
EVGA 6600 GT
gigabyte GA-K8NF-9
 
Old 12-08-2006, 10:23 PM   #2
miaviator278
Member
 
Registered: Dec 2003
Location: Al-Diwania, Iraq (deployed)
Distribution: Slackware ONLY
Posts: 237

Rep: Reputation: 30
Please post the output of ifconfig
 
Old 12-08-2006, 10:43 PM   #3
drko
LQ Newbie
 
Registered: Jul 2005
Distribution: opensuse, ubuntu, vector linux, slakcware
Posts: 19

Original Poster
Rep: Reputation: 0
eth0 Link encap:Ethernet HWaddr 00:0F:EA:C1:95:EC
inet addr:192.168.0.89 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20f:eaff:fec1:95ec/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3458 (3.3 KiB) TX bytes:8860 (8.6 KiB)
Interrupt:233 Base address:0x6000

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:1384 errors:0 dropped:0 overruns:0 frame:0
TX packets:1384 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3515112 (3.3 MiB) TX bytes:3515112 (3.3 MiB)


I think that the problem is here (inet addr:192.168.0.89 Bcast:192.168.0.255) and here (inet addr:127.0.0.1 Mask:255.0.0.0)

How does one go about changing this?

Last edited by drko; 12-08-2006 at 10:46 PM.
 
Old 12-09-2006, 12:16 AM   #4
MaizeNBlue2
LQ Newbie
 
Registered: May 2006
Location: Indiana, USA
Distribution: Slackware 12.2
Posts: 23

Rep: Reputation: 15
It looks like you're getting the ip address without problem. I don't see anything there.

Can you output the post of:

route

-Josh-
 
Old 12-09-2006, 12:46 AM   #5
drko
LQ Newbie
 
Registered: Jul 2005
Distribution: opensuse, ubuntu, vector linux, slakcware
Posts: 19

Original Poster
Rep: Reputation: 0
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 dslmodem.domain 0.0.0.0 UG 0 0 0 eth0

the gateway should be 192.168.0.1, how do I change it to that?

thankies
 
Old 12-09-2006, 01:11 AM   #6
MaizeNBlue2
LQ Newbie
 
Registered: May 2006
Location: Indiana, USA
Distribution: Slackware 12.2
Posts: 23

Rep: Reputation: 15
First do:

Code:
route del default
That will remove the current default gateway.

then,

Code:
route add default gw 192.168.0.1
to add the new gateway as default.

It looks like your ethernet adapter has two subnets assigned to it. I'm not sure if that could hurt the process or not. I would say you should also do a

Code:
route del 169.254.0.0
It will remove the 169.254 subnet.

Try it without removing it first though.

-Josh-

Last edited by MaizeNBlue2; 12-09-2006 at 01:13 AM.
 
Old 12-09-2006, 01:58 PM   #7
drko
LQ Newbie
 
Registered: Jul 2005
Distribution: opensuse, ubuntu, vector linux, slakcware
Posts: 19

Original Poster
Rep: Reputation: 0
I changed the default gateway to 192.168.0.1 and it worked for a few minutes then it died. When I tried to remove the 169.254 subnet it said it was not possilbe
 
Old 12-09-2006, 02:05 PM   #8
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Try pinging 192.168.0.1 (your router) if you can ping the router and the default route is still set to go through it then the problem may be with the router and not your machine. Try to also ping some host on the Internet by IP (e.g. 216.239.37.104 instead of google.com). If you can ping by IP but not name that means your DNS is screwed up.

Also, the correct syntax for deleting the 169.254 route is:

route del -net 169.254.0.0 netmask 255.255.0.0

You must run this as root. If it does not work, please post the error message.
 
  


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
Slow Internet Connection when Connecting to Internet on Browsers lennysokol Linux - Networking 8 04-09-2011 04:29 PM
Unplug Internet Cable and plugin aging, but could not connected to the internet DevlinX Linux - General 2 07-02-2006 10:36 AM
Nic card -> cable internet modem no internet connection zeshan_b Mandriva 21 09-26-2004 11:48 AM
iptables. Can ping through to internet side nic but can't get to internet gonus Linux - Networking 19 07-15-2004 01:27 PM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 07:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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